Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ExcitedSigmaConstructor.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$
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 G4ExcitedSigmaConstructor_h
37 #define G4ExcitedSigmaConstructor_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:
68  G4DecayTable* AddNKMode( G4DecayTable* table, const G4String& name,
69  G4double br, G4int iIso3, G4bool fAnti);
70  G4DecayTable* AddNKStarMode( G4DecayTable* table, const G4String& name,
71  G4double br, G4int iIso3, G4bool fAnti);
72  G4DecayTable* AddSigmaPiMode( G4DecayTable* table, const G4String& name,
73  G4double br, G4int iIso3, G4bool fAnti);
74  G4DecayTable* AddSigmaStarPiMode( G4DecayTable* table, const G4String& name,
75  G4double br, G4int iIso3, G4bool fAnti);
76  G4DecayTable* AddLambdaPiMode( G4DecayTable* table, const G4String& name,
77  G4double br, G4int iIso3, G4bool fAnti);
78  G4DecayTable* AddSigmaEtaMode( G4DecayTable* table, const G4String& name,
79  G4double br, G4int iIso3, G4bool fAnti);
80  G4DecayTable* AddLambdaStarPiMode( G4DecayTable* table, const G4String& name,
81  G4double br, G4int iIso3, G4bool fAnti);
82  G4DecayTable* AddDeltaKMode( G4DecayTable* table, const G4String& name,
83  G4double br, G4int iIso3, G4bool fAnti);
84 
85  public:
86  enum { NStates = 8 };
87  private:
88  enum { SigmaIsoSpin = 2 };
89 
90  private:
91  static const char* name[ NStates ];
92  static const G4double mass[ NStates ];
93  static const G4double width[ NStates ];
94  static const G4int iSpin[ NStates ];
95  static const G4int iParity[ NStates ];
96  static const G4int encodingOffset[ NStates ];
97 
98  public:
99  enum { NumberOfDecayModes = 8 };
100  private:
101  enum { NK=0, NKStar=1, SigmaPi=2, SigmaStarPi=3, LambdaPi=4,
102  SigmaEta=5, LambdaStarPi=6, DeltaK=7};
103  private:
104  static const G4double bRatio[ NStates ][ NumberOfDecayModes];
105 };
106 
107 
108 
109 inline
111 {
112  return iSpin[iState];
113 }
114 
115 inline
117 {
118  return iParity[iState];
119 }
120 
121 inline
123 {
124  return encodingOffset[iState];
125 }
126 
127 inline
129 {
130  G4int quark=0;
131  if ( iQ == 0 ){
132  // s-quark
133  quark = 3;
134  } else if ( iQ == 1 ){
135  if (iIso3 == -2) {
136  // d-quark
137  quark = 1;
138  } else {
139  // u-quark
140  quark = 2;
141  }
142  } else if ( iQ == 2 ){
143  if (iIso3 == +2) {
144  // u-quark
145  quark = 2;
146  } else {
147  // d-quark
148  quark = 1;
149  }
150  }
151  return quark;
152 }
153 
154 inline
156 {
157  return name[iState];
158 }
159 
160 inline
162  {
163  G4String particle = name[iState];
164  if (iIso3 == +2) {
165  particle += "+";
166  } else if (iIso3 == 0) {
167  particle += "0";
168  } else if (iIso3 == -2) {
169  particle += "-";
170  }
171  return particle;
172 }
173 #endif
174 
175 
176 
177 
178 
179 
180 
181 
182 
183