#include <CexmcReimplementedGenbod.hh>
Definition at line 51 of file CexmcReimplementedGenbod.hh.
◆ CexmcReimplementedGenbod()
CexmcReimplementedGenbod::CexmcReimplementedGenbod |
( |
| ) |
|
◆ FermiEnergyDepStatusChangeHook()
void CexmcReimplementedGenbod::FermiEnergyDepStatusChangeHook |
( |
void |
| ) |
|
|
privatevirtual |
◆ Generate()
G4double CexmcReimplementedGenbod::Generate |
( |
void |
| ) |
|
|
virtual |
Implements CexmcPhaseSpaceGenerator.
Definition at line 87 of file CexmcReimplementedGenbod.cc.
103 qsort( rno + 1, nmbOfOutputParticles - 2,
sizeof(
G4double ),
106 rno[ nmbOfOutputParticles - 1 ] = 1;
114 invMas[ i ] = rno[ i ] * te_minus_tm /
GeV + sum;
123 for (
int i( 0 ); i < nmbOfOutputParticles - 1; ++i )
125 pd[ i ] = PDK( invMas[ i + 1 ], invMas[ i ],
133 outVec[ 0 ].lVec->setPx( 0. );
134 outVec[ 0 ].lVec->setPy( pd[ 0 ] );
135 outVec[ 0 ].lVec->setPz( 0. );
136 outVec[ 0 ].lVec->setE( std::sqrt( pd[ 0 ] * pd[ 0 ] +
144 outVec[ i ].lVec->setPx( 0. );
145 outVec[ i ].lVec->setPy( -pd[ i - 1 ] );
146 outVec[ i ].lVec->setPz( 0. );
147 outVec[ i ].lVec->setE( std::sqrt( pd[ i - 1 ] * pd[ i - 1 ] +
152 G4double sZ( std::sqrt( 1 - cZ * cZ ) );
157 for (
int j( 0 ); j <= i; ++j )
162 v->setPx( cZ *
x - sZ *
y );
163 v->setPy( sZ *
x + cZ * y );
166 v->setPx( cY *
x - sY *
z );
167 v->setPz( sY *
x + cY * z );
170 if ( i == nmbOfOutputParticles - 1 )
173 G4double beta( pd[ i ] / std::sqrt( pd[ i ] * pd[ i ] +
174 invMas[ i ] * invMas[ i ] ) );
175 for (
int j( 0 ); j <= i; ++j )
176 outVec[ j ].lVec->boost( 0, beta, 0 );
CexmcPhaseSpaceOutVector outVec
G4int nmbOfOutputParticles
static const G4int maxParticles
◆ ParticleChangeHook()
void CexmcReimplementedGenbod::ParticleChangeHook |
( |
void |
| ) |
|
|
privatevirtual |
◆ SetMaxWeight()
void CexmcReimplementedGenbod::SetMaxWeight |
( |
void |
| ) |
|
|
private |
Definition at line 208 of file CexmcReimplementedGenbod.cc.
216 ,3.141592, 19.73921, 62.01255, 129.8788, 204.0131
217 ,256.3704, 268.4705, 240.9780, 189.2637
218 ,132.1308, 83.0202, 47.4210, 24.8295
219 ,12.0006, 5.3858, 2.2560, 0.8859 };
234 wtmax *= PDK( emmax, emmin,
outVec[ i ].mass /
GeV );
G4bool fermiEnergyDepIsOn
CexmcPhaseSpaceOutVector outVec
G4int nmbOfOutputParticles
◆ maxParticles
const G4int CexmcReimplementedGenbod::maxParticles = 18 |
|
staticprivate |
◆ maxWeight
G4double CexmcReimplementedGenbod::maxWeight |
|
private |
◆ nmbOfOutputParticles
G4int CexmcReimplementedGenbod::nmbOfOutputParticles |
|
private |
The documentation for this class was generated from the following files: