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);
71 <<
"CustomPhysicsList: " << particle->GetParticleName()
72 <<
" CloudMass= " << cp->
GetCloud()->GetPDGMass() /
GeV 73 <<
" GeV; SpectatorMass= " << cp->
GetSpectator()->GetPDGMass() /
GeV <<
" GeV.";
80 if (particle->GetParticleType() ==
"darkpho") {
82 pmanager->AddDiscreteProcess(darkGamma);
T getParameter(std::string const &) const
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p, bool useuni=false)
void ConstructProcess() override
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