G4DarkBreM v2.2.2
Geant4 Dark Bremmstrahlung from MadGraph
Loading...
Searching...
No Matches
G4FractionallyCharged.h
Go to the documentation of this file.
1
7#ifndef SIMCORE_DARKBREM_G4FRACTIONALLYCHARGED_H_
8#define SIMCORE_DARKBREM_G4FRACTIONALLYCHARGED_H_
9
10// Geant
11#include "G4ParticleDefinition.hh"
12#include "G4SystemOfUnits.hh"
13#include "G4DecayTable.hh"
14#include "G4ParticleTable.hh"
15#include "G4PhaseSpaceDecayChannel.hh"
16#include "G4PhysicalConstants.hh"
17#include "globals.hh"
18
19class G4String;
20class G4DecayTable;
21
34class G4FractionallyCharged : public G4ParticleDefinition {
35 public:
41 enum class DecayMode {
45 NoDecay = 1,
46 };
47
57
68 static void Initialize(double mass, int id = 17, float charge = 0.1);
69
72
73 private:
76
83 G4FractionallyCharged(const G4String& name, G4double mass, G4double width, G4double charge,
84 G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin,
85 G4int iIsospin3, G4int gParity, const G4String& pType, G4int lepton,
86 G4int baryon, G4int encoding, G4bool stable, G4double lifetime,
87 G4DecayTable* decaytable)
88 : G4ParticleDefinition(name, mass, width, charge, iSpin, iParity,
89 iConjugation, iIsospin, iIsospin3, gParity, pType,
90 lepton, baryon, encoding, stable, lifetime,
91 decaytable) {}
97 virtual ~G4FractionallyCharged() = default;
98};
99
100#endif // SIMCORE_DARKBREM_G4FRACTIONALLYCHARGED_H_
Formal class representing the milli-charged particle in Geant4.
Definition G4FractionallyCharged.h:34
DecayMode
How to handle FractionallyCharged decays.
Definition G4FractionallyCharged.h:41
@ NoDecay
No decay/stable – this is the default.
static void Initialize(double mass, int id=17, float charge=0.1)
Initialize the FractionallyCharged particle with the passed configuration.
Definition G4FractionallyCharged.cxx:15
G4FractionallyCharged(const G4String &name, 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)
Constructor.
Definition G4FractionallyCharged.h:83
static DecayMode getDecayMode()
Get the G4FractionallyCharged::DecayMode that was provided to G4FractionallyCharged::Initialize.
Definition G4FractionallyCharged.h:71
virtual ~G4FractionallyCharged()=default
Destructor.
static G4FractionallyCharged * theFractionallyCharged
Reference to single particle definition of A'.
Definition G4FractionallyCharged.h:75
static G4FractionallyCharged * FractionallyCharged()
Accessor for FractionallyCharged definition.
Definition G4FractionallyCharged.cxx:5