diff --git a/DDG4/plugins/Geant4CerenkovPhysics.cpp b/DDG4/plugins/Geant4CerenkovPhysics.cpp index ef95e456fc86ed777f879205e586294d2b8be6ee..0c50390dc78b96a3d066c892e87f986d5f7575a6 100644 --- a/DDG4/plugins/Geant4CerenkovPhysics.cpp +++ b/DDG4/plugins/Geant4CerenkovPhysics.cpp @@ -28,7 +28,6 @@ #include "DDG4/Geant4PhysicsList.h" /// Geant4 include files -#include "G4OpticalParameters.hh" #include "G4ParticleTableIterator.hh" #include "G4ParticleDefinition.hh" #include "G4ParticleTypes.hh" @@ -36,6 +35,10 @@ #include "G4ProcessManager.hh" #include "G4Version.hh" +#if G4VERSION_NUMBER >= 1070 +#include "G4OpticalParameters.hh" +#endif + #include "G4Cerenkov.hh" /// Namespace for the AIDA detector description toolkit diff --git a/DDG4/plugins/Geant4OpticalPhotonPhysics.cpp b/DDG4/plugins/Geant4OpticalPhotonPhysics.cpp index a7c6c4c89947d6f9f971c65bfce1e2be5ee7ab1d..22eb4ce35f5ce5e4d9a040d8063df81c67d8f67f 100644 --- a/DDG4/plugins/Geant4OpticalPhotonPhysics.cpp +++ b/DDG4/plugins/Geant4OpticalPhotonPhysics.cpp @@ -40,6 +40,10 @@ #include "G4ParticleTable.hh" #include "G4ProcessManager.hh" +#if G4VERSION_NUMBER >= 1070 +#include "G4OpticalParameters.hh" +#endif + /// Namespace for the AIDA detector description toolkit namespace dd4hep { diff --git a/DDG4/plugins/Geant4ScintillationPhysics.cpp b/DDG4/plugins/Geant4ScintillationPhysics.cpp index d2d9b7dc79fceb8dd69acc8119be5fb047d87182..ed486895da5fd250d8cb6b08c81d295524c6ec55 100644 --- a/DDG4/plugins/Geant4ScintillationPhysics.cpp +++ b/DDG4/plugins/Geant4ScintillationPhysics.cpp @@ -29,7 +29,6 @@ /// Geant4 include files #include "G4Version.hh" -#include "G4OpticalParameters.hh" #include "G4ParticleTableIterator.hh" #include "G4ParticleDefinition.hh" #include "G4LossTableManager.hh" @@ -39,6 +38,10 @@ #include "G4EmSaturation.hh" #include "G4Threading.hh" +#if G4VERSION_NUMBER >= 1070 +#include "G4OpticalParameters.hh" +#endif + #include "G4Scintillation.hh" /// Namespace for the AIDA detector description toolkit