Geant4
10.00.p01
|
#include <G4SampleResonance.hh>
Public Types | |
typedef std::map< const G4ParticleDefinition *, G4double, std::less< const G4ParticleDefinition * > >::const_iterator | minMassMapIterator |
typedef std::map< const G4ParticleDefinition *, G4double, std::less< const G4ParticleDefinition * > > | minMassMapType |
Public Member Functions | |
G4double | GetMinimumMass (const G4ParticleDefinition *p) const |
G4double | SampleMass (const G4double poleMass, const G4double gamma, const G4double minMass, const G4double maxMass) const |
G4double | SampleMass (const G4ParticleDefinition *p, const G4double maxMass) const |
Private Member Functions | |
G4double | BrWigInt0 (const G4double x, const G4double gamma, const G4double m0) const |
G4double | BrWigInt1 (const G4double x, const G4double gamma, const G4double m0) const |
G4double | BrWigInv (const G4double x, const G4double gamma, const G4double m0) const |
Static Private Attributes | |
static G4ThreadLocal minMassMapType * | minMassCache_G4MT_TLS_ = 0 |
Definition at line 45 of file G4SampleResonance.hh.
typedef std::map<const G4ParticleDefinition*, G4double, std::less<const G4ParticleDefinition*> >::const_iterator G4SampleResonance::minMassMapIterator |
Definition at line 69 of file G4SampleResonance.hh.
typedef std::map<const G4ParticleDefinition*, G4double, std::less<const G4ParticleDefinition*> > G4SampleResonance::minMassMapType |
Definition at line 70 of file G4SampleResonance.hh.
|
inlineprivate |
Definition at line 58 of file G4SampleResonance.hh.
Referenced by BrWigInt1(), and SampleMass().
|
inlineprivate |
Definition at line 61 of file G4SampleResonance.hh.
References BrWigInt0().
|
inlineprivate |
Definition at line 64 of file G4SampleResonance.hh.
Referenced by SampleMass().
G4double G4SampleResonance::GetMinimumMass | ( | const G4ParticleDefinition * | p | ) | const |
Definition at line 46 of file G4SampleResonance.cc.
References DBL_MAX, G4DecayTable::entries(), G4DecayTable::GetDecayChannel(), G4VDecayChannel::GetNumberOfDaughters(), G4ParticleDefinition::GetPDGMass(), G4ParticleDefinition::IsShortLived(), and minMassCache_G4MT_TLS_.
Referenced by G4KineticTrack::Decay(), G4KineticTrack::G4KineticTrack(), and SampleMass().
G4double G4SampleResonance::SampleMass | ( | const G4double | poleMass, |
const G4double | gamma, | ||
const G4double | minMass, | ||
const G4double | maxMass | ||
) | const |
Definition at line 110 of file G4SampleResonance.cc.
References BrWigInt0(), BrWigInv(), DBL_EPSILON, G4UniformRand, G4INCL::Math::max(), G4INCL::Math::min(), and minMassCache_G4MT_TLS_.
Referenced by G4KineticTrack::Decay(), and SampleMass().
G4double G4SampleResonance::SampleMass | ( | const G4ParticleDefinition * | p, |
const G4double | maxMass | ||
) | const |
Definition at line 104 of file G4SampleResonance.cc.
References GetMinimumMass(), G4ParticleDefinition::GetPDGMass(), G4ParticleDefinition::GetPDGWidth(), minMassCache_G4MT_TLS_, and SampleMass().
|
staticprivate |
Definition at line 74 of file G4SampleResonance.hh.
Referenced by GetMinimumMass(), and SampleMass().