ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4ExcitedDeltaConstructor.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file 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
//
28
//
29
// --------------------------------------------------------------
30
// GEANT 4 class implementation file
31
//
32
// History: first implementation, based on object model of
33
// 10 oct 1998 H.Kurashige
34
// ---------------------------------------------------------------
35
#ifndef G4ExcitedDeltaConstructor_h
36
#define G4ExcitedDeltaConstructor_h 1
37
38
#include "
globals.hh
"
39
#include "
G4ios.hh
"
40
#include "
G4ExcitedBaryonConstructor.hh
"
41
42
class
G4ExcitedDeltaConstructor
:
public
G4ExcitedBaryonConstructor
43
{
44
//This class is a utility class for construction
45
//short lived particles
46
47
public
:
48
G4ExcitedDeltaConstructor
();
49
virtual
~G4ExcitedDeltaConstructor
();
50
51
protected
:
52
virtual
G4int
GetEncoding
(
G4int
iIsoSpin3,
G4int
idxState);
53
54
protected
:
55
virtual
G4bool
Exist
(
G4int
){
return
true
;}
56
57
virtual
G4int
GetQuarkContents
(
G4int
,
G4int
);
58
virtual
G4String
GetName
(
G4int
iIso3,
G4int
iState);
59
virtual
G4String
GetMultipletName
(
G4int
iState);
60
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
*
AddNRhoMode
(
G4DecayTable
* table,
const
G4String
&
name
,
76
G4double
br,
G4int
iIso3,
G4bool
fAnti);
77
G4DecayTable
*
AddDeltaPiMode
(
G4DecayTable
* table,
const
G4String
&
name
,
78
G4double
br,
G4int
iIso3,
G4bool
fAnti);
79
G4DecayTable
*
AddNStarPiMode
(
G4DecayTable
* table,
const
G4String
&
name
,
80
G4double
br,
G4int
iIso3,
G4bool
fAnti);
81
82
public
:
83
enum
{
NStates
= 9 };
84
private
:
85
enum
{
DeltaIsoSpin
= 3 };
86
87
private
:
88
static
const
char
*
name
[
NStates
];
89
static
const
G4double
mass
[
NStates
];
90
static
const
G4double
width
[
NStates
];
91
static
const
G4int
iSpin
[
NStates
];
92
static
const
G4int
iParity
[
NStates
];
93
static
const
G4int
encodingOffset
[
NStates
];
94
95
public
:
96
enum
{
NumberOfDecayModes
= 5};
97
private
:
98
enum
{
NGamma
=0,
NPi
=1,
NRho
=2,
DeltaPi
=3,
NStarPi
=4 };
99
private
:
100
static
const
G4double
bRatio
[
NStates
][
NumberOfDecayModes
];
101
};
102
103
inline
104
G4double
G4ExcitedDeltaConstructor::GetMass
(
G4int
iState,
G4int
)
105
{
106
return
mass
[iState];
107
}
108
109
inline
110
G4double
G4ExcitedDeltaConstructor::GetWidth
(
G4int
iState,
G4int
)
111
{
112
return
width
[iState];
113
}
114
115
inline
116
G4int
G4ExcitedDeltaConstructor::GetiSpin
(
G4int
iState)
117
{
118
return
iSpin
[iState];
119
}
120
121
inline
122
G4int
G4ExcitedDeltaConstructor::GetiParity
(
G4int
iState)
123
{
124
return
iParity
[iState];
125
}
126
127
inline
128
G4int
G4ExcitedDeltaConstructor::GetEncodingOffset
(
G4int
iState)
129
{
130
return
encodingOffset
[iState];
131
}
132
133
inline
134
G4int
G4ExcitedDeltaConstructor::GetQuarkContents
(
G4int
iQ,
G4int
iIso3)
135
{
136
// Quark contents
137
// iIso3 = +3 : uuu
138
// iIso3 = +1 : uud
139
// iIso3 = -1 : udd
140
// iIso3 = -3 : ddd
141
G4int
quark=0;
142
if
( iQ == 0 ){
143
if
( iIso3 == -3 ){
144
// d-quark
145
quark = 1;
146
}
else
{
147
// u-quark
148
quark = 2;
149
}
150
}
else
if
( iQ == 2 ){
151
if
( iIso3 == +3 ){
152
// u-quark
153
quark = 2;
154
}
else
{
155
// d-quark
156
quark = 1;
157
}
158
}
else
{
159
if
(( iIso3 == -1 )||( iIso3 == -3 )) {
160
// d-quark
161
quark = 1;
162
}
else
{
163
// u-quark
164
quark = 2;
165
}
166
}
167
return
quark;
168
}
169
170
inline
171
G4String
G4ExcitedDeltaConstructor::GetMultipletName
(
G4int
iState)
172
{
173
return
name
[iState];
174
}
175
176
inline
177
G4String
G4ExcitedDeltaConstructor::GetName
(
G4int
iIso3,
G4int
iState)
178
{
179
G4String
particle
=
name
[iState];
180
if
( iIso3 == -3 ){
181
particle +=
"-"
;
182
}
else
if
( iIso3 == -1 ){
183
particle +=
"0"
;
184
}
else
if
( iIso3 == +1 ){
185
particle +=
"+"
;
186
}
else
{
187
particle +=
"++"
;
188
}
189
return
particle
;
190
}
191
#endif
192
193
194
195
196
197
198
199
200
201
geant4
tree
geant4-10.6-release
source
particles
shortlived
include
G4ExcitedDeltaConstructor.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:24
using
1.8.2 with
ECCE GitHub integration