| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MCTruthManager Class Reference

#include <Components/MCTruthManager.h>

Collaboration diagram for MCTruthManager:

[legend]
List of all members.

Public Types

 DummyBarCode = 20000000
 SplitBarCode = 100000000
 DummyPDGID = -99000000
enum  MCTruthBarCode { DummyBarCode = 20000000, SplitBarCode = 100000000 }
enum  MCTruthPDGID { DummyPDGID = -99000000 }
 PDG Id for dummy intermediate particle. More...

Public Member Functions

virtual ~MCTruthManager ()
void NewEvent ()
HepMC::GenEventGetCurrentEvent ()
void PrintEvent ()
void AddParticle (HepMC::FourVector &fourMom, HepMC::FourVector &prodPos, HepMC::FourVector &endPos, int pdg, int trID, int parentID, bool directParent, int creatorID, LHCb::MCParticle *motherMCP, bool oscillated=false)
const std::vector< int > & GetPrimaryBarcodes ()
int GetCreatorID (int barcode)
const std::vector< int > & GetOscillatedBarcodes ()
LHCb::MCParticle * GetMotherMCParticle (const int barcode)
 returns the pre-filled MCParticle mother of the G4 particle

Static Public Member Functions

static MCTruthManagerGetInstance ()

Protected Member Functions

 MCTruthManager ()

Private Member Functions

void printTree (HepMC::GenParticle *, std::string)

Private Attributes

HepMC::GenEventevent
std::vector< int > primarybarcodes
std::map< int, int > creators
std::vector< int > oscillated
std::map< int, int > segmentations
std::map< int, LHCb::MCParticle * > m_mcparticles
 Map containing links between G4 and pre-filled MCParticles.

Detailed Description

Author:
Witold POKORSKI
Date:
2005-09-06

Definition at line 20 of file MCTruthManager.h.


Member Enumeration Documentation

enum MCTruthManager::MCTruthBarCode

Enumerator:
DummyBarCode 
SplitBarCode 

Definition at line 25 of file MCTruthManager.h.

00025                       {
00026     DummyBarCode =  20000000,
00027     SplitBarCode = 100000000       
00028   };

enum MCTruthManager::MCTruthPDGID

PDG Id for dummy intermediate particle.

Enumerator:
DummyPDGID 

Definition at line 31 of file MCTruthManager.h.

00031                     {
00032     DummyPDGID = -99000000 
00033   };


Constructor & Destructor Documentation

virtual MCTruthManager::~MCTruthManager (  )  [virtual]

MCTruthManager::MCTruthManager (  )  [protected]


Member Function Documentation

static MCTruthManager* MCTruthManager::GetInstance (  )  [static]

void MCTruthManager::NewEvent (  ) 

HepMC::GenEvent* MCTruthManager::GetCurrentEvent (  )  [inline]

Definition at line 40 of file MCTruthManager.h.

00040                                    {
00041     return event;
00042   };

void MCTruthManager::PrintEvent (  ) 

void MCTruthManager::AddParticle ( HepMC::FourVector fourMom,
HepMC::FourVector prodPos,
HepMC::FourVector endPos,
int  pdg,
int  trID,
int  parentID,
bool  directParent,
int  creatorID,
LHCb::MCParticle *  motherMCP,
bool  oscillated = false 
)

const std::vector<int>& MCTruthManager::GetPrimaryBarcodes (  ) 

int MCTruthManager::GetCreatorID ( int  barcode  ) 

const std::vector<int>& MCTruthManager::GetOscillatedBarcodes (  ) 

LHCb::MCParticle* MCTruthManager::GetMotherMCParticle ( const int  barcode  ) 

returns the pre-filled MCParticle mother of the G4 particle

void MCTruthManager::printTree ( HepMC::GenParticle ,
std::string   
) [private]


Member Data Documentation

HepMC::GenEvent* MCTruthManager::event [private]

Definition at line 66 of file MCTruthManager.h.

std::vector<int> MCTruthManager::primarybarcodes [private]

Definition at line 69 of file MCTruthManager.h.

std::map<int,int> MCTruthManager::creators [private]

Definition at line 72 of file MCTruthManager.h.

std::vector<int> MCTruthManager::oscillated [private]

Definition at line 75 of file MCTruthManager.h.

std::map<int,int> MCTruthManager::segmentations [private]

Definition at line 80 of file MCTruthManager.h.

std::map< int , LHCb::MCParticle * > MCTruthManager::m_mcparticles [private]

Map containing links between G4 and pre-filled MCParticles.

Definition at line 83 of file MCTruthManager.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:04:15 2011 for GaussTools by doxygen 1.4.7