Geant4  10.02
G4PhaseSpaceDecayChannel Class Reference

#include <G4PhaseSpaceDecayChannel.hh>

+ Inheritance diagram for G4PhaseSpaceDecayChannel:
+ Collaboration diagram for G4PhaseSpaceDecayChannel:

Public Types

enum  { MAX_N_DAUGHTERS =4 }
 

Public Member Functions

 G4PhaseSpaceDecayChannel (G4int Verbose=1)
 
 G4PhaseSpaceDecayChannel (const G4String &theParentName, G4double theBR, G4int theNumberOfDaughters, const G4String &theDaughterName1, const G4String &theDaughterName2="", const G4String &theDaughterName3="", const G4String &theDaughterName4="")
 
G4bool SetDaughterMasses (G4double masses[])
 
G4bool SampleDaughterMasses ()
 
virtual ~G4PhaseSpaceDecayChannel ()
 
virtual G4DecayProductsDecayIt (G4double)
 
G4bool IsOKWithParentMass (G4double parentMass)
 
- Public Member Functions inherited from G4VDecayChannel
 G4VDecayChannel (const G4String &aName, G4int Verbose=1)
 
 G4VDecayChannel (const G4String &aName, const G4String &theParentName, G4double theBR, G4int theNumberOfDaughters, const G4String &theDaughterName1, const G4String &theDaughterName2="", const G4String &theDaughterName3="", const G4String &theDaughterName4="")
 
virtual ~G4VDecayChannel ()
 
G4int operator== (const G4VDecayChannel &right) const
 
G4int operator!= (const G4VDecayChannel &right) const
 
G4int operator< (const G4VDecayChannel &right) const
 
const G4StringGetKinematicsName () const
 
G4double GetBR () const
 
G4int GetNumberOfDaughters () const
 
G4ParticleDefinitionGetParent ()
 
G4ParticleDefinitionGetDaughter (G4int anIndex)
 
G4int GetAngularMomentum ()
 
const G4StringGetParentName () const
 
const G4StringGetDaughterName (G4int anIndex) const
 
G4double GetParentMass () const
 
G4double GetDaughterMass (G4int anIndex) const
 
void SetParent (const G4ParticleDefinition *particle_type)
 
void SetParent (const G4String &particle_name)
 
void SetBR (G4double value)
 
void SetNumberOfDaughters (G4int value)
 
void SetDaughter (G4int anIndex, const G4ParticleDefinition *particle_type)
 
void SetDaughter (G4int anIndex, const G4String &particle_name)
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void DumpInfo ()
 
G4double GetRangeMass () const
 
void SetRangeMass (G4double val)
 
void SetPolarization (const G4ThreeVector &)
 
const G4ThreeVectorGetPolarization () const
 

Static Public Member Functions

static G4double Pmx (G4double e, G4double p1, G4double p2)
 

Private Member Functions

G4DecayProductsOneBodyDecayIt ()
 
G4DecayProductsTwoBodyDecayIt ()
 
G4DecayProductsThreeBodyDecayIt ()
 
G4DecayProductsManyBodyDecayIt ()
 

Private Attributes

G4bool useGivenDaughterMass
 
G4double givenDaughterMasses [MAX_N_DAUGHTERS]
 

Static Private Attributes

static G4ThreadLocal G4double current_parent_mass = 0.0
 

Additional Inherited Members

- Protected Member Functions inherited from G4VDecayChannel
void ClearDaughtersName ()
 
void FillDaughters ()
 
void FillParent ()
 
 G4VDecayChannel ()
 
 G4VDecayChannel (const G4VDecayChannel &)
 
G4VDecayChanneloperator= (const G4VDecayChannel &)
 
G4double DynamicalMass (G4double massPDG, G4double width, G4double maxDev=+1.) const
 
- Protected Attributes inherited from G4VDecayChannel
G4String kinematics_name
 
G4double rbranch
 
G4int numberOfDaughters
 
G4Stringparent_name
 
G4String ** daughters_name
 
G4double rangeMass
 
G4ThreeVector parent_polarization
 
G4ParticleTableparticletable
 
G4int verboseLevel
 
G4ParticleDefinitionG4MT_parent
 
G4ParticleDefinition ** G4MT_daughters
 
G4double G4MT_parent_mass
 
G4doubleG4MT_daughters_mass
 
G4doubleG4MT_daughters_width
 
- Static Protected Attributes inherited from G4VDecayChannel
static const G4String noName = " "
 

Detailed Description

Definition at line 45 of file G4PhaseSpaceDecayChannel.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
MAX_N_DAUGHTERS 

Definition at line 48 of file G4PhaseSpaceDecayChannel.hh.

Constructor & Destructor Documentation

G4PhaseSpaceDecayChannel::G4PhaseSpaceDecayChannel ( G4int  Verbose = 1)

Definition at line 51 of file G4PhaseSpaceDecayChannel.cc.

G4PhaseSpaceDecayChannel::G4PhaseSpaceDecayChannel ( const G4String theParentName,
G4double  theBR,
G4int  theNumberOfDaughters,
const G4String theDaughterName1,
const G4String theDaughterName2 = "",
const G4String theDaughterName3 = "",
const G4String theDaughterName4 = "" 
)

Definition at line 57 of file G4PhaseSpaceDecayChannel.cc.

G4PhaseSpaceDecayChannel::~G4PhaseSpaceDecayChannel ( )
virtual

Definition at line 77 of file G4PhaseSpaceDecayChannel.cc.

Member Function Documentation

G4DecayProducts * G4PhaseSpaceDecayChannel::DecayIt ( G4double  parentMass)
virtual
G4bool G4PhaseSpaceDecayChannel::IsOKWithParentMass ( G4double  parentMass)
virtual

Reimplemented from G4VDecayChannel.

Definition at line 715 of file G4PhaseSpaceDecayChannel.cc.

References G4VDecayChannel::FillDaughters(), G4VDecayChannel::FillParent(), G4VDecayChannel::G4MT_daughters, G4VDecayChannel::G4MT_parent, givenDaughterMasses, G4VDecayChannel::IsOKWithParentMass(), G4VDecayChannel::numberOfDaughters, and useGivenDaughterMass.

+ Here is the call graph for this function:

G4DecayProducts * G4PhaseSpaceDecayChannel::ManyBodyDecayIt ( )
private

Definition at line 446 of file G4PhaseSpaceDecayChannel.cc.

References current_parent_mass, G4VDecayChannel::daughters_name, G4DecayProducts::DumpInfo(), G4cout, G4endl, G4Exception(), G4VDecayChannel::G4MT_daughters, G4VDecayChannel::G4MT_daughters_mass, G4VDecayChannel::G4MT_parent, G4UniformRand, G4DynamicParticle::Get4Momentum(), G4ParticleDefinition::GetParticleName(), G4VDecayChannel::GetVerboseLevel(), GeV, givenDaughterMasses, JustWarning, G4VDecayChannel::numberOfDaughters, G4VDecayChannel::parent_name, Pmx(), G4DecayProducts::PushProducts(), rad, G4DynamicParticle::Set4Momentum(), G4InuclParticleNames::sm, twopi, and useGivenDaughterMass.

Referenced by DecayIt().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4DecayProducts * G4PhaseSpaceDecayChannel::OneBodyDecayIt ( )
private

Definition at line 127 of file G4PhaseSpaceDecayChannel.cc.

References G4DecayProducts::DumpInfo(), G4cout, G4endl, G4VDecayChannel::G4MT_daughters, G4VDecayChannel::G4MT_parent, G4VDecayChannel::GetVerboseLevel(), givenDaughterMasses, G4DecayProducts::PushProducts(), G4DynamicParticle::SetMass(), and useGivenDaughterMass.

Referenced by DecayIt().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4PhaseSpaceDecayChannel::Pmx ( G4double  e,
G4double  p1,
G4double  p2 
)
static

Definition at line 728 of file G4PhaseSpaceDecayChannel.cc.

Referenced by G4DalitzDecayChannel::DecayIt(), ManyBodyDecayIt(), and TwoBodyDecayIt().

+ Here is the caller graph for this function:

G4bool G4PhaseSpaceDecayChannel::SampleDaughterMasses ( )

Definition at line 709 of file G4PhaseSpaceDecayChannel.cc.

References useGivenDaughterMass.

G4bool G4PhaseSpaceDecayChannel::SetDaughterMasses ( G4double  masses[])
G4DecayProducts * G4PhaseSpaceDecayChannel::ThreeBodyDecayIt ( )
private

Definition at line 258 of file G4PhaseSpaceDecayChannel.cc.

References current_parent_mass, G4DecayProducts::DumpInfo(), G4VDecayChannel::DynamicalMass(), G4INCL::KinematicsUtils::energy(), G4cout, G4endl, G4Exception(), G4VDecayChannel::G4MT_daughters, G4VDecayChannel::G4MT_daughters_mass, G4VDecayChannel::G4MT_daughters_width, G4VDecayChannel::G4MT_parent, G4UniformRand, G4ParticleDefinition::GetParticleName(), G4VDecayChannel::GetVerboseLevel(), GeV, givenDaughterMasses, JustWarning, G4DecayProducts::PushProducts(), rad, G4VDecayChannel::rangeMass, twopi, and useGivenDaughterMass.

Referenced by DecayIt().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4DecayProducts * G4PhaseSpaceDecayChannel::TwoBodyDecayIt ( )
private

Definition at line 155 of file G4PhaseSpaceDecayChannel.cc.

References current_parent_mass, G4DecayProducts::DumpInfo(), G4VDecayChannel::DynamicalMass(), G4cout, G4endl, G4Exception(), G4VDecayChannel::G4MT_daughters, G4VDecayChannel::G4MT_daughters_mass, G4VDecayChannel::G4MT_daughters_width, G4VDecayChannel::G4MT_parent, G4UniformRand, G4ParticleDefinition::GetParticleName(), G4VDecayChannel::GetVerboseLevel(), GeV, givenDaughterMasses, JustWarning, Pmx(), G4DecayProducts::PushProducts(), rad, G4VDecayChannel::rangeMass, twopi, and useGivenDaughterMass.

Referenced by DecayIt().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4ThreadLocal G4double G4PhaseSpaceDecayChannel::current_parent_mass = 0.0
staticprivate
G4double G4PhaseSpaceDecayChannel::givenDaughterMasses[MAX_N_DAUGHTERS]
private
G4bool G4PhaseSpaceDecayChannel::useGivenDaughterMass
private

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