G4DarkBreM v2.3.0
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 "G4DecayTable.hh"
12#include "G4ParticleDefinition.hh"
13#include "G4ParticleTable.hh"
14#include "G4PhaseSpaceDecayChannel.hh"
15#include "G4PhysicalConstants.hh"
16#include "G4SystemOfUnits.hh"
17#include "globals.hh"
18
19class G4String;
20class G4DecayTable;
21
35class G4FractionallyCharged : public G4ParticleDefinition {
36 public:
42 enum class DecayMode {
46 NoDecay = 1,
47 };
48
59
72 static void Initialize(double mass, int id = 17, float charge = 0.1);
73
77
78 private:
81
88 G4FractionallyCharged(const G4String& name, G4double mass, G4double width,
89 G4double charge, G4int iSpin, G4int iParity,
90 G4int iConjugation, G4int iIsospin, G4int iIsospin3,
91 G4int gParity, const G4String& pType, G4int lepton,
92 G4int baryon, G4int encoding, G4bool stable,
93 G4double lifetime, G4DecayTable* decaytable)
94 : G4ParticleDefinition(name, mass, width, charge, iSpin, iParity,
95 iConjugation, iIsospin, iIsospin3, gParity, pType,
96 lepton, baryon, encoding, stable, lifetime,
97 decaytable) {}
103 virtual ~G4FractionallyCharged() = default;
104};
105
106#endif // SIMCORE_DARKBREM_G4FRACTIONALLYCHARGED_H_
Formal class representing the milli-charged particle in Geant4.
Definition G4FractionallyCharged.h:35
DecayMode
How to handle FractionallyCharged decays.
Definition G4FractionallyCharged.h:42
@ 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:16
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:88
static DecayMode getDecayMode()
Get the G4FractionallyCharged::DecayMode that was provided to G4FractionallyCharged::Initialize.
Definition G4FractionallyCharged.h:76
virtual ~G4FractionallyCharged()=default
Destructor.
static G4FractionallyCharged * theFractionallyCharged
Reference to single particle definition of A'.
Definition G4FractionallyCharged.h:80
static G4FractionallyCharged * FractionallyCharged()
Accessor for FractionallyCharged definition.
Definition G4FractionallyCharged.cxx:5