52 edm::LogInfo(
"CustomPhysics") <<
" CustomPhysicsList: adding CustomPhysics processes "
53 <<
"for the list of particles: \n";
54 aParticleIterator->reset();
56 while((*aParticleIterator)()) {
57 G4ParticleDefinition* particle = aParticleIterator->value();
60 edm::LogInfo(
"CustomPhysics") << particle->GetParticleName()
61 <<
" PDGcode= "<<particle->GetPDGEncoding()
63 <<particle->GetPDGMass()/
GeV <<
" GeV.";
65 edm::LogInfo(
"CustomPhysics") << particle->GetParticleName()
68 <<
" GeV; SpectatorMass= "
72 G4ProcessManager* pmanager = particle->GetProcessManager();
74 if(particle->GetPDGCharge() != 0.0) {
75 pmanager->AddProcess(
new G4hMultipleScattering,-1, 1, 1);
76 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
79 if(particle->GetParticleType()==
"rhadron" ||
80 particle->GetParticleType()==
"mesonino" ||
81 particle->GetParticleType() ==
"sbaryon"){
83 pmanager->AddDiscreteProcess(
new FullModelHadronicProcess(
myHelper));
87 else LogDebug(
"CustomPhysics") <<
" No pmanager";
edm::ParameterSet myConfig
G4ParticleDefinition * GetCloud()
G4ParticleDefinition * GetSpectator()
G4ProcessHelper * myHelper
static bool isCustomParticle(G4ParticleDefinition *particle)