6 #include "G4ParticleDefinition.hh" 7 #include "G4ProcessManager.hh" 9 #include "G4StepLimiter.hh" 10 #include "G4mplIonisation.hh" 11 #include "G4mplIonisationWithDeltaModel.hh" 12 #include "G4hMultipleScattering.hh" 13 #include "G4hIonisation.hh" 14 #include "G4hhIonisation.hh" 16 #include "CLHEP/Units/GlobalSystemOfUnits.h" 21 G4VPhysicsConstructor(
"Monopole Physics"), chordFinderSetter(cfs) {
29 if (pdt && mass > 0.0) {
31 for (HepPDT::ParticleDataTable::const_iterator p=pdt->begin();
32 p != pdt->end(); ++
p,++
ii) {
35 if (strcmp(particleName.c_str(),
"Monopole") == 0) {
36 names.push_back(particle.name());
38 elCharges.push_back((
int)(particle.charge()));
41 if (
verbose > 0)
G4cout <<
"CMSMonopolePhysics: Monopole[" << ii
42 <<
"] " << particleName <<
" Mass " 43 << particle.mass() <<
" GeV, Magnetic Charge " 44 << magCharge <<
", Electric Charge " 45 << particle.charge() << G4endl;
46 }
else if(strcmp(particleName.c_str(),
"AntiMono") == 0) {
47 names.push_back(particle.name());
49 elCharges.push_back((
int)(particle.charge()));
52 if (
verbose > 0)
G4cout <<
"CMSMonopolePhysics: Monopole[" << ii
53 <<
"] " << particleName <<
" Mass " 54 << particle.mass() <<
" GeV, Magnetic Charge " 55 << magCharge <<
", Electric Charge " 56 << particle.charge() << G4endl;
61 <<
" monopole candidates and delta Ray option " 62 << deltaRay << G4endl;
78 <<
" GeV, magnetic charge " << mc
89 G4cout <<
"### CMSMonopolePhysics ConstructProcess()" << G4endl;
91 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
96 G4ProcessManager *pmanager = mpl->GetProcessManager();
99 o <<
"Monopole without a Process Manager";
100 G4Exception(
"CMSMonopolePhysics::ConstructProcess()",
"",
101 FatalException,o.str().c_str());
105 G4double
mass = mpl->GetPDGMass();
107 G4cout <<
"### CMSMonopolePhysics instantiates for " 108 << mpl->GetParticleName()
109 <<
" at " << mpl <<
" Mass " << mass/
CLHEP::GeV 110 <<
" GeV Mag " << magn <<
" Process manager " << pmanager
115 pmanager->RemoveProcess(0);
120 if (mpl->GetPDGCharge() != 0.0) {
122 G4hMultipleScattering* hmsc =
new G4hMultipleScattering();
123 ph->RegisterProcess(hmsc, mpl);
125 G4hIonisation* hioni =
new G4hIonisation();
126 ph->RegisterProcess(hioni, mpl);
129 G4mplIonisation* mplioni =
new G4mplIonisation(magn);
130 ph->RegisterProcess(mplioni, mpl);
132 pmanager->AddDiscreteProcess(
new G4StepLimiter());
133 if (
verbose > 1) { pmanager->DumpInfo(); }
T getUntrackedParameter(std::string const &, T const &) const
~CMSMonopolePhysics() override
std::vector< int > pdgEncodings
HepPDT::ParticleDataTable ParticleDataTable
std::vector< Monopole * > monopoles
CMSMonopolePhysics(const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *cfs_, const edm::ParameterSet &p)
std::vector< int > elCharges
HepPDT::ParticleData ParticleData
std::vector< std::string > names
void ConstructProcess() override
void ConstructParticle() override
sim::ChordFinderSetter * chordFinderSetter
G4double MagneticCharge() const
std::vector< double > masses