ATLAS Offline Software
CustomMonopole.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MONOPOLE_CustomMonopole_h
6 #define MONOPOLE_CustomMonopole_h 1
7 
8 //---------------------------------------------------------------------------
9 //
10 //---------------------------------------------------------------------------
11 //
12 // ClassName: CustomMonopole
13 //
14 // Authors: 21.03.05 V.Ivanchenko
15 //
16 // Modified:
17 // 15.10.10 S. Burdin adapted for Atlas
18 //
19 //----------------------------------------------------------------------------
20 //
21 
22 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
23 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
24 
25 #include "G4ParticleDefinition.hh"
26 #include "globals.hh"
27 #include "CLHEP/Units/PhysicalConstants.h"
28 
29 // ######################################################################
30 // ### CustomMonopole ###
31 // ######################################################################
32 
33 class CustomMonopole : public G4ParticleDefinition
34 {
35 public:
36 
38  const G4String& aName, G4double mass,
39  G4double width, G4double charge,
40  G4int iSpin, G4int iParity,
41  G4int iConjugation, G4int iIsospin,
42  G4int iIsospin3, G4int gParity,
43  const G4String& pType, G4int lepton,
44  G4int baryon, G4int encoding,
45  G4bool stable, G4double lifetime,
46  G4DecayTable *decaytable );
47 
48 
49  virtual ~CustomMonopole();
50 
51  G4double MagneticCharge() const {return m_magCharge;}
52 
53  void SetMagneticCharge(G4double mCharge = 1.0) {m_magCharge = CLHEP::eplus*mCharge*0.5/CLHEP::fine_structure_const;}
54 
55  void PrintMonopoleInfo() const;
56 
57 private:
58 
59  G4double m_magCharge;
60 };
61 
62 #endif
python.PhysicalConstants.fine_structure_const
float fine_structure_const
Definition: PhysicalConstants.py:103
CustomMonopole::m_magCharge
G4double m_magCharge
Definition: CustomMonopole.h:59
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: CustomMonopole.cxx:35
dqt_zlumi_pandas.mass
mass
Definition: dqt_zlumi_pandas.py:170
CustomMonopole::PrintMonopoleInfo
void PrintMonopoleInfo() const
Definition: CustomMonopole.cxx:56
CustomMonopole::SetMagneticCharge
void SetMagneticCharge(G4double mCharge=1.0)
Definition: CustomMonopole.h:53
generateReferenceFile.encoding
encoding
Definition: generateReferenceFile.py:15
CustomMonopole::~CustomMonopole
virtual ~CustomMonopole()
Definition: CustomMonopole.cxx:53
MCTruthPartClassifier::stable
@ stable
Definition: TruthClassifiers.h:148
CustomMonopole::MagneticCharge
G4double MagneticCharge() const
Definition: CustomMonopole.h:51
charge
double charge(const T &p)
Definition: AtlasPID.h:494
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
python.SystemOfUnits.eplus
int eplus
Definition: SystemOfUnits.py:137
CustomMonopole
Definition: CustomMonopole.h:34