12 #include "G4hMultipleScattering.hh" 13 #include "G4hIonisation.hh" 14 #include "G4ProcessManager.hh" 19 using namespace CLHEP;
24 : G4VPhysicsConstructor(name) {
39 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"CustomPhysicsList: Path for custom particle definition file: \n" 40 << particleDefFilePath <<
"\n" 47 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"===== CustomPhysicsList::ConstructParticle ";
52 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"CustomPhysicsList: adding CustomPhysics processes " 53 <<
"for the list of particles";
55 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
60 G4ProcessManager* pmanager = particle->GetProcessManager();
62 <<
"CustomPhysicsList: " << particle->GetParticleName() <<
" PDGcode= " << particle->GetPDGEncoding()
63 <<
" Mass= " << particle->GetPDGMass() /
GeV <<
" GeV.";
65 if (particle->GetPDGCharge() != 0.0) {
66 ph->RegisterProcess(
new G4hMultipleScattering, particle);
67 ph->RegisterProcess(
new G4hIonisation, particle);
74 <<
"CustomPhysicsList: " << particle->GetParticleName()
75 <<
" CloudMass= " << cp->
GetCloud()->GetPDGMass() /
GeV 76 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass() /
GeV <<
" GeV.";
83 if (particle->GetParticleType() ==
"darkpho") {
85 pmanager->AddDiscreteProcess(darkGamma);
T getParameter(std::string const &) const
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p, bool useuni=false)
void ConstructProcess() override
static bool s_isgluinoHadron(int pdg)
edm::ParameterSet myConfig
std::string particleDefFilePath
G4ParticleDefinition * GetCloud()
static G4ThreadLocal std::unique_ptr< G4ProcessHelper > myHelper
void ConstructParticle() override
bool fHadronicInteraction
G4ParticleDefinition * GetSpectator()
std::unique_ptr< CustomParticleFactory > fParticleFactory
static bool s_issbottomHadron(int pdg)
static bool s_isstopHadron(int pdg)
~CustomPhysicsList() override