diff --git a/DDCore/src/gdml/GdmlPlugins.cpp b/DDCore/src/gdml/GdmlPlugins.cpp index 64609519def30301935f25f0db40a127f0ec02fa..e17aaa631fb94ab0a23d615cebd6f08e540245dd 100644 --- a/DDCore/src/gdml/GdmlPlugins.cpp +++ b/DDCore/src/gdml/GdmlPlugins.cpp @@ -177,7 +177,7 @@ static long gdml_extract(Detector& description, int argc, char** argv) { if ( de.isValid() ) { TGDMLWrite extract; TUri uri(output.c_str()); -#if ROOT_VERSION_CODE >= ROOT_VERSION(7,19,0) +#if ROOT_VERSION_CODE >= ROOT_VERSION(6,20,0) extract.WriteGDMLfile(&description.manager(), de.placement().ptr(), uri.GetRelativePart()); #else extract.WriteGDMLfile(&description.manager(), de.volume().ptr(), uri.GetRelativePart()); @@ -225,7 +225,7 @@ static long gdml_extract(Detector& description, int argc, char** argv) { if ( a._node ) { TGDMLWrite extract; TUri uri(output.c_str()); -#if ROOT_VERSION_CODE >= ROOT_VERSION(7,19,0) +#if ROOT_VERSION_CODE >= ROOT_VERSION(6,20,0) extract.WriteGDMLfile(&description.manager(), a._node, uri.GetRelativePart()); #else extract.WriteGDMLfile(&description.manager(), a._node->GetVolume(), uri.GetRelativePart()); diff --git a/examples/OpticalSurfaces/CMakeLists.txt b/examples/OpticalSurfaces/CMakeLists.txt index 9870821abe5096cd2d86382cde69444bffb0eae8..45005061caf459cbb05444197e7a977f2a3cc9d9 100644 --- a/examples/OpticalSurfaces/CMakeLists.txt +++ b/examples/OpticalSurfaces/CMakeLists.txt @@ -70,7 +70,7 @@ dd4hep_add_test_reg( Surfaces_OpNovice_write_gdml ) # # -if ( "${ROOT_VERSION}" VERSION_GREATER "6.19.00" ) +if ( "${ROOT_VERSION}" VERSION_GREATER_EQUAL "6.20.00" ) # #---Testing: Load GDML and dump volumes dd4hep_add_test_reg( Surfaces_OpNovice_read_gdml