Skip to content
Snippets Groups Projects
Commit 91ec35df authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Fixing 10.3 vs 10.2 difference in compilation

parent ddd83bea
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment