5 #include "G4ParticleDefinition.hh"
6 #include "G4ProcessManager.hh"
8 #include "G4StepLimiter.hh"
9 #include "G4hMultipleScattering.hh"
10 #include "G4hIonisation.hh"
11 #include "G4mplIonisation.hh"
12 #include "G4mplIonisationWithDeltaModel.hh"
14 #include "CLHEP/Units/GlobalSystemOfUnits.h"
17 : G4VPhysicsConstructor(
"Monopole Physics") {
24 if (pdt && mass > 0.0) {
26 for (HepPDT::ParticleDataTable::const_iterator p = pdt->begin(); p != pdt->end(); ++
p, ++
ii) {
28 std::string particleName = (particle.name()).substr(0, 8);
29 if (strcmp(particleName.c_str(),
"Monopole") == 0) {
30 names.push_back(particle.name());
31 masses.push_back(mass * CLHEP::GeV);
32 elCharges.push_back((
int)(particle.charge()));
36 G4cout <<
"CMSMonopolePhysics: Monopole[" << ii <<
"] " << particleName <<
" Mass " << particle.mass()
37 <<
" GeV, Magnetic Charge " << magCharge <<
", Electric Charge " << particle.charge() << G4endl;
38 }
else if (strcmp(particleName.c_str(),
"AntiMono") == 0) {
39 names.push_back(particle.name());
40 masses.push_back(mass * CLHEP::GeV);
41 elCharges.push_back((
int)(particle.charge()));
45 G4cout <<
"CMSMonopolePhysics: Monopole[" << ii <<
"] " << particleName <<
" Mass " << particle.mass()
46 <<
" GeV, Magnetic Charge " << magCharge <<
", Electric Charge " << particle.charge() << G4endl;
51 G4cout <<
"CMSMonopolePhysics has " <<
names.size() <<
" monopole candidates and delta Ray option " << deltaRay
58 for (
unsigned int ii = 0;
ii <
names.size(); ++
ii) {
65 G4cout <<
"Create Monopole " <<
names[
ii] <<
" of mass " <<
masses[
ii] / CLHEP::GeV <<
" GeV, magnetic charge "
75 G4cout <<
"### CMSMonopolePhysics ConstructProcess()" << G4endl;
77 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
82 G4ProcessManager* pmanager = mpl->GetProcessManager();
85 o <<
"Monopole without a Process Manager";
91 G4double
mass = mpl->GetPDGMass();
93 G4cout <<
"### CMSMonopolePhysics instantiates for " << mpl->GetParticleName() <<
" at " << mpl <<
" Mass "
94 << mass / CLHEP::GeV <<
" GeV Mag " << magn <<
" Process manager " << pmanager << G4endl;
99 pmanager->RemoveProcess(idxt);
103 if (mpl->GetPDGCharge() != 0.0) {
105 G4hMultipleScattering* hmsc =
new G4hMultipleScattering();
106 ph->RegisterProcess(hmsc, mpl);
108 G4hIonisation* hioni =
new G4hIonisation();
109 ph->RegisterProcess(hioni, mpl);
112 G4mplIonisation* mplioni =
new G4mplIonisation(magn);
114 G4mplIonisationWithDeltaModel* ion =
new G4mplIonisationWithDeltaModel(magn,
"PAI");
115 ion->SetParticle(mpl);
116 mplioni->AddEmModel(0, ion, ion);
118 ph->RegisterProcess(mplioni, mpl);
120 pmanager->AddDiscreteProcess(
new G4StepLimiter());
122 pmanager->DumpInfo();
T getUntrackedParameter(std::string const &, T const &) const
~CMSMonopolePhysics() override
std::vector< int > pdgEncodings
HepPDT::ParticleDataTable ParticleDataTable
std::vector< Monopole * > monopoles
std::vector< int > elCharges
HepPDT::ParticleData ParticleData
std::vector< std::string > names
void ConstructProcess() override
void ConstructParticle() override
CMSMonopolePhysics(const HepPDT::ParticleDataTable *table_, const edm::ParameterSet &p)
G4double MagneticCharge() const
std::vector< double > masses