Geant4  10.00.p03
G4ExcitedLambdaConstructor.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: G4ExcitedLambdaConstructor.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 G4ExcitedLambdaConstructor_h
37 #define G4ExcitedLambdaConstructor_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 G4bool Exist( G4int ){return true;}
54 
56  virtual G4String GetName(G4int iIso3, G4int iState);
57  virtual G4String GetMultipletName(G4int iState);
58  virtual G4double GetMass( G4int state, G4int iso);
59  virtual G4double GetWidth( G4int state, G4int iso);
60  virtual G4int GetiSpin(G4int iState);
61  virtual G4int GetiParity(G4int iState);
62  virtual G4int GetEncodingOffset(G4int iState);
63 
65  G4int iIso3, G4int iState,
66  G4bool fAnti = false);
67  private:
69  G4double br, G4int iIso3, G4bool fAnti);
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);
82 
83  public:
84  enum { NStates = 12 };
85  private:
86  enum { LambdaIsoSpin = 0 };
87 
88  private:
89  static const char* name[ NStates ];
90  static const G4double mass[ NStates ];
91  static const G4double width[ NStates ];
92  static const G4int iSpin[ NStates ];
93  static const G4int iParity[ NStates ];
94  static const G4int encodingOffset[ NStates ];
95 
96  public:
97  enum { NumberOfDecayModes = 7 };
98  private:
99  enum { NK=0, NKStar=1, SigmaPi=2, SigmaStarPi=3, LambdaGamma=4,
101  private:
103 };
104 
105 inline
107 {
108  return mass[iState];
109 }
110 
111 inline
113 {
114  return width[iState];
115 }
116 
117 inline
119 {
120  return iSpin[iState];
121 }
122 
123 inline
125 {
126  return iParity[iState];
127 }
128 
129 inline
131 {
132  return encodingOffset[iState];
133 }
134 
135 inline
137 {
138  G4int quark=0;
139  if ( iQ == 0 ){
140  // s-quark
141  quark = 3;
142  } else if ( iQ == 1 ){
143  // d-quark
144  quark = 1;
145  } else if ( iQ == 2 ){
146  // u-quark
147  quark = 2;
148  }
149  return quark;
150 }
151 
152 inline
154 {
155  return name[iState];
156 }
157 
158 inline
160 {
161  G4String particle = name[iState];
162  return particle;
163 }
164 #endif
165 
166 
167 
168 
169 
170 
171 
172 
173 
174 
G4DecayTable * AddNKStarMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
static const G4int encodingOffset[NStates]
static const G4double width[NStates]
G4DecayTable * AddSigmaStarPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
G4DecayTable * AddSigmaPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4int GetEncodingOffset(G4int iState)
virtual G4DecayTable * CreateDecayTable(const G4String &name, G4int iIso3, G4int iState, G4bool fAnti=false)
int G4int
Definition: G4Types.hh:78
virtual G4int GetiSpin(G4int iState)
static const G4double mass[NStates]
virtual G4int GetiParity(G4int iState)
static const G4int iParity[NStates]
bool G4bool
Definition: G4Types.hh:79
virtual G4double GetMass(G4int state, G4int iso)
static const G4int iSpin[NStates]
G4DecayTable * AddNKMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
static const char * name[NStates]
G4DecayTable * AddLambdaEtaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
static const G4double bRatio[NStates][NumberOfDecayModes]
G4DecayTable * AddLambdaGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
G4DecayTable * AddLambdaOmegaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
double G4double
Definition: G4Types.hh:76
virtual G4String GetMultipletName(G4int iState)
virtual G4String GetName(G4int iIso3, G4int iState)
virtual G4double GetWidth(G4int state, G4int iso)
virtual G4int GetQuarkContents(G4int, G4int)