#include <CMSMonopolePhysics.h>
Definition at line 18 of file CMSMonopolePhysics.h.
◆ CMSMonopolePhysics()
Definition at line 16 of file CMSMonopolePhysics.cc.
References deltaRay, elCharges, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, cuy::ii, magCharge, EgHLTOffHistBins_cfi::mass, masses, monopoles, multiSc, names, AlCaHLTBitMon_ParallelJobs::p, HiggsValidation_cfi::particleName, pdgEncodings, AlCaHLTBitMon_QueryRunRegistry::string, transport, and verbose.
17 : G4VPhysicsConstructor(
"Monopole Physics") {
18 verbose =
p.getUntrackedParameter<
int>(
"Verbosity", 0);
19 magCharge =
p.getUntrackedParameter<
int>(
"MonopoleCharge", 1);
20 deltaRay =
p.getUntrackedParameter<
bool>(
"MonopoleDeltaRay",
true);
21 multiSc =
p.getUntrackedParameter<
bool>(
"MonopoleMultiScatter",
false);
22 transport =
p.getUntrackedParameter<
bool>(
"MonopoleTransport",
true);
23 double mass =
p.getUntrackedParameter<
double>(
"MonopoleMass", 200);
24 if (pdt &&
mass > 0.0) {
26 for (HepPDT::ParticleDataTable::const_iterator
p = pdt->begin();
p != pdt->end(); ++
p, ++
ii) {
30 names.push_back(particle.name());
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());
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 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::~CMSMonopolePhysics |
( |
| ) |
|
|
override |
◆ ConstructParticle()
void CMSMonopolePhysics::ConstructParticle |
( |
| ) |
|
|
override |
Definition at line 57 of file CMSMonopolePhysics.cc.
References elCharges, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, cuy::ii, magCharge, masses, CaloTowersParam_cfi::mc, monopoles, names, pdgEncodings, and verbose.
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 "
std::vector< int > pdgEncodings
std::vector< Monopole * > monopoles
std::vector< int > elCharges
std::vector< std::string > names
std::vector< double > masses
◆ ConstructProcess()
void CMSMonopolePhysics::ConstructProcess |
( |
| ) |
|
|
override |
Definition at line 72 of file CMSMonopolePhysics.cc.
References edm::errors::Configuration, deltaRay, Exception, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, cuy::ii, Monopole::MagneticCharge(), EgHLTOffHistBins_cfi::mass, monopoles, multiSc, EcalTangentSkim_cfg::o, and verbose.
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();
std::vector< Monopole * > monopoles
G4double MagneticCharge() const
◆ deltaRay
G4bool CMSMonopolePhysics::deltaRay |
|
private |
◆ elCharges
std::vector<int> CMSMonopolePhysics::elCharges |
|
private |
◆ magCharge
G4int CMSMonopolePhysics::magCharge |
|
private |
◆ masses
std::vector<double> CMSMonopolePhysics::masses |
|
private |
◆ monopoles
std::vector<Monopole*> CMSMonopolePhysics::monopoles |
|
private |
◆ multiSc
G4bool CMSMonopolePhysics::multiSc |
|
private |
◆ names
std::vector<std::string> CMSMonopolePhysics::names |
|
private |
◆ pdgEncodings
std::vector<int> CMSMonopolePhysics::pdgEncodings |
|
private |
◆ transport
G4bool CMSMonopolePhysics::transport |
|
private |
◆ verbose
G4int CMSMonopolePhysics::verbose |
|
private |