Geant4  10.00.p01
G4SampleResonance Class Reference

#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
 

Detailed Description

Definition at line 45 of file G4SampleResonance.hh.

Member Typedef Documentation

typedef std::map<const G4ParticleDefinition*, G4double, std::less<const G4ParticleDefinition*> >::const_iterator G4SampleResonance::minMassMapIterator

Definition at line 69 of file G4SampleResonance.hh.

Definition at line 70 of file G4SampleResonance.hh.

Member Function Documentation

G4double G4SampleResonance::BrWigInt0 ( const G4double  x,
const G4double  gamma,
const G4double  m0 
) const
inlineprivate

Definition at line 58 of file G4SampleResonance.hh.

Referenced by BrWigInt1(), and SampleMass().

+ Here is the caller graph for this function:

G4double G4SampleResonance::BrWigInt1 ( const G4double  x,
const G4double  gamma,
const G4double  m0 
) const
inlineprivate

Definition at line 61 of file G4SampleResonance.hh.

References BrWigInt0().

+ Here is the call graph for this function:

G4double G4SampleResonance::BrWigInv ( const G4double  x,
const G4double  gamma,
const G4double  m0 
) const
inlineprivate

Definition at line 64 of file G4SampleResonance.hh.

Referenced by SampleMass().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

Member Data Documentation

G4ThreadLocal G4SampleResonance::minMassMapType * G4SampleResonance::minMassCache_G4MT_TLS_ = 0
staticprivate

Definition at line 74 of file G4SampleResonance.hh.

Referenced by GetMinimumMass(), and SampleMass().


The documentation for this class was generated from the following files: