#include <G4NucLevel.hh>
Definition at line 52 of file G4NucLevel.hh.
G4NucLevel::G4NucLevel |
( |
size_t |
ntrans, |
|
|
G4float |
tgamma, |
|
|
const std::vector< G4int > & |
vTrans, |
|
|
const std::vector< G4float > & |
wLevelGamma, |
|
|
const std::vector< G4float > & |
wGamma, |
|
|
const std::vector< G4float > & |
vRatio, |
|
|
const std::vector< const std::vector< G4float > * > & |
wShell |
|
) |
| |
|
explicit |
Definition at line 46 of file G4NucLevel.cc.
52 : length(ntrans), fTimeGamma(tgamma)
55 fTrans.reserve(length);
56 fGammaCumProbability.reserve(length);
57 fGammaProbability.reserve(length);
58 fMpRatio.reserve(length);
59 fShellProbability.reserve(length);
60 for(
size_t i=0; i<length; ++i) {
61 fTrans.push_back(vTrans[i]);
62 fGammaCumProbability.push_back(wLevelGamma[i]);
63 fGammaProbability.push_back(wGamma[i]);
64 fMpRatio.push_back(vRatio[i]);
65 fShellProbability.push_back(wShell[i]);
G4NucLevel::~G4NucLevel |
( |
| ) |
|
Definition at line 70 of file G4NucLevel.cc.
72 for(
size_t i=0; i<length; ++i) {
73 delete fShellProbability[i];
size_t G4NucLevel::FinalExcitationIndex |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 113 of file G4NucLevel.hh.
116 if(idx >= length) { PrintError(idx,
"FinalExcitationEnergy"); }
118 return (
size_t)(fTrans[idx]/10000);
G4float G4NucLevel::GammaCumProbability |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 150 of file G4NucLevel.hh.
153 if(idx >= length) { PrintError(idx,
"GammaCumProbability"); }
155 return fGammaCumProbability[idx];
G4float G4NucLevel::GammaProbability |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 142 of file G4NucLevel.hh.
145 if(idx >= length) { PrintError(idx,
"GammaProbability"); }
147 return fGammaProbability[idx];
G4float G4NucLevel::GetTimeGamma |
( |
| ) |
const |
|
inline |
G4float G4NucLevel::MixingRatio |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 134 of file G4NucLevel.hh.
137 if(idx >= length) { PrintError(idx,
"MixingRatio"); }
139 return fMpRatio[idx];
G4float G4NucLevel::MultipolarityRatio |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 158 of file G4NucLevel.hh.
161 if(idx >= length) { PrintError(idx,
"GammaProbability"); }
163 return fMpRatio[idx];
size_t G4NucLevel::NumberOfTransitions |
( |
| ) |
const |
|
inline |
size_t G4NucLevel::SampleGammaTransition |
( |
G4double |
rndm | ) |
const |
|
inline |
Definition at line 166 of file G4NucLevel.hh.
170 for(; idx<length; ++idx) {
171 if(x <= fGammaCumProbability[idx]) {
break; }
G4int G4NucLevel::SampleShell |
( |
size_t |
idx, |
|
|
G4double |
rndm |
|
) |
| const |
|
inline |
Definition at line 176 of file G4NucLevel.hh.
179 if(idx >= length) { PrintError(idx,
"SampleShell"); }
181 const std::vector<G4float>* prob = fShellProbability[idx];
186 for(i=0; i<
nn; ++i) {
if(x <= (*prob)[i]) {
break; } }
const std::vector< G4float > * G4NucLevel::ShellProbabilty |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 192 of file G4NucLevel.hh.
195 if(idx >= length) { PrintError(idx,
"ShellProbability"); }
197 return fShellProbability[idx];
G4int G4NucLevel::TransitionType |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 121 of file G4NucLevel.hh.
124 if(idx >= length) { PrintError(idx,
"TransitionType"); }
126 return fTrans[idx]%10000;
The documentation for this class was generated from the following files:
- geant4.10.03.p01/source/processes/hadronic/models/de_excitation/management/include/G4NucLevel.hh
- geant4.10.03.p01/source/processes/hadronic/models/de_excitation/management/src/G4NucLevel.cc