CbmRoot
|
#include <CbmMvdPileupManager.h>
Public Member Functions | |
CbmMvdPileupManager () | |
CbmMvdPileupManager (TString fileName, TString branchName="MVDPoint", Int_t nEvents=500) | |
virtual | ~CbmMvdPileupManager () |
Int_t | GetNEvents () |
TClonesArray * | GetEvent (Int_t iEvent) |
Private Member Functions | |
Int_t | FillBuffer (TString fileName, TString branchName, Int_t nEvents) |
CbmMvdPileupManager (const CbmMvdPileupManager &) | |
CbmMvdPileupManager & | operator= (const CbmMvdPileupManager &) |
ClassDef (CbmMvdPileupManager, 1) | |
Private Attributes | |
TObjArray * | fBuffer |
Definition at line 35 of file CbmMvdPileupManager.h.
CbmMvdPileupManager::CbmMvdPileupManager | ( | ) |
Default constructor
Definition at line 26 of file CbmMvdPileupManager.cxx.
CbmMvdPileupManager::CbmMvdPileupManager | ( | TString | fileName, |
TString | branchName = "MVDPoint", | ||
Int_t | nEvents = 500 ) |
Standard constructor
fileName | Name of background file |
branchName | name of branch to be buffered |
nEvents | Number of pile-up events |
Definition at line 31 of file CbmMvdPileupManager.cxx.
References FillBuffer().
|
virtual |
|
private |
|
private |
|
private |
Fill the background buffer from the background file
fileName | Name of background file |
branchName | name of branch to be buffered |
nEvents | Number of events to be read from file |
Save old global file and folder pointer to avoid messing with FairRoot
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 74 of file CbmMvdPileupManager.cxx.
References fBuffer.
Referenced by CbmMvdPileupManager().
TClonesArray * CbmMvdPileupManager::GetEvent | ( | Int_t | iEvent | ) |
Get an event from the background buffer
iEvent | Event number |
Definition at line 50 of file CbmMvdPileupManager.cxx.
References fBuffer.
Referenced by CbmMvdDigitizer::BuildEvent().
|
inline |
Returns the number of events in the buffer
Definition at line 55 of file CbmMvdPileupManager.h.
References fBuffer.
Referenced by CbmMvdDigitizer::BuildEvent(), and CbmMvdDigitizer::Init().
|
private |
|
private |
Definition at line 65 of file CbmMvdPileupManager.h.
Referenced by FillBuffer(), GetEvent(), GetNEvents(), and ~CbmMvdPileupManager().