Geant4  10.00.p01
MCTruthManager Class Reference

#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 * event
 
std::vector< G4intprimarybarcodes
 
std::map< G4int, G4intsegmentations
 
MCTruthConfigconfig
 

Detailed Description

Definition at line 52 of file MCTruthManager.hh.

Constructor & Destructor Documentation

MCTruthManager::MCTruthManager ( )
protected

Definition at line 45 of file MCTruthManager.cc.

Referenced by GetInstance().

+ Here is the caller graph for this function:

MCTruthManager::~MCTruthManager ( )
protectedvirtual

Definition at line 48 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 68 of file MCTruthManager.cc.

References G4cerr, G4endl, primarybarcodes, and segmentations.

MCTruthConfig* MCTruthManager::GetConfig ( ) const
inline

Definition at line 67 of file MCTruthManager.hh.

References config.

Referenced by MCTruthTrackingAction::trackToBeStored().

+ Here is the caller graph for this function:

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

Definition at line 60 of file MCTruthManager.hh.

References event.

MCTruthManager * MCTruthManager::GetInstance ( void  )
static

Definition at line 51 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 60 of file MCTruthManager.cc.

References event.

Referenced by MCTruthEventAction::BeginOfEventAction().

+ Here is the caller graph for this function:

void MCTruthManager::PrintEvent ( )

Definition at line 249 of file MCTruthManager.cc.

References event, primarybarcodes, 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 262 of file MCTruthManager.cc.

References G4cout, and G4endl.

Referenced by PrintEvent().

+ Here is the caller graph for this function:

void MCTruthManager::SetConfig ( MCTruthConfig c)
inline

Definition at line 66 of file MCTruthManager.hh.

Referenced by main().

+ Here is the caller graph for this function:

Member Data Documentation

MCTruthConfig* MCTruthManager::config
private

Definition at line 91 of file MCTruthManager.hh.

Referenced by GetConfig().

HepMC::GenEvent* MCTruthManager::event
private

Definition at line 77 of file MCTruthManager.hh.

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

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

Definition at line 81 of file MCTruthManager.hh.

Referenced by AddParticle(), and PrintEvent().

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

Definition at line 87 of file MCTruthManager.hh.

Referenced by AddParticle().


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