7 #include "G4ParticleDefinition.hh" 8 #include "G4ProcessManager.hh" 10 #include "G4StepLimiter.hh" 11 #include "G4hMultipleScattering.hh" 12 #include "G4hIonisation.hh" 13 #include "G4hhIonisation.hh" 14 #include "G4mplIonisationModel.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);
131 G4mplIonisationModel* ion =
new G4mplIonisationModel(magn,
"PAI");
132 ion->SetParticle(mpl);
133 mplioni->AddEmModel(0,ion,ion);
135 ph->RegisterProcess(mplioni, mpl);
137 pmanager->AddDiscreteProcess(
new G4StepLimiter());
138 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