51 LogDebug(
"CustomPhysics") <<
" CustomPhysicsListSS: adding CustomPhysics processes";
52 aParticleIterator->reset();
54 while((*aParticleIterator)()) {
55 G4ParticleDefinition* particle = aParticleIterator->value();
58 LogDebug(
"CustomPhysics") << particle->GetParticleName()
59 <<
", "<<particle->GetPDGEncoding()
60 <<
" is Custom. Mass is "
61 <<particle->GetPDGMass()/GeV <<
" GeV.";
66 <<
" GeV. Spectator mass is "
67 <<
static_cast<CustomParticle*
>(particle)->GetSpectator()->GetPDGMass()/GeV
70 G4ProcessManager* pmanager = particle->GetProcessManager();
72 if(particle->GetPDGCharge()/eplus != 0) {
73 pmanager->AddProcess(
new G4CoulombScattering, -1,-1, 1);
74 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
77 if(particle->GetParticleType()==
"rhadron" ||
78 particle->GetParticleType()==
"mesonino" ||
79 particle->GetParticleType() ==
"sbaryon"){
81 pmanager->AddDiscreteProcess(
new FullModelHadronicProcess(
myHelper));
85 else LogDebug(
"CustomPhysics") <<
" No pmanager";
G4ParticleDefinition * GetCloud()
edm::ParameterSet myConfig
static bool isCustomParticle(G4ParticleDefinition *particle)
G4ProcessHelper * myHelper