Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4ExcitedDeltaConstructor.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: G4ExcitedDeltaConstructor.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 G4ExcitedDeltaConstructor_h
37 #define G4ExcitedDeltaConstructor_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 
62  virtual G4double GetMass( G4int state, G4int iso);
63  virtual G4double GetWidth( G4int state, G4int iso);
64  virtual G4int GetiSpin(G4int iState);
65  virtual G4int GetiParity(G4int iState);
66  virtual G4int GetEncodingOffset(G4int iState);
67 
69  G4int iIso3, G4int iState,
70  G4bool fAnti = false);
71  private:
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 = 9 };
85  private:
86  enum { DeltaIsoSpin = 3 };
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 = 5};
98  private:
99  enum { NGamma=0, NPi=1, NRho=2, DeltaPi=3, NStarPi=4 };
100  private:
102 };
103 
104 inline
106 {
107  return mass[iState];
108 }
109 
110 inline
112 {
113  return width[iState];
114 }
115 
116 inline
118 {
119  return iSpin[iState];
120 }
121 
122 inline
124 {
125  return iParity[iState];
126 }
127 
128 inline
130 {
131  return encodingOffset[iState];
132 }
133 
134 inline
136 {
137  // Quark contents
138  // iIso3 = +3 : uuu
139  // iIso3 = +1 : uud
140  // iIso3 = -1 : udd
141  // iIso3 = -3 : ddd
142  G4int quark=0;
143  if ( iQ == 0 ){
144  if ( iIso3 == -3 ){
145  // d-quark
146  quark = 1;
147  } else {
148  // u-quark
149  quark = 2;
150  }
151  } else if ( iQ == 2 ){
152  if ( iIso3 == +3 ){
153  // u-quark
154  quark = 2;
155  } else {
156  // d-quark
157  quark = 1;
158  }
159  } else {
160  if (( iIso3 == -1 )||( iIso3 == -3 )) {
161  // d-quark
162  quark = 1;
163  } else {
164  // u-quark
165  quark = 2;
166  }
167  }
168  return quark;
169 }
170 
171 inline
173 {
174  return name[iState];
175 }
176 
177 inline
179 {
180  G4String particle = name[iState];
181  if ( iIso3 == -3 ){
182  particle += "-";
183  } else if ( iIso3 == -1 ){
184  particle += "0";
185  } else if ( iIso3 == +1 ){
186  particle += "+";
187  } else {
188  particle += "++";
189  }
190  return particle;
191 }
192 #endif
193 
194 
195 
196 
197 
198 
199 
200 
201 
202 
const XML_Char * name
Definition: expat.h:151
virtual G4String GetMultipletName(G4int iState)
virtual G4int GetiParity(G4int iState)
static const G4double mass[NStates]
virtual G4int GetEncodingOffset(G4int iState)
virtual G4int GetiSpin(G4int iState)
virtual G4double GetWidth(G4int state, G4int iso)
static const G4double bRatio[NStates][NumberOfDecayModes]
static const G4int iParity[NStates]
G4DecayTable * AddNStarPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
G4DecayTable * AddNPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
virtual G4double GetMass(G4int state, G4int iso)
virtual G4int GetQuarkContents(G4int, G4int)
G4DecayTable * AddDeltaPiMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
int G4int
Definition: G4Types.hh:78
static const G4int encodingOffset[NStates]
virtual G4DecayTable * CreateDecayTable(const G4String &name, G4int iIso3, G4int iState, G4bool fAnti=false)
static const G4int iSpin[NStates]
G4DecayTable * AddNGammaMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4String GetName(G4int iIso3, G4int iState)
G4DecayTable * AddNRhoMode(G4DecayTable *table, const G4String &name, G4double br, G4int iIso3, G4bool fAnti)
virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState)
static const G4double width[NStates]