13 #include "G4hMultipleScattering.hh" 14 #include "G4hIonisation.hh" 15 #include "G4ProcessManager.hh" 20 using namespace CLHEP;
26 : G4VPhysicsConstructor(name)
40 <<
"CustomPhysicsList: Path for custom particle definition file: \n" 41 <<particleDefFilePath <<
"\n" <<
" dark_factor= " <<
dfactor;
49 <<
"===== CustomPhysicsList::ConstructParticle ";
56 <<
"CustomPhysicsList: adding CustomPhysics processes " 57 <<
"for the list of particles";
60 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
65 G4ProcessManager* pmanager = particle->GetProcessManager();
67 <<
"CustomPhysicsList: " << particle->GetParticleName()
68 <<
" PDGcode= " << particle->GetPDGEncoding()
69 <<
" Mass= " << particle->GetPDGMass()/
GeV <<
" GeV.";
71 if(particle->GetPDGCharge() != 0.0) {
72 ph->RegisterProcess(
new G4hMultipleScattering, particle);
73 ph->RegisterProcess(
new G4hIonisation, particle);
81 <<
"CustomPhysicsList: " << particle->GetParticleName()
83 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass()/
GeV<<
" GeV.";
88 if(particle->GetParticleType()==
"darkpho"){
90 pmanager->AddDiscreteProcess(darkGamma);
T getParameter(std::string const &) const
static G4ThreadLocal std::unique_ptr< G4Decay > fDecayProcess
void ConstructProcess() override
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p)
edm::ParameterSet myConfig
std::string particleDefFilePath
G4ParticleDefinition * GetCloud()
static G4ThreadLocal std::unique_ptr< G4ProcessHelper > myHelper
void ConstructParticle() override
bool fHadronicInteraction
G4ParticleDefinition * GetSpectator()
static bool s_isRHadron(int pdg)
std::unique_ptr< CustomParticleFactory > fParticleFactory
~CustomPhysicsList() override