From 812be20cb2eb4b552ba0c171789f02fbc49f63aa Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Tue, 13 Dec 2016 10:49:49 +0100 Subject: [PATCH] make compatible w/ Geant4 10.3 --- DDG4/src/Geant4PhysicsConstructor.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/DDG4/src/Geant4PhysicsConstructor.cpp b/DDG4/src/Geant4PhysicsConstructor.cpp index cd58abd56..35542a9ce 100644 --- a/DDG4/src/Geant4PhysicsConstructor.cpp +++ b/DDG4/src/Geant4PhysicsConstructor.cpp @@ -35,11 +35,16 @@ namespace { /// Access to a fresh (resetted) instance of the particle table iterator G4ParticleTable::G4PTblDicIterator* particleIterator() const { G4ParticleTable::G4PTblDicIterator* iter; -#if G4VERSION_NUMBER >= 1000 + +#if G4VERSION_NUMBER >= 1030 + iter = GetParticleIterator(); +#else + #if G4VERSION_NUMBER >= 1000 iter = aParticleIterator; -#else + #else iter = theParticleIterator; -#endif + #endif +#endif iter->reset(); return iter; } -- GitLab