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
G4ExcitedLambdaConstructor.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 G4ExcitedLambdaConstructor_h
37
#define G4ExcitedLambdaConstructor_h 1
38
39
#include "
globals.hh
"
40
#include "
G4ios.hh
"
41
#include "
G4ExcitedBaryonConstructor.hh
"
42
43
class
G4ExcitedLambdaConstructor
:
public
G4ExcitedBaryonConstructor
44
{
45
//This class is a utility class for construction
46
//short lived particles
47
48
public
:
49
G4ExcitedLambdaConstructor
();
50
virtual
~G4ExcitedLambdaConstructor
();
51
52
protected
:
53
virtual
G4bool
Exist
(
G4int
){
return
true
;}
54
55
virtual
G4int
GetQuarkContents
(
G4int
,
G4int
);
56
virtual
G4String
GetName
(
G4int
iIso3,
G4int
iState);
57
virtual
G4String
GetMultipletName
(
G4int
iState);
58
virtual
G4double
GetMass
(
G4int
state,
G4int
iso);
59
virtual
G4double
GetWidth
(
G4int
state,
G4int
iso);
60
virtual
G4int
GetiSpin
(
G4int
iState);
61
virtual
G4int
GetiParity
(
G4int
iState);
62
virtual
G4int
GetEncodingOffset
(
G4int
iState);
63
64
virtual
G4DecayTable
*
CreateDecayTable
(
const
G4String
&
name
,
65
G4int
iIso3,
G4int
iState,
66
G4bool
fAnti =
false
);
67
private
:
68
G4DecayTable
* AddNKMode(
G4DecayTable
* table,
const
G4String
&
name
,
69
G4double
br,
G4int
iIso3,
G4bool
fAnti);
70
G4DecayTable
* AddNKStarMode(
G4DecayTable
* table,
const
G4String
&
name
,
71
G4double
br,
G4int
iIso3,
G4bool
fAnti);
72
G4DecayTable
* AddSigmaPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
73
G4double
br,
G4int
iIso3,
G4bool
fAnti);
74
G4DecayTable
* AddSigmaStarPiMode(
G4DecayTable
* table,
const
G4String
&
name
,
75
G4double
br,
G4int
iIso3,
G4bool
fAnti);
76
G4DecayTable
* AddLambdaGammaMode(
G4DecayTable
* table,
const
G4String
&
name
,
77
G4double
br,
G4int
iIso3,
G4bool
fAnti);
78
G4DecayTable
* AddLambdaEtaMode(
G4DecayTable
* table,
const
G4String
&
name
,
79
G4double
br,
G4int
iIso3,
G4bool
fAnti);
80
G4DecayTable
* AddLambdaOmegaMode(
G4DecayTable
* table,
const
G4String
&
name
,
81
G4double
br,
G4int
iIso3,
G4bool
fAnti);
82
83
public
:
84
enum
{
NStates
= 12 };
85
private
:
86
enum
{ LambdaIsoSpin = 0 };
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
= 7 };
98
private
:
99
enum
{ NK=0, NKStar=1, SigmaPi=2, SigmaStarPi=3, LambdaGamma=4,
100
LambdaEta=5, LambdaOmega=6 };
101
private
:
102
static
const
G4double
bRatio[
NStates
][
NumberOfDecayModes
];
103
};
104
105
inline
106
G4double
G4ExcitedLambdaConstructor::GetMass
(
G4int
iState,
G4int
)
107
{
108
return
mass[iState];
109
}
110
111
inline
112
G4double
G4ExcitedLambdaConstructor::GetWidth
(
G4int
iState,
G4int
)
113
{
114
return
width[iState];
115
}
116
117
inline
118
G4int
G4ExcitedLambdaConstructor::GetiSpin
(
G4int
iState)
119
{
120
return
iSpin[iState];
121
}
122
123
inline
124
G4int
G4ExcitedLambdaConstructor::GetiParity
(
G4int
iState)
125
{
126
return
iParity[iState];
127
}
128
129
inline
130
G4int
G4ExcitedLambdaConstructor::GetEncodingOffset
(
G4int
iState)
131
{
132
return
encodingOffset[iState];
133
}
134
135
inline
136
G4int
G4ExcitedLambdaConstructor::GetQuarkContents
(
G4int
iQ,
G4int
)
137
{
138
G4int
quark=0;
139
if
( iQ == 0 ){
140
// s-quark
141
quark = 3;
142
}
else
if
( iQ == 1 ){
143
// d-quark
144
quark = 1;
145
}
else
if
( iQ == 2 ){
146
// u-quark
147
quark = 2;
148
}
149
return
quark;
150
}
151
152
inline
153
G4String
G4ExcitedLambdaConstructor::GetMultipletName
(
G4int
iState)
154
{
155
return
name
[iState];
156
}
157
158
inline
159
G4String
G4ExcitedLambdaConstructor::GetName
(
G4int
,
G4int
iState)
160
{
161
G4String
particle =
name
[iState];
162
return
particle;
163
}
164
#endif
165
166
167
168
169
170
171
172
173
174
Generated on Sat May 25 2013 14:33:23 for Geant4 by
1.8.4