14 #include "G4hMultipleScattering.hh"
15 #include "G4hIonisation.hh"
16 #include "G4ProcessManager.hh"
23 using namespace CLHEP;
28 : G4VPhysicsConstructor(name) {
43 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"CustomPhysicsList: Path for custom particle definition file: \n"
44 << particleDefFilePath <<
"\n"
51 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"===== CustomPhysicsList::ConstructParticle ";
56 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"CustomPhysicsList: adding CustomPhysics processes "
57 <<
"for the list of particles";
59 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
62 if (particle->GetParticleType() ==
"simp") {
63 G4ProcessManager* pmanager = particle->GetProcessManager();
67 theQGSPSIMPB->
Build(simpInelPr);
68 pmanager->AddDiscreteProcess(simpInelPr);
75 G4ProcessManager* pmanager = particle->GetProcessManager();
77 <<
"CustomPhysicsList: " << particle->GetParticleName() <<
" PDGcode= " << particle->GetPDGEncoding()
78 <<
" Mass= " << particle->GetPDGMass() / GeV <<
" GeV.";
80 if (particle->GetPDGCharge() != 0.0) {
81 ph->RegisterProcess(
new G4hMultipleScattering, particle);
82 ph->RegisterProcess(
new G4hIonisation, particle);
89 <<
"CustomPhysicsList: " << particle->GetParticleName()
90 <<
" CloudMass= " << cp->
GetCloud()->GetPDGMass() / GeV
91 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass() / GeV <<
" GeV.";
98 if (particle->GetParticleType() ==
"darkpho") {
100 pmanager->AddDiscreteProcess(darkGamma);
Log< level::Info, true > LogVerbatim
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p, bool useuni=false)
void Build(CMSSIMPInelasticProcess *aP)
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()
T getParameter(std::string const &) const
std::unique_ptr< CustomParticleFactory > fParticleFactory
static bool s_issbottomHadron(int pdg)
std::string fullPath() const
static bool s_isstopHadron(int pdg)
~CustomPhysicsList() override