From c9faecfa56b987659ebae27cd2763b727c9517e4 Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Tue, 13 Dec 2016 11:18:50 +0100
Subject: [PATCH] use #elif for Geant4 versions

---
 DDG4/src/Geant4PhysicsConstructor.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/DDG4/src/Geant4PhysicsConstructor.cpp b/DDG4/src/Geant4PhysicsConstructor.cpp
index 35542a9ce..36d3fd5c1 100644
--- a/DDG4/src/Geant4PhysicsConstructor.cpp
+++ b/DDG4/src/Geant4PhysicsConstructor.cpp
@@ -38,13 +38,12 @@ namespace  {
 
 #if G4VERSION_NUMBER >= 1030
       iter = GetParticleIterator();
-#else
- #if G4VERSION_NUMBER >= 1000
+#elif G4VERSION_NUMBER >= 1000
       iter = aParticleIterator;
- #else  
+#else  
       iter = theParticleIterator;
- #endif
 #endif 
+
       iter->reset();
       return iter;
     }
-- 
GitLab