52 <<
"CustomPhysicsList: adding CustomPhysics processes "
53 <<
"for the list of particles";
57 aParticleIterator->reset();
59 while((*aParticleIterator)()) {
60 G4ParticleDefinition* particle = aParticleIterator->value();
63 G4ProcessManager* pmanager = particle->GetProcessManager();
65 <<
"CustomPhysicsList: " << particle->GetParticleName()
66 <<
" PDGcode= " << particle->GetPDGEncoding()
67 <<
" Mass= " << particle->GetPDGMass()/
GeV <<
" GeV.";
69 if(particle->GetPDGCharge() != 0.0) {
70 pmanager->AddProcess(
new G4hMultipleScattering,-1, 1, 1);
71 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
74 pmanager->AddProcess(
new G4Decay, 0, -1, 3);
79 <<
"CustomPhysicsList: " << particle->GetParticleName()
81 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass()/
GeV<<
" GeV.";
84 pmanager->AddDiscreteProcess(
new FullModelHadronicProcess(
myHelper));
static G4ThreadLocal G4Decay * fDecayProcess
edm::ParameterSet myConfig
G4ParticleDefinition * GetCloud()
static G4ThreadLocal G4ProcessHelper * myHelper
bool fHadronicInteraction
G4ParticleDefinition * GetSpectator()
static bool s_isRHadron(int pdg)
static bool isCustomParticle(G4ParticleDefinition *particle)