ATLAS Offline Software
Loading...
Searching...
No Matches
CustomMonopole Class Reference

#include <CustomMonopole.h>

Inheritance diagram for CustomMonopole:
Collaboration diagram for CustomMonopole:

Public Member Functions

 CustomMonopole (const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable)
virtual ~CustomMonopole ()
G4double MagneticCharge () const
void SetMagneticCharge (G4double mCharge=1.0)
void PrintMonopoleInfo () const

Private Attributes

G4double m_magCharge

Detailed Description

Definition at line 33 of file CustomMonopole.h.

Constructor & Destructor Documentation

◆ CustomMonopole()

CustomMonopole::CustomMonopole ( const G4String & aName,
G4double mass,
G4double width,
G4double charge,
G4int iSpin,
G4int iParity,
G4int iConjugation,
G4int iIsospin,
G4int iIsospin3,
G4int gParity,
const G4String & pType,
G4int lepton,
G4int baryon,
G4int encoding,
G4bool stable,
G4double lifetime,
G4DecayTable * decaytable )

Definition at line 35 of file CustomMonopole.cxx.

45 : G4ParticleDefinition( aName,mass,width,charge,iSpin,iParity,
46 iConjugation,iIsospin,iIsospin3,gParity,pType,
47 lepton,baryon,encoding,stable,lifetime,decaytable )
48 , m_magCharge(0.)
49{}
double charge(const T &p)
Definition AtlasPID.h:997
const double width
G4double m_magCharge

◆ ~CustomMonopole()

CustomMonopole::~CustomMonopole ( )
virtual

Definition at line 53 of file CustomMonopole.cxx.

54{}

Member Function Documentation

◆ MagneticCharge()

G4double CustomMonopole::MagneticCharge ( ) const
inline

Definition at line 51 of file CustomMonopole.h.

51{return m_magCharge;}

◆ PrintMonopoleInfo()

void CustomMonopole::PrintMonopoleInfo ( ) const

Definition at line 56 of file CustomMonopole.cxx.

57{ G4cout << "CustomMonopole Info: m(GeV)= " << this->GetPDGMass()/CLHEP::GeV
58 << " Qel= " << this->GetPDGCharge()/CLHEP::eplus
59 << " Qmag= " << m_magCharge/CLHEP::eplus
60 << G4endl;
61}

◆ SetMagneticCharge()

void CustomMonopole::SetMagneticCharge ( G4double mCharge = 1.0)
inline

Definition at line 53 of file CustomMonopole.h.

53{m_magCharge = CLHEP::eplus*mCharge*0.5/CLHEP::fine_structure_const;}

Member Data Documentation

◆ m_magCharge

G4double CustomMonopole::m_magCharge
private

Definition at line 59 of file CustomMonopole.h.


The documentation for this class was generated from the following files: