diff --git a/DDCore/src/DetectorImp.cpp b/DDCore/src/DetectorImp.cpp index 79b5177edb757a02f7703de28cb3572a5b7901a2..456cf05277a6a0775b5d273499286f50808caba8 100644 --- a/DDCore/src/DetectorImp.cpp +++ b/DDCore/src/DetectorImp.cpp @@ -164,7 +164,7 @@ DetectorImp::DetectorImp() DetectorImp::DetectorImp(const string& name) : TNamed(), DetectorData(), DetectorLoad(this), m_buildType(BUILD_NONE) { -#if defined(DD4HEP_USE_GEANT4_UNITS) && ROOT_VERSION_CODE > ROOT_VERSION(6,22,7) +#if defined(DD4HEP_USE_GEANT4_UNITS) && ROOT_VERSION_CODE >= ROOT_VERSION(6,22,7) printout(WARNING,"DD4hep","++ Using globally Geant4 unit system (mm,ns,MeV)"); if ( TGeoManager::GetDefaultUnits() != TGeoManager::kG4Units ) { TGeoManager::LockDefaultUnits(kFALSE);