4 #include "SimG4Core/CustomPhysics/interface/G4ProcessHelper.hh"
12 #include "G4hMultipleScattering.hh"
13 #include "G4hIonisation.hh"
14 #include "G4CoulombScattering.hh"
15 #include "G4ProcessManager.hh"
17 #include "SimG4Core/CustomPhysics/interface/FullModelHadronicProcess.hh"
18 #include "SimG4Core/CustomPhysics/interface/ToyModelHadronicProcess.hh"
20 using namespace CLHEP;
27 : G4VPhysicsConstructor(name)
34 <<
"CustomPhysicsListSS: Path for custom particle definition file: \n"
52 <<
"CustomPhysicsListSS: adding CustomPhysics processes";
56 aParticleIterator->reset();
58 while((*aParticleIterator)()) {
59 G4ParticleDefinition* particle = aParticleIterator->value();
62 G4ProcessManager* pmanager = particle->GetProcessManager();
64 <<
"CustomPhysicsListSS: " << particle->GetParticleName()
65 <<
" PDGcode= " << particle->GetPDGEncoding()
66 <<
" Mass= " << particle->GetPDGMass()/
GeV <<
" GeV.";
68 if(particle->GetPDGCharge()/eplus != 0) {
69 pmanager->AddProcess(
new G4CoulombScattering, -1,-1, 1);
70 pmanager->AddProcess(
new G4hIonisation, -1, 1, 2);
73 pmanager->AddProcess(
new G4Decay, 0, -1, 3);
78 <<
"CustomPhysicsListSS: " << particle->GetParticleName()
80 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass()/
GeV <<
" GeV.";
83 pmanager->AddDiscreteProcess(
new FullModelHadronicProcess(
myHelper));
std::string particleDefFilePath
static G4ThreadLocal bool fInitialized
T getParameter(std::string const &) const
G4ParticleDefinition * GetCloud()
virtual void ConstructParticle()
CustomPhysicsListSS(std::string name, const edm::ParameterSet &p)
static G4ThreadLocal G4ProcessHelper * myHelper
static void loadCustomParticles(const std::string &filePath)
static G4ThreadLocal G4Decay * fDecayProcess
bool fHadronicInteraction
G4ParticleDefinition * GetSpectator()
edm::ParameterSet myConfig
static bool s_isRHadron(int pdg)
virtual ~CustomPhysicsListSS()
static bool isCustomParticle(G4ParticleDefinition *particle)
std::string fullPath() const
virtual void ConstructProcess()