Geant4  10.02
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 // This code plementation is the intellectual property of
27 // the GEANT4 collaboration.
28 //
29 // By copying, distributing or modifying the Program (or any work
30 // based on the Program) you indicate your acceptance of this statement,
31 // and all its terms.
32 //
33 // $Id: G4ExcitedMesonConstructor.hh 67971 2013-03-13 10:13:24Z gcosmo $
34 //
35 //
36 // --------------------------------------------------------------
37 // GEANT 4 class implementation file
38 //
39 // History: first implementation, based on object model of
40 // 10 oct 1998 H.Kurashige
41 // ---------------------------------------------------------------
42 #ifndef G4ExcitedMesonConstructor_h
43 #define G4ExcitedMesonConstructor_h 1
44 
45 #include "globals.hh"
46 #include "G4ios.hh"
47 class G4DecayTable;
48 
50 {
51  //This class is a utility class for construction
52  //short lived particles
53 
54  public:
55  G4ExcitedMesonConstructor(G4int nStates = 0, G4int isoSpin=0);
57 
58  public:
59  virtual void Construct(G4int indexOfState = -1);
60 
61  protected:
62  void ConstructMesons(G4int indexOfState, G4int indexOfType);
63 
64  G4String GetName(G4int iIso3, G4int iState, G4int idxType);
65  G4double GetCharge(G4int iIsoSpin3);
66  G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType);
67  G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType);
68 
69  public:
70  enum { NMultiplets = 10 };
71  protected:
72  enum {
73  N11P1 = 0, N13P0 = 1, N13P1 = 2, N13P2 = 3,
74  N11D2 = 4, N13D1 = 5, N13D3 = 6,
75  N21S0 = 7, N23S1 = 8, N23P2 = 9
76  };
77 
78  public:
79  enum { NMesonTypes = 5 };
80  protected:
81  enum { TPi=0, TEta=1, TEtaPrime=2, TK=3, TAntiK=4 };
82 
83  protected:
84  const G4String type;
87 
88  G4bool Exist(G4int idxState, G4int idxType);
89  G4double GetCharge(G4int iIsoSpin3, G4int idxType);
90  static const char* name[ NMultiplets ][ NMesonTypes ];
91  static const G4double mass[ NMultiplets ][ NMesonTypes ];
92  static const G4double massKdiff[ NMultiplets ];
93  static const G4double width[ NMultiplets ][ NMesonTypes ];
94  static const G4double widthKdiff[ NMultiplets ];
95  static const G4int iIsoSpin[ NMesonTypes ];
96  static const G4int iSpin[ NMultiplets ];
97  static const G4int iParity[ NMultiplets ];
98  static const G4int iGParity[ NMultiplets ][ NMesonTypes ];
101 
102  public:
103  enum { NumberOfDecayModes = 19 };
104  protected:
105  enum { MPiGamma = 0, MRhoGamma=1, M2Pi=2, MPiRho=3,
106  M3Pi= 4, MPiEta=5, M4Pi=6, MKKStar=7,
108  M2Eta=12, M2K=13, M2KPi=14, MPiOmega=15,
109  MPiF2=16, MPiF0=17, MPiA2=18 };
110  enum { MKPi = 0, MKStarPi=1, MKRho=2, MKOmega=3,
112 
113 
115 
117  G4int , G4int, G4int);
118 
119  G4DecayTable* AddKPiMode( G4DecayTable* table, const G4String& name,
120  G4double br, G4int iIso3, G4int iType);
121  G4DecayTable* AddKStarPiMode( G4DecayTable* table, const G4String& name,
122  G4double br, G4int iIso3, G4int iType);
123  G4DecayTable* AddKStar2PiMode( G4DecayTable* table, const G4String& name,
124  G4double br, G4int iIso3, G4int iType);
125  G4DecayTable* AddKRhoMode( G4DecayTable* table, const G4String& name,
126  G4double br, G4int iIso3, G4int iType);
127  G4DecayTable* AddKTwoPiMode( G4DecayTable* table, const G4String& name,
128  G4double br, G4int iIso3, G4int iType);
129  G4DecayTable* AddKOmegaMode( G4DecayTable* table, const G4String& name,
130  G4double br, G4int iIso3, G4int iType);
131  G4DecayTable* AddKEtaMode( G4DecayTable* table, const G4String& name,
132  G4double br, G4int iIso3, G4int iType);
133  G4DecayTable* AddPiGammaMode( G4DecayTable* table, const G4String& name,
134  G4double br, G4int iIso3,G4int iIso);
135  G4DecayTable* AddRhoGammaMode( G4DecayTable* table, const G4String& name,
136  G4double br, G4int iIso3, G4int iIso);
137  G4DecayTable* Add2PiMode( G4DecayTable* table, const G4String& name,
138  G4double br, G4int iIso3, G4int iIso);
139  G4DecayTable* AddPiRhoMode( G4DecayTable* table, const G4String& name,
140  G4double br, G4int iIso3, G4int iIso);
141  G4DecayTable* AddPiEtaMode( G4DecayTable* table, const G4String& name,
142  G4double br, G4int iIso3, G4int iIso);
143  G4DecayTable* AddPiF2Mode( G4DecayTable* table, const G4String& name,
144  G4double br, G4int iIso3, G4int iIso);
145  G4DecayTable* AddPiF0Mode( G4DecayTable* table, const G4String& name,
146  G4double br, G4int iIso3, G4int iIso);
147  G4DecayTable* AddPiA2Mode( G4DecayTable* table, const G4String& name,
148  G4double br, G4int iIso3, G4int iIso);
149  G4DecayTable* Add3PiMode( G4DecayTable* table, const G4String& name,
150  G4double br, G4int iIso3, G4int iIso);
151  G4DecayTable* Add4PiMode( G4DecayTable* table, const G4String& name,
152  G4double br, G4int iIso3, G4int iIso);
153  G4DecayTable* AddKKStarMode( G4DecayTable* table, const G4String& name,
154  G4double br, G4int iIso3, G4int iIso);
155  G4DecayTable* Add2PiEtaMode( G4DecayTable* table, const G4String& name,
156  G4double br, G4int iIso3, G4int iIso);
157  G4DecayTable* AddRhoEtaMode( G4DecayTable* table, const G4String& name,
158  G4double br, G4int iIso3, G4int iIso);
159  G4DecayTable* Add2PiRhoMode( G4DecayTable* table, const G4String& name,
160  G4double br, G4int iIso3, G4int iIso);
161  G4DecayTable* Add2PiOmegaMode( G4DecayTable* table, const G4String& name,
162  G4double br, G4int iIso3, G4int iIso);
163  G4DecayTable* AddPiOmegaMode( G4DecayTable* table, const G4String& name,
164  G4double br, G4int iIso3, G4int iIso);
165  G4DecayTable* Add2EtaMode( G4DecayTable* table, const G4String& name,
166  G4double br, G4int iIso3, G4int iIso);
167  G4DecayTable* Add2KMode( G4DecayTable* table, const G4String& name,
168  G4double br, G4int iIso3, G4int iIso);
169  G4DecayTable* Add2KPiMode( G4DecayTable* table, const G4String& name,
170  G4double br, G4int iIso3, G4int iIso);
171 
172 
173 
174 };
175 
176 
177 inline
179  G4int iState,
180  G4int iType)
181 {
182  G4String particle = name[iState][iType];
183  if (iType == TPi) {
184  if ( iIso3 == +2 ){
185  particle += "+";
186  } else if ( iIso3 == -2 ){
187  particle += "-";
188  } else {
189  particle += "0";
190  }
191  } else if (iType == TK) {
192  if ( iIso3 == +1 ){
193  particle += "+";
194  } else if ( iIso3 == -1 ){
195  particle += "0";
196  }
197  } else if (iType == TAntiK) {
198  if ( iIso3 == +1 ){
199  particle += "0";
200  particle = "anti_" + particle;
201  } else if ( iIso3 == -1 ){
202  particle += "-";
203  }
204  }
205  return particle;
206 }
207 
208 #endif
G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType)
G4DecayTable * Add2PiOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddKStarPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4DecayTable * Add2PiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType)
G4DecayTable * AddKOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
void ConstructMesons(G4int indexOfState, G4int indexOfType)
G4DecayTable * CreateDecayTable(const G4String &, G4int, G4int, G4int)
static const G4double mass[NMultiplets][NMesonTypes]
G4DecayTable * AddPiEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4int iIsoSpin[NMesonTypes]
G4DecayTable * AddKEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4DecayTable * AddRhoGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4String GetName(G4int iIso3, G4int iState, G4int idxType)
int G4int
Definition: G4Types.hh:78
G4DecayTable * Add4PiMode(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 * AddKPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4DecayTable * AddKTwoPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4double GetCharge(G4int iIsoSpin3)
static const G4int iParity[NMultiplets]
static const G4double massKdiff[NMultiplets]
static const G4int iGParity[NMultiplets][NMesonTypes]
G4DecayTable * Add2KPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4ExcitedMesonConstructor(G4int nStates=0, G4int isoSpin=0)
G4DecayTable * Add2EtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
bool G4bool
Definition: G4Types.hh:79
static const G4int iSpin[NMultiplets]
G4DecayTable * AddPiF0Mode(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 * AddKRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iType)
G4bool Exist(G4int idxState, G4int idxType)
G4DecayTable * AddPiA2Mode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * AddPiGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
G4DecayTable * Add3PiMode(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 * Add2KMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const char * name[NMultiplets][NMesonTypes]
G4DecayTable * AddPiF2Mode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
virtual void Construct(G4int indexOfState=-1)
G4DecayTable * AddPiOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4int encodingOffset[NMultiplets]
G4DecayTable * AddPiRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4double bRatio[NMultiplets][NMesonTypes][NumberOfDecayModes]
G4DecayTable * AddRhoEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
double G4double
Definition: G4Types.hh:76
static const G4int iChargeConjugation[NMultiplets]
G4DecayTable * AddKKStarMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4int iIso)
static const G4double width[NMultiplets][NMesonTypes]
static const G4double widthKdiff[NMultiplets]