Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4ExcitedXiConstructor.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 // $Id: G4ExcitedXiConstructor.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 G4ExcitedXiConstructor_h
37 #define G4ExcitedXiConstructor_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:
50  virtual ~G4ExcitedXiConstructor();
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);
76 
77  public:
78  enum { NStates = 5 };
79  private:
80  enum { XiIsoSpin = 1 };
81 
82  private:
83  static const char* name[ NStates ];
84  static const G4double mass[ NStates ];
85  static const G4double width[ NStates ];
86  static const G4int iSpin[ NStates ];
87  static const G4int iParity[ NStates ];
88  static const G4int encodingOffset[ NStates ];
89 
90  public:
91  enum { NumberOfDecayModes = 4 };
92  private:
93  enum { XiPi=0, XiGamma=1, LambdaK=2, SigmaK=3 };
94  private:
96 };
97 
98 
99 inline
101 {
102  return iSpin[iState];
103 }
104 
105 inline
107 {
108  return iParity[iState];
109 }
110 
111 inline
113 {
114  return encodingOffset[iState];
115 }
116 
117 inline
119 {
120  G4int quark=0;
121  if ( iQ == 0 ){
122  // s-quark
123  quark = 3;
124  } else if ( iQ == 1 ){
125  // s-quark
126  quark = 3;
127  } else if ( iQ == 2 ){
128  if (iIso3 == +1) {
129  // u-quark
130  quark = 2;
131  } else {
132  // d-quark
133  quark = 1;
134  }
135  }
136  return quark;
137 }
138 
139 inline
141 {
142  return name[iState];
143 }
144 
145 inline
147 {
148  G4String particle = name[iState];
149  if (iIso3 == +1) {
150  particle += "0";
151  } else if (iIso3 ==-1) {
152  particle += "-";
153  }
154  return particle;
155 }
156 #endif
157 
158 
159 
160 
161 
162 
163 
164 
165 
166 
static const G4double bRatio[NStates][NumberOfDecayModes]
const XML_Char * name
Definition: expat.h:151
virtual G4DecayTable * CreateDecayTable(const G4String &name, G4int iIso3, G4int iState, G4bool fAnti=false)
virtual G4int GetiParity(G4int iState)
virtual G4String GetMultipletName(G4int iState)
G4DecayTable * AddLambdaKMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4bool Exist(G4int)
G4DecayTable * AddSigmaKMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
static const G4int iSpin[NStates]
static const G4int iParity[NStates]
virtual G4double GetMass(G4int state, G4int iso)
virtual G4double GetWidth(G4int state, G4int iso)
G4DecayTable * AddXiPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
int G4int
Definition: G4Types.hh:78
static const G4double mass[NStates]
G4DecayTable * AddXiGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4int GetiSpin(G4int iState)
static const G4double width[NStates]
virtual G4String GetName(G4int iIso3, G4int iState)
virtual G4int GetEncodingOffset(G4int iState)
virtual G4int GetQuarkContents(G4int, G4int)
static const G4int encodingOffset[NStates]