Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ExcitedMesonConstructor.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// --------------------------------------------------------------
27// GEANT 4 class implementation file
28//
29// History: first implementation, based on object model of
30// 10 oct 1998 H.Kurashige
31// ---------------------------------------------------------------
32#ifndef G4ExcitedMesonConstructor_h
33#define G4ExcitedMesonConstructor_h 1
34
35#include "globals.hh"
36class G4DecayTable;
37
39{
40 // This class is a utility class for construction
41 // short lived particles
42 public:
43 enum
44 {
45 NMultiplets = 10
46 };
47
48 enum
49 {
50 NMesonTypes = 5
51 };
52
53 enum
54 {
56 };
57
58 public:
59 G4ExcitedMesonConstructor(G4int nStates = 0, G4int isoSpin = 0);
60 virtual ~G4ExcitedMesonConstructor() = default;
61
62 virtual void Construct(G4int indexOfState = -1);
63
64 protected:
65 void ConstructMesons(G4int indexOfState, G4int indexOfType);
66
67 G4String GetName(G4int iIso3, G4int iState, G4int idxType);
69 G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType);
70 G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType);
71
72 protected:
74
76 G4int iType);
78 G4int iIso3, G4int iType);
80 G4int iIso3, G4int iType);
82 G4int iType);
84 G4int iType);
86 G4int iType);
88 G4int iType);
90 G4int iIso3, G4int iIso);
92 G4int iIso3, G4int iIso);
94 G4int iIso);
96 G4int iIso);
98 G4int iIso);
100 G4int iIso);
102 G4int iIso);
104 G4int iIso);
106 G4int iIso);
108 G4int iIso);
110 G4int iIso);
112 G4int iIso);
114 G4int iIso);
116 G4int iIso);
118 G4int iIso3, G4int iIso);
120 G4int iIso3, G4int iIso);
122 G4int iIso);
123 G4DecayTable* Add2KMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
124 G4int iIso);
126 G4int iIso);
127
128 G4bool Exist(G4int idxState, G4int idxType);
129 G4double GetCharge(G4int iIsoSpin3, G4int idxType);
130
131 protected:
132 enum
133 {
134 N11P1 = 0,
135 N13P0 = 1,
136 N13P1 = 2,
137 N13P2 = 3,
138 N11D2 = 4,
139 N13D1 = 5,
140 N13D3 = 6,
141 N21S0 = 7,
142 N23S1 = 8,
143 N23P2 = 9
144 };
145
146 enum
147 {
148 TPi = 0,
149 TEta = 1,
151 TK = 3,
152 TAntiK = 4
153 };
154
158
159 static const char* name[NMultiplets][NMesonTypes];
160 static const G4double mass[NMultiplets][NMesonTypes];
161 static const G4double massKdiff[NMultiplets];
162 static const G4double width[NMultiplets][NMesonTypes];
163 static const G4double widthKdiff[NMultiplets];
164 static const G4int iIsoSpin[NMesonTypes];
165 static const G4int iSpin[NMultiplets];
166 static const G4int iParity[NMultiplets];
167 static const G4int iGParity[NMultiplets][NMesonTypes];
169 static const G4int encodingOffset[NMultiplets];
170
171 enum
172 {
175 M2Pi = 2,
177 M3Pi = 4,
179 M4Pi = 6,
185 M2Eta = 12,
186 M2K = 13,
187 M2KPi = 14,
189 MPiF2 = 16,
190 MPiF0 = 17,
191 MPiA2 = 18
192 };
193 enum
194 {
195 MKPi = 0,
197 MKRho = 2,
201 MKEta = 6
202 };
203
205};
206
208{
209 G4String particle = name[iState][iType];
210 if (iType == TPi) {
211 if (iIso3 == +2) {
212 particle += "+";
213 }
214 else if (iIso3 == -2) {
215 particle += "-";
216 }
217 else {
218 particle += "0";
219 }
220 }
221 else if (iType == TK) {
222 if (iIso3 == +1) {
223 particle += "+";
224 }
225 else if (iIso3 == -1) {
226 particle += "0";
227 }
228 }
229 else if (iType == TAntiK) {
230 if (iIso3 == +1) {
231 particle += "0";
232 particle = "anti_" + particle;
233 }
234 else if (iIso3 == -1) {
235 particle += "-";
236 }
237 }
238 return particle;
239}
240
241#endif
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4DecayTable * Add3PiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddKRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
static const G4int iChargeConjugation[NMultiplets]
static const G4double mass[NMultiplets][NMesonTypes]
G4DecayTable * AddPiF0Mode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4ExcitedMesonConstructor(G4int nStates=0, G4int isoSpin=0)
G4DecayTable * AddPiA2Mode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddKStarPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
static const G4double width[NMultiplets][NMesonTypes]
static const G4int iSpin[NMultiplets]
static const G4double massKdiff[NMultiplets]
G4DecayTable * AddKOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType)
G4String GetName(G4int iIso3, G4int iState, G4int idxType)
G4DecayTable * Add2KPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * Add2PiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddKTwoPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4DecayTable * CreateDecayTable(const G4String &, G4int, G4int, G4int)
G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType)
static const G4int encodingOffset[NMultiplets]
G4DecayTable * AddPiOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddPiF2Mode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4double widthKdiff[NMultiplets]
void ConstructMesons(G4int indexOfState, G4int indexOfType)
G4DecayTable * AddKPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4double GetCharge(G4int iIsoSpin3)
G4DecayTable * AddPiEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddKStar2PiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4DecayTable * AddKEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4DecayTable * AddRhoEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * Add2PiOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * Add2PiEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * Add2PiRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddRhoGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
virtual ~G4ExcitedMesonConstructor()=default
G4DecayTable * Add4PiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4int iIsoSpin[NMesonTypes]
static const char * name[NMultiplets][NMesonTypes]
virtual void Construct(G4int indexOfState=-1)
static const G4int iParity[NMultiplets]
G4DecayTable * Add2EtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4int iGParity[NMultiplets][NMesonTypes]
static const G4double bRatio[NMultiplets][NMesonTypes][NumberOfDecayModes]
G4DecayTable * AddPiGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * Add2KMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4bool Exist(G4int idxState, G4int idxType)
G4DecayTable * AddKKStarMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddPiRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)