#include <G4FermiChannels.hh>
Definition at line 39 of file G4FermiChannels.hh.
◆ G4FermiChannels()
Definition at line 43 of file G4FermiChannels.hh.
44 : nch(0), excitation(ex), ground_mass(gmass)
45 { fvect.reserve(nmax); cum_prob.reserve(nmax); };
◆ AddChannel()
void G4FermiChannels::AddChannel |
( |
const G4FermiPair * |
ptr | ) |
|
|
inline |
Definition at line 97 of file G4FermiChannels.hh.
98{
99 fvect.push_back(ptr);
100 cum_prob.push_back(1.0);
101 ++nch;
102}
◆ GetChannels()
const std::vector< const G4FermiPair * > & G4FermiChannels::GetChannels |
( |
| ) |
const |
|
inline |
◆ GetExcitation()
G4double G4FermiChannels::GetExcitation |
( |
| ) |
const |
|
inline |
◆ GetMass()
G4double G4FermiChannels::GetMass |
( |
| ) |
const |
|
inline |
◆ GetNumberOfChannels()
size_t G4FermiChannels::GetNumberOfChannels |
( |
| ) |
const |
|
inline |
◆ GetPair()
const G4FermiPair * G4FermiChannels::GetPair |
( |
size_t |
idx | ) |
const |
|
inline |
Definition at line 83 of file G4FermiChannels.hh.
84{
85 return (idx < nch) ? fvect[idx] : nullptr;
86}
◆ GetProbabilities()
std::vector< G4double > & G4FermiChannels::GetProbabilities |
( |
| ) |
|
|
inline |
◆ SamplePair()
Definition at line 88 of file G4FermiChannels.hh.
89{
91 for(size_t i=0; i<nch; ++i) {
92 if(rand <= cum_prob[i]) { ptr = fvect[i]; break; }
93 }
94 return ptr;
95}
The documentation for this class was generated from the following file: