ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CexmcReimplementedGenbod Class Reference

#include <geant4/tree/geant4-10.6-release/examples/advanced/ChargeExchangeMC/include/CexmcReimplementedGenbod.hh>

+ Inheritance diagram for CexmcReimplementedGenbod:
+ Collaboration diagram for CexmcReimplementedGenbod:

Public Member Functions

 CexmcReimplementedGenbod ()
 
G4double Generate (void)
 
- Public Member Functions inherited from CexmcPhaseSpaceGenerator
 CexmcPhaseSpaceGenerator ()
 
virtual ~CexmcPhaseSpaceGenerator ()
 
virtual G4bool CheckKinematics (void)
 
void SetParticles (const CexmcPhaseSpaceInVector &inVec_, const CexmcPhaseSpaceOutVector &outVec_)
 
void SetFermiEnergyDependence (G4bool on=true)
 

Private Member Functions

void ParticleChangeHook (void)
 
void FermiEnergyDepStatusChangeHook (void)
 
void SetMaxWeight (void)
 

Private Attributes

G4double maxWeight
 
G4int nmbOfOutputParticles
 

Static Private Attributes

static const G4int maxParticles = 18
 

Additional Inherited Members

- Protected Attributes inherited from CexmcPhaseSpaceGenerator
CexmcPhaseSpaceInVector inVec
 
CexmcPhaseSpaceOutVector outVec
 
G4bool fermiEnergyDepIsOn
 
G4double totalEnergy
 
G4double totalMass
 

Detailed Description

Definition at line 51 of file CexmcReimplementedGenbod.hh.

View newest version in sPHENIX GitHub at line 51 of file CexmcReimplementedGenbod.hh

Constructor & Destructor Documentation

CexmcReimplementedGenbod::CexmcReimplementedGenbod ( )

Definition at line 81 of file CexmcReimplementedGenbod.cc.

View newest version in sPHENIX GitHub at line 81 of file CexmcReimplementedGenbod.cc

Member Function Documentation

void CexmcReimplementedGenbod::FermiEnergyDepStatusChangeHook ( void  )
privatevirtual

Reimplemented from CexmcPhaseSpaceGenerator.

Definition at line 202 of file CexmcReimplementedGenbod.cc.

View newest version in sPHENIX GitHub at line 202 of file CexmcReimplementedGenbod.cc

References SetMaxWeight().

+ Here is the call graph for this function:

G4double CexmcReimplementedGenbod::Generate ( void  )
virtual

Implements CexmcPhaseSpaceGenerator.

Definition at line 87 of file CexmcReimplementedGenbod.cc.

View newest version in sPHENIX GitHub at line 87 of file CexmcReimplementedGenbod.cc

References G4UniformRand, GeV, mass, maxParticles, maxWeight, nmbOfOutputParticles, CexmcPhaseSpaceGenerator::outVec, pi, CLHEP::HepLorentzVector::px(), CLHEP::HepLorentzVector::py(), CLHEP::HepLorentzVector::pz(), CLHEP::HepLorentzVector::setPx(), CLHEP::HepLorentzVector::setPy(), CLHEP::HepLorentzVector::setPz(), sum, CexmcPhaseSpaceGenerator::totalEnergy, CexmcPhaseSpaceGenerator::totalMass, v, x, y, and z.

+ Here is the call graph for this function:

void CexmcReimplementedGenbod::ParticleChangeHook ( void  )
privatevirtual

Reimplemented from CexmcPhaseSpaceGenerator.

Definition at line 191 of file CexmcReimplementedGenbod.cc.

View newest version in sPHENIX GitHub at line 191 of file CexmcReimplementedGenbod.cc

References CexmcKinematicsException, maxParticles, nmbOfOutputParticles, CexmcPhaseSpaceGenerator::outVec, and SetMaxWeight().

+ Here is the call graph for this function:

void CexmcReimplementedGenbod::SetMaxWeight ( void  )
private

Definition at line 208 of file CexmcReimplementedGenbod.cc.

View newest version in sPHENIX GitHub at line 208 of file CexmcReimplementedGenbod.cc

References CexmcPhaseSpaceGenerator::fermiEnergyDepIsOn, GeV, mass, maxWeight, nmbOfOutputParticles, CexmcPhaseSpaceGenerator::outVec, CexmcPhaseSpaceGenerator::totalEnergy, and CexmcPhaseSpaceGenerator::totalMass.

Referenced by FermiEnergyDepStatusChangeHook(), and ParticleChangeHook().

+ Here is the caller graph for this function:

Member Data Documentation

const G4int CexmcReimplementedGenbod::maxParticles = 18
staticprivate

Definition at line 72 of file CexmcReimplementedGenbod.hh.

View newest version in sPHENIX GitHub at line 72 of file CexmcReimplementedGenbod.hh

Referenced by Generate(), and ParticleChangeHook().

G4double CexmcReimplementedGenbod::maxWeight
private

Definition at line 67 of file CexmcReimplementedGenbod.hh.

View newest version in sPHENIX GitHub at line 67 of file CexmcReimplementedGenbod.hh

Referenced by Generate(), and SetMaxWeight().

G4int CexmcReimplementedGenbod::nmbOfOutputParticles
private

Definition at line 69 of file CexmcReimplementedGenbod.hh.

View newest version in sPHENIX GitHub at line 69 of file CexmcReimplementedGenbod.hh

Referenced by Generate(), ParticleChangeHook(), and SetMaxWeight().


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