Geant4  10.00.p01
G4ExcitedNucleonConstructor.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 // $Id: G4ExcitedNucleonConstructor.hh 67971 2013-03-13 10:13:24Z gcosmo $
28 //
29 //
30 // --------------------------------------------------------------
31 // GEANT 4 class implementation file
32 //
33 // History: first implementation, based on object model of
34 // 10 oct 1998 H.Kurashige
35 // ---------------------------------------------------------------
36 #ifndef G4ExcitedNucleonConstructor_h
37 #define G4ExcitedNucleonConstructor_h 1
38 
39 #include "globals.hh"
40 #include "G4ios.hh"
42 
44 {
45  //This class is a utility class for construction
46  //short lived particles
47 
48  public:
51 
52  protected:
53  virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState);
54 
55  protected:
56  virtual G4bool Exist( G4int ){return true;}
57 
59  virtual G4String GetName(G4int iIso3, G4int iState);
60  virtual G4String GetMultipletName(G4int iState);
61  virtual G4double GetMass( G4int state, G4int iso);
62  virtual G4double GetWidth( G4int state, G4int iso);
63  virtual G4int GetiSpin(G4int iState);
64  virtual G4int GetiParity(G4int iState);
65  virtual G4int GetEncodingOffset(G4int iState);
66 
68  G4int iIso3, G4int iState,
69  G4bool fAnti = false);
70  private:
72  G4double br, G4int iIso3, G4bool fAnti);
74  G4double br, G4int iIso3, G4bool fAnti);
76  G4double br, G4int iIso3, G4bool fAnti);
78  G4double br, G4int iIso3, G4bool fAnti);
80  G4double br, G4int iIso3, G4bool fAnti);
82  G4double br, G4int iIso3, G4bool fAnti);
84  G4double br, G4int iIso3, G4bool fAnti);
86  G4double br, G4int iIso3, G4bool fAnti);
88  G4double br, G4int iIso3, G4bool fAnti);
89 
90  public:
91  enum { NStates = 15 };
92  private:
93  enum { NucleonIsoSpin = 1 };
94 
95  private:
96  static const char* name[ NStates ];
97  static const G4double mass[ NStates ];
98  static const G4double width[ NStates ];
99  static const G4int iSpin[ NStates ];
100  static const G4int iParity[ NStates ];
101  static const G4int encodingOffset[ NStates ];
102 
103  public:
104  enum { NumberOfDecayModes = 9 };
105  private:
106  enum { NGamma=0, NPi=1, NEta=2, NOmega=3, NRho=4,
107  N2Pi=5, DeltaPi=6, NStarPi=7, LambdaK = 8 };
108  private:
110 };
111 
112 inline
114 {
115  return mass[iState];
116 }
117 
118 inline
120 {
121  return width[iState];
122 }
123 
124 inline
126 {
127  return iSpin[iState];
128 }
129 
130 inline
132 {
133  return iParity[iState];
134 }
135 
136 inline
138 {
139  return encodingOffset[iState];
140 }
141 
142 inline
144 {
145  // Quark contents
146  // iIso3 = -1 : udd
147  // iIso3 = +1 : uud
148  G4int quark=0;
149  if ( iQ == 0 ){
150  // u-quark
151  quark = 2;
152  } else if ( iQ == 2 ){
153  // d-quark
154  quark = 1;
155  } else {
156  if ( iIso3 == -1 ){
157  // d-quark
158  quark = 1;
159  } else {
160  // u-quark
161  quark = 2;
162  }
163  }
164  return quark;
165 }
166 
167 inline
169 {
170  return name[iState];
171 }
172 
173 inline
175 {
176  G4String particle = name[iState];
177  if ( iIso3 == -1 ){
178  particle += "0";
179  } else {
180  particle += "+";
181  }
182  return particle;
183 }
184 #endif
185 
186 
187 
188 
189 
190 
191 
192 
193 
194 
static const G4double mass[NStates]
G4DecayTable * AddN2PiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4DecayTable * CreateDecayTable(const G4String &name, G4int iIso3, G4int iState, G4bool fAnti=false)
static const G4int iSpin[NStates]
G4DecayTable * AddDeltaPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
static const G4double bRatio[NStates][NumberOfDecayModes]
virtual G4int GetiParity(G4int iState)
G4DecayTable * AddNGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
int G4int
Definition: G4Types.hh:78
virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState)
virtual G4int GetiSpin(G4int iState)
G4DecayTable * AddNOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
static const G4int iParity[NStates]
static const G4double width[NStates]
G4DecayTable * AddNEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
bool G4bool
Definition: G4Types.hh:79
virtual G4String GetMultipletName(G4int iState)
virtual G4double GetMass(G4int state, G4int iso)
G4DecayTable * AddLambdaKMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4int GetQuarkContents(G4int, G4int)
virtual G4int GetEncodingOffset(G4int iState)
G4DecayTable * AddNPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4double GetWidth(G4int state, G4int iso)
G4DecayTable * AddNStarPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
static const char * name[NStates]
G4DecayTable * AddNRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4String GetName(G4int iIso3, G4int iState)
double G4double
Definition: G4Types.hh:76
static const G4int encodingOffset[NStates]