47 const std::vector<G4int>& vTrans,
48 const std::vector<G4float>& wLevelGamma,
49 const std::vector<G4float>& wGamma,
50 const std::vector<G4float>& vRatio,
51 const std::vector<
const std::vector<G4float>*>& wShell)
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(std::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]);
72 for(std::size_t i=0; i<length; ++i) {
73 delete fShellProbability[i];
79 G4long prec = out.precision(4);
80 for(std::size_t i=0; i<length; ++i) {
83 << std::setw(7) << fMpRatio[i]
84 << std::setw(7) << fGammaCumProbability[i]
85 << std::setw(7) << fGammaProbability[i]
87 const std::vector<G4float>* vec = fShellProbability[i];
89 std::size_t len = vec->size();
91 for(std::size_t j=0; j<len; ++j) { out << std::setw(7) << (*vec)[j]; }
void StreamInfo(std::ostream &os) const
std::size_t FinalExcitationIndex(std::size_t idx) const
G4int TransitionType(std::size_t idx) const
G4NucLevel(std::size_t ntrans, G4double 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)