diff --git a/NPSimulation/Process/PhysicsList.cc b/NPSimulation/Process/PhysicsList.cc index cc2b99ad5ff43353d14f3d4a60e1484e8cbad63e..38329420efeaba2d85f12636ca1a28703eadced8 100644 --- a/NPSimulation/Process/PhysicsList.cc +++ b/NPSimulation/Process/PhysicsList.cc @@ -279,9 +279,13 @@ void PhysicsList::AddParametrisation(){ G4FastSimulationManagerProcess* drift = new G4FastSimulationManagerProcess("DriftElectron"); - + +// For 10.3 and higher +#ifndef theParticleIterator G4ParticleTable::G4PTblDicIterator* theParticleIterator = GetParticleIterator(); - theParticleIterator->reset(); +#endif + + theParticleIterator->reset(); while ((*theParticleIterator)()){ G4ParticleDefinition* particle = theParticleIterator->value(); G4ProcessManager* pmanager = particle->GetProcessManager();