Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
CexmcPhaseSpaceGenerator Class Referenceabstract

#include <CexmcPhaseSpaceGenerator.hh>

Inheritance diagram for CexmcPhaseSpaceGenerator:
CexmcReimplementedGenbod

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.

References inVec, totalEnergy, and totalMass.

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.

Referenced by SetFermiEnergyDependence().

101 {
102 }
virtual G4double CexmcPhaseSpaceGenerator::Generate ( void  )
pure virtual

Implemented in CexmcReimplementedGenbod.

void CexmcPhaseSpaceGenerator::ParticleChangeHook ( void  )
protectedvirtual

Definition at line 95 of file CexmcPhaseSpaceGenerator.cc.

Referenced by SetParticles().

96 {
97 }
void CexmcPhaseSpaceGenerator::SetFermiEnergyDependence ( G4bool  on = true)
void CexmcPhaseSpaceGenerator::SetParticles ( const CexmcPhaseSpaceInVector inVec_,
const CexmcPhaseSpaceOutVector outVec_ 
)

Definition at line 58 of file CexmcPhaseSpaceGenerator.cc.

References inVec, outVec, ParticleChangeHook(), and totalMass.

Referenced by CexmcChargeExchangeProductionModel< OutputParticle >::CexmcChargeExchangeProductionModel().

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

Field Documentation

G4bool CexmcPhaseSpaceGenerator::fermiEnergyDepIsOn
protected

Definition at line 98 of file CexmcPhaseSpaceGenerator.hh.

Referenced by SetFermiEnergyDependence().

CexmcPhaseSpaceInVector CexmcPhaseSpaceGenerator::inVec
protected

Definition at line 94 of file CexmcPhaseSpaceGenerator.hh.

Referenced by CheckKinematics(), and SetParticles().

CexmcPhaseSpaceOutVector CexmcPhaseSpaceGenerator::outVec
protected

Definition at line 96 of file CexmcPhaseSpaceGenerator.hh.

Referenced by CexmcReimplementedGenbod::Generate(), and SetParticles().

G4double CexmcPhaseSpaceGenerator::totalEnergy
protected
G4double CexmcPhaseSpaceGenerator::totalMass
protected

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