diff --git a/DDCore/include/DD4hep/Shapes.h b/DDCore/include/DD4hep/Shapes.h index 71d94314d2d06e19b892f80520671fa91c2e58ae..9d035e55bd7b44040ad218b4698ed9154f6120fb 100644 --- a/DDCore/include/DD4hep/Shapes.h +++ b/DDCore/include/DD4hep/Shapes.h @@ -43,7 +43,7 @@ #include "TGeoParaboloid.h" #include "TGeoCompositeShape.h" #include "TGeoShapeAssembly.h" -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) #include "TGeoTessellated.h" #endif @@ -1422,7 +1422,7 @@ namespace dd4hep { EightPointSolid& operator=(const EightPointSolid& copy) = default; }; -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) /// Class describing a tessellated shape /** * For any further documentation please see the following ROOT documentation: diff --git a/DDCore/src/Handle.cpp b/DDCore/src/Handle.cpp index 4fa2e7cc47f1843f97d28df60d039fa9daac057d..b327c009d1b11e389ecf37f2eaa4a5891dc05f4d 100644 --- a/DDCore/src/Handle.cpp +++ b/DDCore/src/Handle.cpp @@ -403,7 +403,7 @@ DD4HEP_INSTANTIATE_SHAPE_HANDLE(TGeoTrd2); DD4HEP_INSTANTIATE_SHAPE_HANDLE(TGeoSphere); DD4HEP_INSTANTIATE_SHAPE_HANDLE(TGeoTorus); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) #include "TGeoTessellated.h" DD4HEP_INSTANTIATE_SHAPE_HANDLE(TGeoTessellated); #endif diff --git a/DDCore/src/ShapeUtilities.cpp b/DDCore/src/ShapeUtilities.cpp index ee00e6eb83256533ea620d03e77d9d14878c20fc..c7cb8ea280ad5626b15054ef5962ba24602f6e8d 100644 --- a/DDCore/src/ShapeUtilities.cpp +++ b/DDCore/src/ShapeUtilities.cpp @@ -77,7 +77,7 @@ namespace dd4hep { template bool isInstance<PolyhedraRegular> (const Handle<TGeoShape>& solid); template bool isInstance<Polyhedra> (const Handle<TGeoShape>& solid); template bool isInstance<ExtrudedPolygon> (const Handle<TGeoShape>& solid); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) template bool isInstance<TessellatedSolid> (const Handle<TGeoShape>& solid); #endif template bool isInstance<BooleanSolid> (const Handle<TGeoShape>& solid); @@ -151,7 +151,7 @@ namespace dd4hep { template bool isA<ExtrudedPolygon>(const Handle<TGeoShape>& solid); template bool isA<Polycone>(const Handle<TGeoShape>& solid); template bool isA<EightPointSolid>(const Handle<TGeoShape>& solid); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) template bool isA<TessellatedSolid>(const Handle<TGeoShape>& solid); #endif template <> bool isA<TwistedTube>(const Handle<TGeoShape>& solid) { @@ -338,7 +338,7 @@ namespace dd4hep { return pars; } -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) template <> vector<double> dimensions<TGeoTessellated>(const TGeoShape* shape) { TGeoTessellated* sh = get_ptr<TGeoTessellated>(shape); int num_facet = sh->GetNfacets(); @@ -416,7 +416,7 @@ namespace dd4hep { template vector<double> dimensions<Polyhedra> (const Handle<TGeoShape>& shape); template vector<double> dimensions<ExtrudedPolygon> (const Handle<TGeoShape>& shape); template vector<double> dimensions<EightPointSolid> (const Handle<TGeoShape>& shape); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) template vector<double> dimensions<TessellatedSolid> (const Handle<TGeoShape>& shape); #endif template vector<double> dimensions<BooleanSolid> (const Handle<TGeoShape>& shape); @@ -511,7 +511,7 @@ namespace dd4hep { return dimensions<TGeoXtru>(shape.ptr()); else if (cl == TGeoScaledShape::Class()) return dimensions<TGeoScaledShape>(shape.ptr()); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) else if (cl == TGeoTessellated::Class()) return dimensions<TGeoTessellated>(shape.ptr()); #endif @@ -745,7 +745,7 @@ namespace dd4hep { s_sh.access()->SetDimensions(&pars[3]); } -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) template <> void set_dimensions(TGeoTessellated* sh, const std::vector<double>& params) { int num_vtx = params[0]; int num_facet = params[1]; @@ -837,7 +837,7 @@ namespace dd4hep { { set_dimensions(shape.ptr(), params); } template <> void set_dimensions(EightPointSolid shape, const std::vector<double>& params) { set_dimensions(shape.ptr(), params); } -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) template <> void set_dimensions(TessellatedSolid shape, const std::vector<double>& params) { set_dimensions(shape.ptr(), params); } #endif @@ -1041,7 +1041,7 @@ namespace dd4hep { set_dimensions(ExtrudedPolygon(shape), params); else if (cl == TGeoArb8::Class()) set_dimensions(EightPointSolid(shape), params); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) else if (cl == TGeoTessellated::Class()) set_dimensions(TessellatedSolid(shape), params); #endif diff --git a/DDCore/src/Shapes.cpp b/DDCore/src/Shapes.cpp index c504a66a3143721b2b3fc4ca410e7bfc74892253..c9b4808ad2848703a1b61e1cda2c5db9f34fae50 100644 --- a/DDCore/src/Shapes.cpp +++ b/DDCore/src/Shapes.cpp @@ -716,7 +716,7 @@ void EightPointSolid::make(const string& nam, double dz, const double* vtx) { _assign(new TGeoArb8(nam.c_str(), dz, (double*)vtx), "", EIGHTPOINTSOLID_TAG, true); } -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) /// Internal helper method to support object construction void TessellatedSolid::make(const std::string& nam, int num_facets) { _assign(new TGeoTessellated(nam.c_str(), num_facets), nam, TESSELLATEDSOLID_TAG, false); @@ -952,6 +952,6 @@ INSTANTIATE(TGeoTrd1); INSTANTIATE(TGeoTrd2); INSTANTIATE(TGeoCompositeShape); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) INSTANTIATE(TGeoTessellated); #endif diff --git a/DDCore/src/plugins/ShapePlugins.cpp b/DDCore/src/plugins/ShapePlugins.cpp index 0c52f1c3f99c5ef0aefa6dd8c179c8d38673fdf5..76c3fabfbe311dce26cfff91ec7096ceb6dbd461 100644 --- a/DDCore/src/plugins/ShapePlugins.cpp +++ b/DDCore/src/plugins/ShapePlugins.cpp @@ -310,7 +310,7 @@ static Handle<TObject> create_EightPointSolid(Detector&, xml_h element) { } DECLARE_XML_SHAPE(EightPointSolid__shape_constructor,create_EightPointSolid) -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) /// Plugin factory to created tessellated shapes static Handle<TObject> create_TessellatedSolid(Detector&, xml_h element) { xml_dim_t e(element); @@ -631,7 +631,7 @@ static Ref_t create_shape(Detector& description, xml_h e, Ref_t /* sens */) { instance_test = isInstance<EllipticalTube>(solid); else if ( 0 == strcasecmp(solid->GetTitle(),EXTRUDEDPOLYGON_TAG) ) instance_test = isInstance<ExtrudedPolygon>(solid); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) else if ( 0 == strcasecmp(solid->GetTitle(),TESSELLATEDSOLID_TAG) ) instance_test = isInstance<TessellatedSolid>(solid); #endif diff --git a/DDG4/src/Geant4Converter.cpp b/DDG4/src/Geant4Converter.cpp index 6a5029f0750df923c083558ca927b4ed2e0ac937..a02b8232ca695babb76972ad97abb75091ced460 100644 --- a/DDG4/src/Geant4Converter.cpp +++ b/DDG4/src/Geant4Converter.cpp @@ -574,7 +574,7 @@ void* Geant4Converter::handleSolid(const string& name, const TGeoShape* shape) c solid = convertShape<TGeoTrap>(shape); else if (isa == TGeoArb8::Class()) solid = convertShape<TGeoArb8>(shape); -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) else if (isa == TGeoTessellated::Class()) solid = convertShape<TGeoTessellated>(shape); #endif diff --git a/DDG4/src/Geant4ShapeConverter.cpp b/DDG4/src/Geant4ShapeConverter.cpp index cfa24fc5a328984a7241ec77a641cd240f1aa798..23dc838ab3ca53028d7defefc0839b7aa77cb8cd 100644 --- a/DDG4/src/Geant4ShapeConverter.cpp +++ b/DDG4/src/Geant4ShapeConverter.cpp @@ -230,7 +230,7 @@ namespace dd4hep { } // End namespace sim } // End namespace dd4hep -#if ROOT_VERSION_CODE > ROOT_VERSION(6,19,0) +#if ROOT_VERSION_CODE > ROOT_VERSION(6,21,0) #include "G4TessellatedSolid.hh" #include "G4TriangularFacet.hh" #include "G4QuadrangularFacet.hh"