14 #include "G4hMultipleScattering.hh"
15 #include "G4hIonisation.hh"
16 #include "G4CoulombScattering.hh"
17 #include "G4ProcessManager.hh"
22 using namespace CLHEP;
27 : G4VPhysicsConstructor(
name) {
30 dfactor =
p.getParameter<
double>(
"DarkMPFactor");
34 dfactor =
p.getParameter<
double>(
"dark_factor");
42 edm::LogVerbatim(
"SimG4CoreCustomPhysics") <<
"CustomPhysicsListSS: Path for custom particle definition file: \n"
49 edm::LogVerbatim(
"SimG4CoreCustomPhysicsSS") <<
"===== CustomPhysicsList::ConstructParticle ";
54 edm::LogVerbatim(
"SimG4CoreCustomPhysicsSS") <<
"CustomPhysicsListSS: adding CustomPhysics processes";
56 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
61 G4ProcessManager* pmanager = particle->GetProcessManager();
63 <<
"CustomPhysicsListSS: " << particle->GetParticleName() <<
" PDGcode= " << particle->GetPDGEncoding()
64 <<
" Mass= " << particle->GetPDGMass() /
GeV <<
" GeV.";
66 if (particle->GetPDGCharge() != 0.0) {
67 ph->RegisterProcess(
new G4CoulombScattering, particle);
68 ph->RegisterProcess(
new G4hIonisation, particle);
72 <<
"CustomPhysicsListSS: " << particle->GetParticleName()
73 <<
" CloudMass= " <<
cp->GetCloud()->GetPDGMass() /
GeV
74 <<
" GeV; SpectatorMass= " <<
cp->GetSpectator()->GetPDGMass() /
GeV <<
" GeV.";
81 if (particle->GetParticleType() ==
"darkpho") {
83 pmanager->AddDiscreteProcess(darkGamma);