File indexing completed on 2025-01-30 09:16:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <XML/Conversions.h>
0015 #include <DD4hep/DetFactoryHelper.h>
0016
0017 namespace dd4hep {
0018 struct Geant4;
0019 class GdmlFile;
0020 class Property;
0021 class SensitiveDetector;
0022
0023 template <> void Converter<Geant4>::operator()(xml_h e) const;
0024 template <> void Converter<GdmlFile>::operator()(xml_h e) const;
0025 template <> void Converter<Property>::operator()(xml_h e) const;
0026 template <> void Converter<SensitiveDetector>::operator()(xml_h e) const;
0027 }
0028
0029 using namespace dd4hep;
0030
0031 template <> void Converter<Geant4>::operator()(xml_h element) const {
0032 xml_elt_t compact(element);
0033
0034 xml_coll_t(compact, _U(properties)).for_each(_U(attributes), Converter < Property > (description, param));
0035 xml_coll_t(compact, _U(sensitive_detectors)).for_each(_U(sd), Converter < SensitiveDetector > (description, param));
0036 }
0037
0038 static long create_Geant4(Detector& description, const xml_h& element) {
0039 (Converter < Geant4 > (description))(element);
0040 return 1;
0041 }
0042 DECLARE_XML_DOC_READER(geant4,create_Geant4)
0043
0044 static Ref_t handle_Geant4(Detector& description, const xml_h& element) {
0045 (Converter < Geant4 > (description))(element);
0046 return Ref_t(0);
0047 }
0048 DECLARE_XMLELEMENT(geant4_xml_setup,handle_Geant4)