ATLAS Offline Software
Loading...
Searching...
No Matches
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
33class CustomMonopole : public G4ParticleDefinition
34{
35public:
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
57private:
58
59 G4double m_magCharge;
60};
61
62#endif
double charge(const T &p)
Definition AtlasPID.h:997
const double width
void SetMagneticCharge(G4double mCharge=1.0)
void PrintMonopoleInfo() const
G4double m_magCharge
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)
G4double MagneticCharge() const
virtual ~CustomMonopole()