Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
particles
shortlived
include
G4ExcitedNucleonConstructor.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 G4ExcitedNucleonConstructor_h
37
#define G4ExcitedNucleonConstructor_h 1
38
39
#include "
globals.hh
"
40
#include "
G4ios.hh
"
41
#include "
G4ExcitedBaryonConstructor.hh
"
42
43
class
G4ExcitedNucleonConstructor
:
public
G4ExcitedBaryonConstructor
44
{
45
//This class is a utility class for construction
46
//short lived particles
47
48
public
:
49
G4ExcitedNucleonConstructor
();
50
virtual
~G4ExcitedNucleonConstructor
();
51
52
protected
:
53
virtual
G4int
GetEncoding
(
G4int
iIsoSpin3,
G4int
idxState);
54
55
protected
:
56
virtual
G4bool
Exist
(
G4int
){
return
true
;}
57
58
virtual
G4int
GetQuarkContents
(
G4int
,
G4int
);
59
virtual
G4String
GetName
(
G4int
iIso3,
G4int
iState);
60
virtual
G4String
GetMultipletName
(
G4int
iState);
61
virtual
G4double
GetMass
(
G4int
state,
G4int
iso);
62
virtual
G4double
GetWidth
(
G4int
state,
G4int
iso);
63
virtual
G4int
GetiSpin
(
G4int
iState);
64
virtual
G4int
GetiParity
(
G4int
iState);
65
virtual
G4int
GetEncodingOffset
(
G4int
iState);
66
67
virtual
G4DecayTable
*
CreateDecayTable
(
const
G4String
&
name
,
68
G4int
iIso3,
G4int
iState,
69
G4bool
fAnti =
false
);
70
private
:
71
G4DecayTable
* AddNGammaMode(
G4DecayTable
* table,
const
G4String
&
name
,
72
G4double
br,
G4int
iIso3,
G4bool
fAnti);
73
G4DecayTable
* AddNPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
74
G4double
br,
G4int
iIso3,
G4bool
fAnti);
75
G4DecayTable
* AddNEtaMode(
G4DecayTable
* table,
const
G4String
&
name
,
76
G4double
br,
G4int
iIso3,
G4bool
fAnti);
77
G4DecayTable
* AddNOmegaMode(
G4DecayTable
* table,
const
G4String
&
name
,
78
G4double
br,
G4int
iIso3,
G4bool
fAnti);
79
G4DecayTable
* AddNRhoMode(
G4DecayTable
* table,
const
G4String
&
name
,
80
G4double
br,
G4int
iIso3,
G4bool
fAnti);
81
G4DecayTable
* AddN2PiMode(
G4DecayTable
* table,
const
G4String
&
name
,
82
G4double
br,
G4int
iIso3,
G4bool
fAnti);
83
G4DecayTable
* AddDeltaPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
84
G4double
br,
G4int
iIso3,
G4bool
fAnti);
85
G4DecayTable
* AddNStarPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
86
G4double
br,
G4int
iIso3,
G4bool
fAnti);
87
G4DecayTable
* AddLambdaKMode(
G4DecayTable
* table,
const
G4String
&
name
,
88
G4double
br,
G4int
iIso3,
G4bool
fAnti);
89
90
public
:
91
enum
{
NStates
= 15 };
92
private
:
93
enum
{ NucleonIsoSpin = 1 };
94
95
private
:
96
static
const
char
*
name
[
NStates
];
97
static
const
G4double
mass[
NStates
];
98
static
const
G4double
width[
NStates
];
99
static
const
G4int
iSpin[
NStates
];
100
static
const
G4int
iParity[
NStates
];
101
static
const
G4int
encodingOffset[
NStates
];
102
103
public
:
104
enum
{
NumberOfDecayModes
= 9 };
105
private
:
106
enum
{ NGamma=0, NPi=1, NEta=2, NOmega=3, NRho=4,
107
N2Pi=5, DeltaPi=6, NStarPi=7, LambdaK = 8 };
108
private
:
109
static
const
G4double
bRatio[
NStates
][
NumberOfDecayModes
];
110
};
111
112
inline
113
G4double
G4ExcitedNucleonConstructor::GetMass
(
G4int
iState,
G4int
)
114
{
115
return
mass[iState];
116
}
117
118
inline
119
G4double
G4ExcitedNucleonConstructor::GetWidth
(
G4int
iState,
G4int
)
120
{
121
return
width[iState];
122
}
123
124
inline
125
G4int
G4ExcitedNucleonConstructor::GetiSpin
(
G4int
iState)
126
{
127
return
iSpin[iState];
128
}
129
130
inline
131
G4int
G4ExcitedNucleonConstructor::GetiParity
(
G4int
iState)
132
{
133
return
iParity[iState];
134
}
135
136
inline
137
G4int
G4ExcitedNucleonConstructor::GetEncodingOffset
(
G4int
iState)
138
{
139
return
encodingOffset[iState];
140
}
141
142
inline
143
G4int
G4ExcitedNucleonConstructor::GetQuarkContents
(
G4int
iQ,
G4int
iIso3)
144
{
145
// Quark contents
146
// iIso3 = -1 : udd
147
// iIso3 = +1 : uud
148
G4int
quark=0;
149
if
( iQ == 0 ){
150
// u-quark
151
quark = 2;
152
}
else
if
( iQ == 2 ){
153
// d-quark
154
quark = 1;
155
}
else
{
156
if
( iIso3 == -1 ){
157
// d-quark
158
quark = 1;
159
}
else
{
160
// u-quark
161
quark = 2;
162
}
163
}
164
return
quark;
165
}
166
167
inline
168
G4String
G4ExcitedNucleonConstructor::GetMultipletName
(
G4int
iState)
169
{
170
return
name
[iState];
171
}
172
173
inline
174
G4String
G4ExcitedNucleonConstructor::GetName
(
G4int
iIso3,
G4int
iState)
175
{
176
G4String
particle =
name
[iState];
177
if
( iIso3 == -1 ){
178
particle +=
"0"
;
179
}
else
{
180
particle +=
"+"
;
181
}
182
return
particle;
183
}
184
#endif
185
186
187
188
189
190
191
192
193
194
Generated on Sat May 25 2013 14:33:23 for Geant4 by
1.8.4