Geant4  10.03
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 * fEvent
 
std::vector< G4intfPrimarybarcodes
 
std::map< G4int, G4intfSegmentations
 
MCTruthConfigfConfig
 

Detailed Description

Definition at line 52 of file MCTruthManager.hh.

Constructor & Destructor Documentation

MCTruthManager::MCTruthManager ( )
protected

Definition at line 51 of file MCTruthManager.cc.

Referenced by GetInstance().

+ Here is the caller graph for this function:

MCTruthManager::~MCTruthManager ( )
protectedvirtual

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

References fEvent, fPrimarybarcodes, fSegmentations, G4cerr, and G4endl.

MCTruthConfig* MCTruthManager::GetConfig ( ) const
inline

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

References fEvent.

MCTruthManager * MCTruthManager::GetInstance ( void  )
static

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

References fEvent.

Referenced by MCTruthEventAction::BeginOfEventAction().

+ Here is the caller graph for this function:

void MCTruthManager::PrintEvent ( )

Definition at line 265 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 280 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.

References fConfig.

Referenced by main().

+ Here is the caller graph for this function:

Member Data Documentation

MCTruthConfig* MCTruthManager::fConfig
private

Definition at line 91 of file MCTruthManager.hh.

Referenced by GetConfig(), and SetConfig().

HepMC::GenEvent* MCTruthManager::fEvent
private

Definition at line 77 of file MCTruthManager.hh.

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

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

Definition at line 81 of file MCTruthManager.hh.

Referenced by AddParticle(), and PrintEvent().

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

Definition at line 87 of file MCTruthManager.hh.

Referenced by AddParticle().


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