Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
Physics
src
G4Monopole.cc
Go to the documentation of this file.
1
#include "SimG4Core/Physics/interface/G4Monopole.hh"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include "G4ParticleTable.hh"
4
#include "G4PhysicalConstants.hh"
5
6
G4Monopole::G4Monopole(
const
G4String aName, G4int pdgEncoding, G4double mass,
7
G4int mCharge, G4int eCharge) :
8
G4ParticleDefinition(aName, mass, 0.0*
MeV
, eplus*eCharge, 0, 0, 0,
9
0, 0, 0,
"boson"
, 0, 0, pdgEncoding,
true
, -1.0, 0) {
10
11
magCharge = eplus * G4double(mCharge) / fine_structure_const * 0.5;
12
13
edm::LogInfo
(
"G4Monopole"
) <<
"Monopole is created: m(GeV)= "
14
<< GetPDGMass()/
GeV
15
<<
" Qel= "
<< GetPDGCharge()/eplus
16
<<
" Qmag= "
<< magCharge/eplus
17
<<
" PDG encoding = "
<< pdgEncoding;
18
/*
19
G4cout << "Monopole is created: m(GeV)= " << GetPDGMass()/GeV
20
<< " Qel= " << GetPDGCharge()/eplus
21
<< " Qmag= " << magCharge/eplus
22
<< " PDG encoding = " << pdgEncoding << G4endl;
23
*/
24
}
25
26
G4Monopole::~G4Monopole() {}
MessageLogger.h
GeV
const double GeV
Definition:
MathUtil.h:16
MeV
const double MeV
funct::true
true
Definition:
Factorize.h:183
edm::LogInfo
Definition:
MessageLogger.h:214
Generated for CMSSW Reference Manual by
1.8.5