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
G4ExcitedDeltaConstructor.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 G4ExcitedDeltaConstructor_h
37
#define G4ExcitedDeltaConstructor_h 1
38
39
#include "
globals.hh
"
40
#include "
G4ios.hh
"
41
#include "
G4ExcitedBaryonConstructor.hh
"
42
43
class
G4ExcitedDeltaConstructor
:
public
G4ExcitedBaryonConstructor
44
{
45
//This class is a utility class for construction
46
//short lived particles
47
48
public
:
49
G4ExcitedDeltaConstructor
();
50
virtual
~G4ExcitedDeltaConstructor
();
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
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
* AddNRhoMode(
G4DecayTable
* table,
const
G4String
&
name
,
77
G4double
br,
G4int
iIso3,
G4bool
fAnti);
78
G4DecayTable
* AddDeltaPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
79
G4double
br,
G4int
iIso3,
G4bool
fAnti);
80
G4DecayTable
* AddNStarPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
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
:
101
static
const
G4double
bRatio[
NStates
][
NumberOfDecayModes
];
102
};
103
104
inline
105
G4double
G4ExcitedDeltaConstructor::GetMass
(
G4int
iState,
G4int
)
106
{
107
return
mass[iState];
108
}
109
110
inline
111
G4double
G4ExcitedDeltaConstructor::GetWidth
(
G4int
iState,
G4int
)
112
{
113
return
width[iState];
114
}
115
116
inline
117
G4int
G4ExcitedDeltaConstructor::GetiSpin
(
G4int
iState)
118
{
119
return
iSpin[iState];
120
}
121
122
inline
123
G4int
G4ExcitedDeltaConstructor::GetiParity
(
G4int
iState)
124
{
125
return
iParity[iState];
126
}
127
128
inline
129
G4int
G4ExcitedDeltaConstructor::GetEncodingOffset
(
G4int
iState)
130
{
131
return
encodingOffset[iState];
132
}
133
134
inline
135
G4int
G4ExcitedDeltaConstructor::GetQuarkContents
(
G4int
iQ,
G4int
iIso3)
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
172
G4String
G4ExcitedDeltaConstructor::GetMultipletName
(
G4int
iState)
173
{
174
return
name
[iState];
175
}
176
177
inline
178
G4String
G4ExcitedDeltaConstructor::GetName
(
G4int
iIso3,
G4int
iState)
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
Generated on Sat May 25 2013 14:33:23 for Geant4 by
1.8.4