CMS 3D CMS Logo

G4APrime.cc
Go to the documentation of this file.
2 #include <CLHEP/Units/SystemOfUnits.h>
3 
5 
6 G4APrime::G4APrime(const G4String& aName,
7  G4double mass,
8  G4double width,
9  G4double charge,
10  G4int iSpin,
11  G4int iParity,
12  G4int iConjugation,
13  G4int iIsospin,
14  G4int iIsospin3,
15  G4int gParity,
16  const G4String& pType,
17  G4int lepton,
18  G4int baryon,
19  G4int encoding,
20  G4bool stable,
21  G4double lifetime,
22  G4DecayTable* decaytable)
23  : G4ParticleDefinition(aName,
24  mass,
25  width,
26  charge,
27  iSpin,
28  iParity,
29  iConjugation,
30  iIsospin,
31  iIsospin3,
32  gParity,
33  pType,
34  lepton,
35  baryon,
36  encoding,
37  stable,
38  lifetime,
39  decaytable) {}
40 
42 
43 G4APrime* G4APrime::APrime(double apmass) {
44  if (!theAPrime) {
45  const G4String& name = "A^1";
46  G4double mass = apmass * CLHEP::MeV;
47  G4double width = 0.;
48  G4double charge = 0;
49  G4int iSpin = 0;
50  G4int iParity = 0;
51  G4int iConjugation = 0;
52  G4int iIsospin = 0;
53  G4int iIsospin3 = 0;
54  G4int gParity = 0;
55  const G4String& pType = "APrime";
56  G4int lepton = 0;
57  G4int baryon = 0;
58  G4int encoding = 9994;
59  G4bool stable = true;
60  G4double lifetime = -1;
61  G4DecayTable* decaytable = nullptr;
62 
63  theAPrime = new G4APrime(name,
64  mass,
65  width,
66  charge,
67  iSpin,
68  iParity,
69  iConjugation,
70  iIsospin,
71  iIsospin3,
72  gParity,
73  pType,
74  lepton,
75  baryon,
76  encoding,
77  stable,
78  lifetime,
79  decaytable);
80  }
81  return theAPrime;
82 }
static const int stable
Definition: TopGenEvent.h:10
~G4APrime() override
Definition: G4APrime.cc:41
G4APrime(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)
Definition: G4APrime.cc:6
Class creating the A&#39; particle in Geant.
static G4APrime * theAPrime
Definition: G4APrime.h:15
static G4APrime * APrime(double apmass=1000)
Definition: G4APrime.cc:43