#include <CMSMonopolePhysics.h>
Definition at line 18 of file CMSMonopolePhysics.h.
Definition at line 17 of file CMSMonopolePhysics.cc.
References deltaRay, elCharges, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, edm::ParameterSet::getUntrackedParameter(), GeV, cuy::ii, magCharge, ResonanceBuilder::mass, masses, monopoles, multiSc, names, AlCaHLTBitMon_ParallelJobs::p, HiggsValidation_cfi::particleName, pdgEncodings, AlCaHLTBitMon_QueryRunRegistry::string, and transport.
19 G4VPhysicsConstructor(
"Monopole Physics")
27 if (pdt && mass > 0.0) {
29 for (HepPDT::ParticleDataTable::const_iterator p=pdt->begin();
30 p != pdt->end(); ++
p,++
ii) {
33 if (strcmp(particleName.c_str(),
"Monopole") == 0) {
34 names.push_back(particle.name());
36 elCharges.push_back((
int)(particle.charge()));
39 if (
verbose > 0)
G4cout <<
"CMSMonopolePhysics: Monopole[" << ii
40 <<
"] " << particleName <<
" Mass " 41 << particle.mass() <<
" GeV, Magnetic Charge " 42 << magCharge <<
", Electric Charge " 43 << particle.charge() << G4endl;
44 }
else if(strcmp(particleName.c_str(),
"AntiMono") == 0) {
45 names.push_back(particle.name());
46 masses.push_back(mass*CLHEP::GeV);
47 elCharges.push_back((
int)(particle.charge()));
50 if (
verbose > 0)
G4cout <<
"CMSMonopolePhysics: Monopole[" << ii
51 <<
"] " << particleName <<
" Mass " 52 << particle.mass() <<
" GeV, Magnetic Charge " 53 << magCharge <<
", Electric Charge " 54 << particle.charge() << G4endl;
59 <<
" monopole candidates and delta Ray option " 60 << deltaRay << G4endl;
T getUntrackedParameter(std::string const &, T const &) const
std::vector< int > pdgEncodings
std::vector< Monopole * > monopoles
std::vector< int > elCharges
HepPDT::ParticleData ParticleData
std::vector< std::string > names
std::vector< double > masses
CMSMonopolePhysics::~CMSMonopolePhysics |
( |
| ) |
|
|
override |
void CMSMonopolePhysics::ConstructParticle |
( |
| ) |
|
|
override |
Definition at line 65 of file CMSMonopolePhysics.cc.
References elCharges, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, GeV, cuy::ii, magCharge, masses, CaloTowersParam_cfi::mc, monopoles, names, and pdgEncodings.
76 <<
" GeV, magnetic charge " << mc
std::vector< int > pdgEncodings
std::vector< Monopole * > monopoles
std::vector< int > elCharges
std::vector< std::string > names
std::vector< double > masses
void CMSMonopolePhysics::ConstructProcess |
( |
| ) |
|
|
override |
Definition at line 84 of file CMSMonopolePhysics.cc.
References edm::errors::Configuration, Exception, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, GeV, cuy::ii, Monopole::MagneticCharge(), ResonanceBuilder::mass, monopoles, multiSc, and connectstrParser::o.
87 G4cout <<
"### CMSMonopolePhysics ConstructProcess()" << G4endl;
89 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
94 G4ProcessManager *pmanager = mpl->GetProcessManager();
97 o <<
"Monopole without a Process Manager";
103 G4double
mass = mpl->GetPDGMass();
105 G4cout <<
"### CMSMonopolePhysics instantiates for " 106 << mpl->GetParticleName()
107 <<
" at " << mpl <<
" Mass " << mass/
CLHEP::GeV 108 <<
" GeV Mag " << magn <<
" Process manager " << pmanager
114 pmanager->RemoveProcess(idxt);
118 if (mpl->GetPDGCharge() != 0.0) {
120 G4hMultipleScattering* hmsc =
new G4hMultipleScattering();
121 ph->RegisterProcess(hmsc, mpl);
123 G4hIonisation* hioni =
new G4hIonisation();
124 ph->RegisterProcess(hioni, mpl);
127 G4mplIonisation* mplioni =
new G4mplIonisation(magn);
128 ph->RegisterProcess(mplioni, mpl);
130 pmanager->AddDiscreteProcess(
new G4StepLimiter());
131 if (
verbose > 1) { pmanager->DumpInfo(); }
std::vector< Monopole * > monopoles
G4double MagneticCharge() const
G4bool CMSMonopolePhysics::deltaRay |
|
private |
std::vector<int> CMSMonopolePhysics::elCharges |
|
private |
G4int CMSMonopolePhysics::magCharge |
|
private |
std::vector<double> CMSMonopolePhysics::masses |
|
private |
std::vector<Monopole*> CMSMonopolePhysics::monopoles |
|
private |
G4bool CMSMonopolePhysics::multiSc |
|
private |
std::vector<std::string> CMSMonopolePhysics::names |
|
private |
std::vector<int> CMSMonopolePhysics::pdgEncodings |
|
private |
G4bool CMSMonopolePhysics::transport |
|
private |
G4int CMSMonopolePhysics::verbose |
|
private |