49 LogDebug(
"CustomPhysics") <<
" CustomPhysics: adding CustomPhysics processes";
50 theParticleIterator->reset();
52 while((*theParticleIterator)()) {
54 G4ParticleDefinition* particle = theParticleIterator->value();
57 LogDebug(
"CustomPhysics") << particle->GetParticleName()<<
", "<<particle->GetPDGEncoding()
58 <<
" is Custom. Mass is "
59 <<particle->GetPDGMass()/GeV <<
" GeV.";
61 LogDebug(
"CustomPhysics")<<
"Cloud mass is "
63 <<
" GeV. Spectator mass is "
64 <<
static_cast<CustomParticle*
>(particle)->GetSpectator()->GetPDGMass()/GeV
67 G4ProcessManager* pmanager = particle->GetProcessManager();
70 if(particle->GetParticleType()==
"rhadron" || particle->GetParticleType()==
"mesonino" || particle->GetParticleType() ==
"sbaryon"){
72 pmanager->AddDiscreteProcess(
new FullModelHadronicProcess(
myHelper));
75 if(particle->GetPDGCharge()/eplus != 0) {
76 pmanager->AddProcess(
new G4hMultipleScattering,-1, 1,i+1);
77 pmanager->AddProcess(
new G4hIonisation, -1, 2,i+2);
80 else LogDebug(
"CustomPhysics") <<
" No pmanager";
edm::ParameterSet myConfig
G4ParticleDefinition * GetCloud()
G4ProcessHelper * myHelper
static bool isCustomParticle(G4ParticleDefinition *particle)