CMS 3D CMS Logo

Monopole.cc
Go to the documentation of this file.
3 #include "G4ParticleTable.hh"
4 #include "CLHEP/Units/PhysicalConstants.h"
5 
6 Monopole::Monopole(const G4String& aName, G4int pdgEncoding, G4double mass,
7  G4int mCharge, G4int eCharge) : G4ParticleDefinition(aName,
8  mass, 0.0, CLHEP::eplus*eCharge, 0, 0, 0,
9  0, 0, 0, "boson", 0, 0, pdgEncoding, true, -1.0, nullptr) {
10 
11  magCharge = CLHEP::eplus*G4double(mCharge)*0.5/CLHEP::fine_structure_const;
12 
13  edm::LogInfo("Monopole") << "Monopole is created: m(GeV)= "
14  << GetPDGMass()/CLHEP::GeV
15  << " Qel= " << GetPDGCharge()/CLHEP::eplus
16  << " Qmag= " << magCharge/CLHEP::eplus
17  << " PDG encoding = " << pdgEncoding;
18 }
19 
const double GeV
Definition: MathUtil.h:16
#define nullptr
Monopole(const G4String &name="Monopole", G4int pdgEncoding=0, G4double mass_=100.*CLHEP::GeV, G4int magCharge_=1, G4int elCharge_=0)
Definition: Monopole.cc:6
G4double magCharge
Definition: Monopole.h:25
~Monopole() override
Definition: Monopole.cc:20