CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Monopole Class Reference

#include <Monopole.h>

Inheritance diagram for Monopole:

Public Member Functions

G4double MagneticCharge () const
 
 Monopole (const G4String &name="Monopole", G4int pdgEncoding=0, G4double mass_=100.*CLHEP::GeV, G4int magCharge_=1, G4int elCharge_=0)
 

Private Member Functions

 ~Monopole () override
 

Private Attributes

G4double magCharge
 

Detailed Description

Definition at line 12 of file Monopole.h.

Constructor & Destructor Documentation

Monopole::Monopole ( const G4String &  name = "Monopole",
G4int  pdgEncoding = 0,
G4double  mass_ = 100. * CLHEP::GeV,
G4int  magCharge_ = 1,
G4int  elCharge_ = 0 
)

Definition at line 6 of file Monopole.cc.

References GeV, and magCharge.

7  : G4ParticleDefinition(
8  aName, mass, 0.0, CLHEP::eplus * eCharge, 0, 0, 0, 0, 0, 0, "boson", 0, 0, pdgEncoding, true, -1.0, nullptr) {
9  magCharge = CLHEP::eplus * G4double(mCharge) * 0.5 / CLHEP::fine_structure_const;
10 
11  edm::LogInfo("Monopole") << "Monopole is created: m(GeV)= " << GetPDGMass() / CLHEP::GeV
12  << " Qel= " << GetPDGCharge() / CLHEP::eplus << " Qmag= " << magCharge / CLHEP::eplus
13  << " PDG encoding = " << pdgEncoding;
14 }
const double GeV
Definition: MathUtil.h:16
G4double magCharge
Definition: Monopole.h:25
Log< level::Info, false > LogInfo
Monopole::~Monopole ( )
overrideprivate

Definition at line 16 of file Monopole.cc.

16 {}

Member Function Documentation

G4double Monopole::MagneticCharge ( ) const
inline

Definition at line 20 of file Monopole.h.

References magCharge.

Referenced by MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), and CMSMonopolePhysics::ConstructProcess().

20 { return magCharge; };
G4double magCharge
Definition: Monopole.h:25

Member Data Documentation

G4double Monopole::magCharge
private

Definition at line 25 of file Monopole.h.

Referenced by MagneticCharge(), and Monopole().