53{
54
55 AddTransportation();
56
57 auto theParticleIterator=GetParticleIterator();
58
59 theParticleIterator->reset();
60 while( (*theParticleIterator)() )
61 {
62 G4ParticleDefinition* particle = theParticleIterator->value();
63 G4ProcessManager* pmanager = particle->GetProcessManager();
64 G4String particleName = particle->GetParticleName();
65 if(particleName == "e-" || particleName == "e+")
66 {
67
68
69 pmanager->AddProcess( new ExteIonisation,-1,1,1);
70
71 }
72 else if(particleName == "mu-" || particleName == "mu+")
73 {
74
75
76 pmanager->AddProcess( new ExtMuIonisation,-1,1,1);
77
78 }
79 else if((!particle->IsShortLived()) && (particle->GetPDGCharge() != 0.0) && (particleName != "chargedgeantino"))
80 {
81
82
83
84 pmanager->AddProcess( new ExthIonisation,-1,1,1);
85 }
86 }
87}