#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.
18 : G4VPhysicsConstructor(
"Monopole Physics") {
25 if (pdt && mass > 0.0) {
27 for (HepPDT::ParticleDataTable::const_iterator p = pdt->begin(); p != pdt->end(); ++
p, ++
ii) {
30 if (strcmp(particleName.c_str(),
"Monopole") == 0) {
31 names.push_back(particle.name());
33 elCharges.push_back((
int)(particle.charge()));
37 G4cout <<
"CMSMonopolePhysics: Monopole[" << ii <<
"] " << particleName <<
" Mass " << particle.mass()
38 <<
" GeV, Magnetic Charge " << magCharge <<
", Electric Charge " << particle.charge() << G4endl;
39 }
else if (strcmp(particleName.c_str(),
"AntiMono") == 0) {
40 names.push_back(particle.name());
41 masses.push_back(mass * CLHEP::GeV);
42 elCharges.push_back((
int)(particle.charge()));
46 G4cout <<
"CMSMonopolePhysics: Monopole[" << ii <<
"] " << particleName <<
" Mass " << particle.mass()
47 <<
" GeV, Magnetic Charge " << magCharge <<
", Electric Charge " << particle.charge() << G4endl;
52 G4cout <<
"CMSMonopolePhysics has " <<
names.size() <<
" monopole candidates and delta Ray option " << deltaRay
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 |
void CMSMonopolePhysics::ConstructProcess |
( |
| ) |
|
|
override |
Definition at line 73 of file CMSMonopolePhysics.cc.
References edm::errors::Configuration, deltaRay, Exception, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, GeV, cuy::ii, Monopole::MagneticCharge(), ResonanceBuilder::mass, monopoles, multiSc, and connectstrParser::o.
76 G4cout <<
"### CMSMonopolePhysics ConstructProcess()" << G4endl;
78 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
83 G4ProcessManager* pmanager = mpl->GetProcessManager();
86 o <<
"Monopole without a Process Manager";
92 G4double
mass = mpl->GetPDGMass();
94 G4cout <<
"### CMSMonopolePhysics instantiates for " << mpl->GetParticleName() <<
" at " << mpl <<
" Mass " 95 << mass /
CLHEP::GeV <<
" GeV Mag " << magn <<
" Process manager " << pmanager << G4endl;
100 pmanager->RemoveProcess(idxt);
104 if (mpl->GetPDGCharge() != 0.0) {
106 G4hMultipleScattering* hmsc =
new G4hMultipleScattering();
107 ph->RegisterProcess(hmsc, mpl);
109 G4hIonisation* hioni =
new G4hIonisation();
110 ph->RegisterProcess(hioni, mpl);
115 G4mplIonisationModel* ion =
new G4mplIonisationModel(magn,
"PAI");
116 ion->SetParticle(mpl);
117 mplioni->AddEmModel(0, ion, ion);
119 ph->RegisterProcess(mplioni, mpl);
121 pmanager->AddDiscreteProcess(
new G4StepLimiter());
123 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 |