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

#include <geant4/tree/geant4-10.6-release/examples/extended/eventgenerator/HepMC/MCTruth/include/MCTruthManager.hh>

+ Collaboration diagram for MCTruthManager:

Public Member Functions

void NewEvent ()
 
HepMC::GenEvent * GetCurrentEvent () const
 
void PrintEvent ()
 
void AddParticle (G4LorentzVector &, G4LorentzVector &, G4LorentzVector &, G4int, G4int, G4int, G4bool)
 
void SetConfig (MCTruthConfig *c)
 
MCTruthConfigGetConfig () const
 

Static Public Member Functions

static MCTruthManagerGetInstance ()
 

Protected Member Functions

 MCTruthManager ()
 
virtual ~MCTruthManager ()
 

Private Member Functions

void PrintTree (HepMC::GenParticle *, G4String)
 

Private Attributes

HepMC::GenEvent * fEvent
 
std::vector< G4intfPrimarybarcodes
 
std::map< G4int, G4intfSegmentations
 
MCTruthConfigfConfig
 

Detailed Description

Definition at line 51 of file MCTruthManager.hh.

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

Constructor & Destructor Documentation

MCTruthManager::MCTruthManager ( )
protected

Definition at line 50 of file MCTruthManager.cc.

View newest version in sPHENIX GitHub at line 50 of file MCTruthManager.cc

Referenced by GetInstance().

+ Here is the caller graph for this function:

MCTruthManager::~MCTruthManager ( )
protectedvirtual

Definition at line 55 of file MCTruthManager.cc.

View newest version in sPHENIX GitHub at line 55 of file MCTruthManager.cc

Member Function Documentation

void MCTruthManager::AddParticle ( G4LorentzVector momentum,
G4LorentzVector prodpos,
G4LorentzVector endpos,
G4int  pdg_id,
G4int  partID,
G4int  motherID,
G4bool  directParent 
)

Definition at line 81 of file MCTruthManager.cc.

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

References fEvent, fPrimarybarcodes, fSegmentations, G4cerr, G4endl, it, particle, CLHEP::HepLorentzVector::t(), CLHEP::HepLorentzVector::x(), CLHEP::HepLorentzVector::y(), and CLHEP::HepLorentzVector::z().

+ Here is the call graph for this function:

MCTruthConfig* MCTruthManager::GetConfig ( ) const
inline

Definition at line 66 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 66 of file MCTruthManager.hh

References fConfig.

Referenced by MCTruthTrackingAction::TrackToBeStored().

+ Here is the caller graph for this function:

HepMC::GenEvent* MCTruthManager::GetCurrentEvent ( ) const
inline

Definition at line 59 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 59 of file MCTruthManager.hh

References fEvent.

MCTruthManager * MCTruthManager::GetInstance ( void  )
static

Definition at line 60 of file MCTruthManager.cc.

View newest version in sPHENIX GitHub at line 60 of file MCTruthManager.cc

References instance, and MCTruthManager().

Referenced by MCTruthEventAction::BeginOfEventAction(), MCTruthEventAction::EndOfEventAction(), main(), MCTruthTrackingAction::PostUserTrackingAction(), and MCTruthTrackingAction::TrackToBeStored().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MCTruthManager::NewEvent ( )

Definition at line 71 of file MCTruthManager.cc.

View newest version in sPHENIX GitHub at line 71 of file MCTruthManager.cc

References fEvent.

Referenced by MCTruthEventAction::BeginOfEventAction().

+ Here is the caller graph for this function:

void MCTruthManager::PrintEvent ( )

Definition at line 264 of file MCTruthManager.cc.

View newest version in sPHENIX GitHub at line 264 of file MCTruthManager.cc

References fEvent, fPrimarybarcodes, and PrintTree().

Referenced by MCTruthEventAction::EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MCTruthManager::PrintTree ( HepMC::GenParticle *  particle,
G4String  offset 
)
private

Definition at line 279 of file MCTruthManager.cc.

View newest version in sPHENIX GitHub at line 279 of file MCTruthManager.cc

References G4cout, G4endl, it, and part.

Referenced by PrintEvent().

+ Here is the caller graph for this function:

void MCTruthManager::SetConfig ( MCTruthConfig c)
inline

Definition at line 65 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 65 of file MCTruthManager.hh

References c, and fConfig.

Referenced by main().

+ Here is the caller graph for this function:

Member Data Documentation

MCTruthConfig* MCTruthManager::fConfig
private

Definition at line 90 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 90 of file MCTruthManager.hh

Referenced by GetConfig(), and SetConfig().

HepMC::GenEvent* MCTruthManager::fEvent
private

Definition at line 76 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 76 of file MCTruthManager.hh

Referenced by AddParticle(), GetCurrentEvent(), NewEvent(), and PrintEvent().

std::vector<G4int> MCTruthManager::fPrimarybarcodes
private

Definition at line 80 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 80 of file MCTruthManager.hh

Referenced by AddParticle(), and PrintEvent().

std::map<G4int,G4int> MCTruthManager::fSegmentations
private

Definition at line 86 of file MCTruthManager.hh.

View newest version in sPHENIX GitHub at line 86 of file MCTruthManager.hh

Referenced by AddParticle().


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