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: G4ExcitedNucleonConstructor.hh,v 1.7 2010/10/01 02:41:44 kurasige Exp $ |
---|
28 | // GEANT4 tag $Name: particles-V09-03-15 $ |
---|
29 | // |
---|
30 | // |
---|
31 | // -------------------------------------------------------------- |
---|
32 | // GEANT 4 class implementation file |
---|
33 | // |
---|
34 | // History: first implementation, based on object model of |
---|
35 | // 10 oct 1998 H.Kurashige |
---|
36 | // --------------------------------------------------------------- |
---|
37 | #ifndef G4ExcitedNucleonConstructor_h |
---|
38 | #define G4ExcitedNucleonConstructor_h 1 |
---|
39 | |
---|
40 | #include "globals.hh" |
---|
41 | #include "G4ios.hh" |
---|
42 | #include "G4ExcitedBaryonConstructor.hh" |
---|
43 | |
---|
44 | class G4ExcitedNucleonConstructor: public G4ExcitedBaryonConstructor |
---|
45 | { |
---|
46 | //This class is a utility class for construction |
---|
47 | //short lived particles |
---|
48 | |
---|
49 | public: |
---|
50 | G4ExcitedNucleonConstructor(); |
---|
51 | virtual ~G4ExcitedNucleonConstructor(); |
---|
52 | |
---|
53 | protected: |
---|
54 | virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState); |
---|
55 | |
---|
56 | protected: |
---|
57 | virtual G4bool Exist( G4int ){return true;} |
---|
58 | |
---|
59 | virtual G4int GetQuarkContents(G4int, G4int); |
---|
60 | virtual G4String GetName(G4int iIso3, G4int iState); |
---|
61 | virtual G4String GetMultipletName(G4int iState); |
---|
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 | |
---|
68 | virtual G4DecayTable* CreateDecayTable(const G4String& name, |
---|
69 | G4int iIso3, G4int iState, |
---|
70 | G4bool fAnti = false); |
---|
71 | private: |
---|
72 | G4DecayTable* AddNGammaMode( G4DecayTable* table, const G4String& name, |
---|
73 | G4double br, G4int iIso3, G4bool fAnti); |
---|
74 | G4DecayTable* AddNPiMode( G4DecayTable* table, const G4String& name, |
---|
75 | G4double br, G4int iIso3, G4bool fAnti); |
---|
76 | G4DecayTable* AddNEtaMode( G4DecayTable* table, const G4String& name, |
---|
77 | G4double br, G4int iIso3, G4bool fAnti); |
---|
78 | G4DecayTable* AddNOmegaMode( G4DecayTable* table, const G4String& name, |
---|
79 | G4double br, G4int iIso3, G4bool fAnti); |
---|
80 | G4DecayTable* AddNRhoMode( G4DecayTable* table, const G4String& name, |
---|
81 | G4double br, G4int iIso3, G4bool fAnti); |
---|
82 | G4DecayTable* AddN2PiMode( G4DecayTable* table, const G4String& name, |
---|
83 | G4double br, G4int iIso3, G4bool fAnti); |
---|
84 | G4DecayTable* AddDeltaPiMode( G4DecayTable* table, const G4String& name, |
---|
85 | G4double br, G4int iIso3, G4bool fAnti); |
---|
86 | G4DecayTable* AddNStarPiMode( G4DecayTable* table, const G4String& name, |
---|
87 | G4double br, G4int iIso3, G4bool fAnti); |
---|
88 | G4DecayTable* AddLambdaKMode( G4DecayTable* table, const G4String& name, |
---|
89 | G4double br, G4int iIso3, G4bool fAnti); |
---|
90 | |
---|
91 | public: |
---|
92 | enum { NStates = 15 }; |
---|
93 | private: |
---|
94 | enum { NucleonIsoSpin = 1 }; |
---|
95 | |
---|
96 | private: |
---|
97 | static const char* name[ NStates ]; |
---|
98 | static const G4double mass[ NStates ]; |
---|
99 | static const G4double width[ NStates ]; |
---|
100 | static const G4int iSpin[ NStates ]; |
---|
101 | static const G4int iParity[ NStates ]; |
---|
102 | static const G4int encodingOffset[ NStates ]; |
---|
103 | |
---|
104 | public: |
---|
105 | enum { NumberOfDecayModes = 9 }; |
---|
106 | private: |
---|
107 | enum { NGamma=0, NPi=1, NEta=2, NOmega=3, NRho=4, |
---|
108 | N2Pi=5, DeltaPi=6, NStarPi=7, LambdaK = 8 }; |
---|
109 | private: |
---|
110 | static const G4double bRatio[ NStates ][ NumberOfDecayModes]; |
---|
111 | }; |
---|
112 | |
---|
113 | inline |
---|
114 | G4double G4ExcitedNucleonConstructor::GetMass(G4int iState, G4int) |
---|
115 | { |
---|
116 | return mass[iState]; |
---|
117 | } |
---|
118 | |
---|
119 | inline |
---|
120 | G4double G4ExcitedNucleonConstructor::GetWidth(G4int iState, G4int) |
---|
121 | { |
---|
122 | return width[iState]; |
---|
123 | } |
---|
124 | |
---|
125 | inline |
---|
126 | G4int G4ExcitedNucleonConstructor::GetiSpin(G4int iState) |
---|
127 | { |
---|
128 | return iSpin[iState]; |
---|
129 | } |
---|
130 | |
---|
131 | inline |
---|
132 | G4int G4ExcitedNucleonConstructor::GetiParity(G4int iState) |
---|
133 | { |
---|
134 | return iParity[iState]; |
---|
135 | } |
---|
136 | |
---|
137 | inline |
---|
138 | G4int G4ExcitedNucleonConstructor::GetEncodingOffset(G4int iState) |
---|
139 | { |
---|
140 | return encodingOffset[iState]; |
---|
141 | } |
---|
142 | |
---|
143 | inline |
---|
144 | G4int G4ExcitedNucleonConstructor::GetQuarkContents(G4int iQ, G4int iIso3) |
---|
145 | { |
---|
146 | // Quark contents |
---|
147 | // iIso3 = -1 : udd |
---|
148 | // iIso3 = +1 : uud |
---|
149 | G4int quark=0; |
---|
150 | if ( iQ == 0 ){ |
---|
151 | // u-quark |
---|
152 | quark = 2; |
---|
153 | } else if ( iQ == 2 ){ |
---|
154 | // d-quark |
---|
155 | quark = 1; |
---|
156 | } else { |
---|
157 | if ( iIso3 == -1 ){ |
---|
158 | // d-quark |
---|
159 | quark = 1; |
---|
160 | } else { |
---|
161 | // u-quark |
---|
162 | quark = 2; |
---|
163 | } |
---|
164 | } |
---|
165 | return quark; |
---|
166 | } |
---|
167 | |
---|
168 | inline |
---|
169 | G4String G4ExcitedNucleonConstructor::GetMultipletName(G4int iState) |
---|
170 | { |
---|
171 | return name[iState]; |
---|
172 | } |
---|
173 | |
---|
174 | inline |
---|
175 | G4String G4ExcitedNucleonConstructor::GetName(G4int iIso3, G4int iState) |
---|
176 | { |
---|
177 | G4String particle = name[iState]; |
---|
178 | if ( iIso3 == -1 ){ |
---|
179 | particle += "0"; |
---|
180 | } else { |
---|
181 | particle += "+"; |
---|
182 | } |
---|
183 | return particle; |
---|
184 | } |
---|
185 | #endif |
---|
186 | |
---|
187 | |
---|
188 | |
---|
189 | |
---|
190 | |
---|
191 | |
---|
192 | |
---|
193 | |
---|
194 | |
---|
195 | |
---|