71 G4GammaConversionToMuons* gammaToMuPair =
new G4GammaConversionToMuons();
72 G4AutoDelete::Register(gammaToMuPair);
75 G4AnnihiToMuPair* ePlusToMuPair =
new G4AnnihiToMuPair();
76 G4AutoDelete::Register(ePlusToMuPair);
77 G4eeToHadrons* eeToHadrons =
new G4eeToHadrons();
78 G4AutoDelete::Register(eeToHadrons);
81 G4MuMultipleScattering* mumsc =
nullptr;
82 G4MuIonisation* muion =
nullptr;
83 G4MuBremsstrahlung* mubrm =
nullptr;
86 mumsc =
new G4MuMultipleScattering();
87 G4AutoDelete::Register(mumsc);
88 muion =
new G4MuIonisation();
89 G4AutoDelete::Register(muion);
90 mubrm =
new G4MuBremsstrahlung();
91 G4AutoDelete::Register(mubrm);
93 G4MuPairProduction* mupar =
new G4MuPairProduction();
94 G4AutoDelete::Register(mupar);
96 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
98#if G4VERSION_NUMBER > 1029
99 auto aParticleIterator = GetParticleIterator();
101 aParticleIterator->reset();
103 while( (*aParticleIterator)() )
105 G4ParticleDefinition* particle = aParticleIterator->value();
106 G4String particleName = particle->GetParticleName();
108 if(particleName ==
"gamma")
110 ph->RegisterProcess(gammaToMuPair, particle);
113 if(particleName ==
"e+")
115 ph->RegisterProcess(ePlusToMuPair, particle);
116 ph->RegisterProcess(eeToHadrons, particle);
119 if(particleName ==
"mu+" || particleName ==
"mu-")
123 ph->RegisterProcess(mumsc, particle);
124 ph->RegisterProcess(muion, particle);
125 ph->RegisterProcess(mubrm, particle);
126 ph->RegisterProcess(mupar, particle);