ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ExcitedNucleonConstructor.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4ExcitedNucleonConstructor.hh
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 //
28 //
29 // --------------------------------------------------------------
30 // GEANT 4 class implementation file
31 //
32 // History: first implementation, based on object model of
33 // 10 oct 1998 H.Kurashige
34 // ---------------------------------------------------------------
35 #ifndef G4ExcitedNucleonConstructor_h
36 #define G4ExcitedNucleonConstructor_h 1
37 
38 #include "globals.hh"
39 #include "G4ios.hh"
41 
43 {
44  //This class is a utility class for construction
45  //short lived particles
46 
47  public:
50 
51  protected:
52  virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState);
53 
54  protected:
55  virtual G4bool Exist( G4int ){return true;}
56 
58  virtual G4String GetName(G4int iIso3, G4int iState);
59  virtual G4String GetMultipletName(G4int iState);
60  virtual G4double GetMass( G4int state, G4int iso);
61  virtual G4double GetWidth( G4int state, G4int iso);
62  virtual G4int GetiSpin(G4int iState);
63  virtual G4int GetiParity(G4int iState);
64  virtual G4int GetEncodingOffset(G4int iState);
65 
67  G4int iIso3, G4int iState,
68  G4bool fAnti = false);
69  private:
71  G4double br, G4int iIso3, G4bool fAnti);
73  G4double br, G4int iIso3, G4bool fAnti);
75  G4double br, G4int iIso3, G4bool fAnti);
77  G4double br, G4int iIso3, G4bool fAnti);
79  G4double br, G4int iIso3, G4bool fAnti);
81  G4double br, G4int iIso3, G4bool fAnti);
83  G4double br, G4int iIso3, G4bool fAnti);
85  G4double br, G4int iIso3, G4bool fAnti);
87  G4double br, G4int iIso3, G4bool fAnti);
88 
89  public:
90  enum { NStates = 15 };
91  private:
92  enum { NucleonIsoSpin = 1 };
93 
94  private:
95  static const char* name[ NStates ];
96  static const G4double mass[ NStates ];
97  static const G4double width[ NStates ];
98  static const G4int iSpin[ NStates ];
99  static const G4int iParity[ NStates ];
100  static const G4int encodingOffset[ NStates ];
101 
102  public:
103  enum { NumberOfDecayModes = 9 };
104  private:
105  enum { NGamma=0, NPi=1, NEta=2, NOmega=3, NRho=4,
106  N2Pi=5, DeltaPi=6, NStarPi=7, LambdaK = 8 };
107  private:
109 };
110 
111 inline
113 {
114  return mass[iState];
115 }
116 
117 inline
119 {
120  return width[iState];
121 }
122 
123 inline
125 {
126  return iSpin[iState];
127 }
128 
129 inline
131 {
132  return iParity[iState];
133 }
134 
135 inline
137 {
138  return encodingOffset[iState];
139 }
140 
141 inline
143 {
144  // Quark contents
145  // iIso3 = -1 : udd
146  // iIso3 = +1 : uud
147  G4int quark=0;
148  if ( iQ == 0 ){
149  // u-quark
150  quark = 2;
151  } else if ( iQ == 2 ){
152  // d-quark
153  quark = 1;
154  } else {
155  if ( iIso3 == -1 ){
156  // d-quark
157  quark = 1;
158  } else {
159  // u-quark
160  quark = 2;
161  }
162  }
163  return quark;
164 }
165 
166 inline
168 {
169  return name[iState];
170 }
171 
172 inline
174 {
175  G4String particle = name[iState];
176  if ( iIso3 == -1 ){
177  particle += "0";
178  } else {
179  particle += "+";
180  }
181  return particle;
182 }
183 #endif
184 
185 
186 
187 
188 
189 
190 
191 
192 
193