12 #include "G4hMultipleScattering.hh" 13 #include "G4hIonisation.hh" 14 #include "G4CoulombScattering.hh" 15 #include "G4ProcessManager.hh" 20 using namespace CLHEP;
25 : G4VPhysicsConstructor(name) {
40 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"CustomPhysicsListSS: Path for custom particle definition file: \n" 47 edm::LogVerbatim(
"SimG4CoreCustomPhysicsSS") <<
"===== CustomPhysicsList::ConstructParticle ";
52 edm::LogVerbatim(
"SimG4CoreCustomPhysicsSS") <<
"CustomPhysicsListSS: adding CustomPhysics processes";
54 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
59 G4ProcessManager* pmanager = particle->GetProcessManager();
61 <<
"CustomPhysicsListSS: " << particle->GetParticleName() <<
" PDGcode= " << particle->GetPDGEncoding()
62 <<
" Mass= " << particle->GetPDGMass() /
GeV <<
" GeV.";
64 if (particle->GetPDGCharge() != 0.0) {
65 ph->RegisterProcess(
new G4CoulombScattering, particle);
66 ph->RegisterProcess(
new G4hIonisation, particle);
73 <<
"CustomPhysicsListSS: " << particle->GetParticleName()
74 <<
" CloudMass= " << cp->
GetCloud()->GetPDGMass() /
GeV 75 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass() /
GeV <<
" GeV.";
82 if (particle->GetParticleType() ==
"darkpho") {
84 pmanager->AddDiscreteProcess(darkGamma);
std::string particleDefFilePath
T getParameter(std::string const &) const
std::unique_ptr< CustomParticleFactory > fParticleFactory
void ConstructParticle() override
static bool s_isgluinoHadron(int pdg)
G4ParticleDefinition * GetCloud()
~CustomPhysicsListSS() override
bool fHadronicInteraction
G4ParticleDefinition * GetSpectator()
static G4ThreadLocal std::unique_ptr< G4ProcessHelper > myHelper
edm::ParameterSet myConfig
void ConstructProcess() override
static bool s_issbottomHadron(int pdg)
CustomPhysicsListSS(const std::string &name, const edm::ParameterSet &p, bool useuni=false)
static bool s_isstopHadron(int pdg)