Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CexmcPhaseSpaceGenerator Class Referenceabstract

#include <CexmcPhaseSpaceGenerator.hh>

Inheritance diagram for CexmcPhaseSpaceGenerator:

Public Member Functions

 CexmcPhaseSpaceGenerator ()
 
virtual ~CexmcPhaseSpaceGenerator ()
 
virtual G4bool CheckKinematics (void)
 
virtual G4double Generate (void)=0
 
void SetParticles (const CexmcPhaseSpaceInVector &inVec_, const CexmcPhaseSpaceOutVector &outVec_)
 
void SetFermiEnergyDependence (G4bool on=true)
 

Protected Member Functions

virtual void ParticleChangeHook (void)
 
virtual void FermiEnergyDepStatusChangeHook (void)
 

Protected Attributes

CexmcPhaseSpaceInVector inVec
 
CexmcPhaseSpaceOutVector outVec
 
G4bool fermiEnergyDepIsOn
 
G4double totalEnergy
 
G4double totalMass
 

Detailed Description

Definition at line 70 of file CexmcPhaseSpaceGenerator.hh.

Constructor & Destructor Documentation

CexmcPhaseSpaceGenerator::CexmcPhaseSpaceGenerator ( )
CexmcPhaseSpaceGenerator::~CexmcPhaseSpaceGenerator ( )
virtual

Definition at line 53 of file CexmcPhaseSpaceGenerator.cc.

54 {
55 }

Member Function Documentation

G4bool CexmcPhaseSpaceGenerator::CheckKinematics ( void  )
virtual

Definition at line 82 of file CexmcPhaseSpaceGenerator.cc.

83 {
84  totalEnergy = 0.;
85  for ( CexmcPhaseSpaceInVector::const_iterator k( inVec.begin() );
86  k != inVec.end(); ++k )
87  {
88  totalEnergy += ( *k )->e();
89  }
90 
91  return totalEnergy > totalMass;
92 }
CexmcPhaseSpaceInVector inVec
void CexmcPhaseSpaceGenerator::FermiEnergyDepStatusChangeHook ( void  )
protectedvirtual

Definition at line 100 of file CexmcPhaseSpaceGenerator.cc.

101 {
102 }

Here is the caller graph for this function:

virtual G4double CexmcPhaseSpaceGenerator::Generate ( void  )
pure virtual

Implemented in CexmcReimplementedGenbod.

void CexmcPhaseSpaceGenerator::ParticleChangeHook ( void  )
protectedvirtual

Definition at line 95 of file CexmcPhaseSpaceGenerator.cc.

96 {
97 }

Here is the caller graph for this function:

void CexmcPhaseSpaceGenerator::SetFermiEnergyDependence ( G4bool  on = true)

Definition at line 74 of file CexmcPhaseSpaceGenerator.cc.

Here is the call graph for this function:

void CexmcPhaseSpaceGenerator::SetParticles ( const CexmcPhaseSpaceInVector inVec_,
const CexmcPhaseSpaceOutVector outVec_ 
)

Definition at line 58 of file CexmcPhaseSpaceGenerator.cc.

61 {
62  inVec = inVec_;
63  outVec = outVec_;
64  for ( CexmcPhaseSpaceOutVector::const_iterator k( outVec.begin() );
65  k != outVec.end(); ++k )
66  {
67  totalMass += k->mass;
68  }
69 
71 }
CexmcPhaseSpaceInVector inVec
CexmcPhaseSpaceOutVector outVec

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

G4bool CexmcPhaseSpaceGenerator::fermiEnergyDepIsOn
protected

Definition at line 98 of file CexmcPhaseSpaceGenerator.hh.

CexmcPhaseSpaceInVector CexmcPhaseSpaceGenerator::inVec
protected

Definition at line 94 of file CexmcPhaseSpaceGenerator.hh.

CexmcPhaseSpaceOutVector CexmcPhaseSpaceGenerator::outVec
protected

Definition at line 96 of file CexmcPhaseSpaceGenerator.hh.

G4double CexmcPhaseSpaceGenerator::totalEnergy
protected

Definition at line 100 of file CexmcPhaseSpaceGenerator.hh.

G4double CexmcPhaseSpaceGenerator::totalMass
protected

Definition at line 102 of file CexmcPhaseSpaceGenerator.hh.


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