CbmRoot
CbmMvdPileupManager Class Reference

#include <CbmMvdPileupManager.h>

Inheritance diagram for CbmMvdPileupManager:
[legend]
Collaboration diagram for CbmMvdPileupManager:
[legend]

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 &)
 
CbmMvdPileupManageroperator= (const CbmMvdPileupManager &)
 
 ClassDef (CbmMvdPileupManager, 1)
 

Private Attributes

TObjArray * fBuffer
 

Detailed Description

Definition at line 28 of file CbmMvdPileupManager.h.

Constructor & Destructor Documentation

◆ CbmMvdPileupManager() [1/3]

CbmMvdPileupManager::CbmMvdPileupManager ( )

Default constructor

Definition at line 19 of file CbmMvdPileupManager.cxx.

◆ CbmMvdPileupManager() [2/3]

CbmMvdPileupManager::CbmMvdPileupManager ( TString  fileName,
TString  branchName = "MVDPoint",
Int_t  nEvents = 500 
)

Standard constructor

Parameters
fileNameName of background file
branchNamename of branch to be buffered
nEventsNumber of pile-up events

Definition at line 24 of file CbmMvdPileupManager.cxx.

References FillBuffer().

◆ ~CbmMvdPileupManager()

CbmMvdPileupManager::~CbmMvdPileupManager ( )
virtual

Destructor

Definition at line 35 of file CbmMvdPileupManager.cxx.

References fBuffer.

◆ CbmMvdPileupManager() [3/3]

CbmMvdPileupManager::CbmMvdPileupManager ( const CbmMvdPileupManager )
private

Member Function Documentation

◆ ClassDef()

CbmMvdPileupManager::ClassDef ( CbmMvdPileupManager  ,
 
)
private

◆ FillBuffer()

Int_t CbmMvdPileupManager::FillBuffer ( TString  fileName,
TString  branchName,
Int_t  nEvents 
)
private

Fill the background buffer from the background file

Parameters
fileNameName of background file
branchNamename of branch to be buffered
nEventsNumber of events to be read from file
Returns
Number of buffered events

Definition at line 68 of file CbmMvdPileupManager.cxx.

References fBuffer.

Referenced by CbmMvdPileupManager().

◆ GetEvent()

TClonesArray * CbmMvdPileupManager::GetEvent ( Int_t  iEvent)

Get an event from the background buffer

Parameters
iEventEvent number
Returns
Pointer to TClonesArray

Definition at line 43 of file CbmMvdPileupManager.cxx.

References fBuffer.

Referenced by CbmMvdDigitizer::BuildEvent().

◆ GetNEvents()

Int_t CbmMvdPileupManager::GetNEvents ( )
inline

Returns the number of events in the buffer

Definition at line 50 of file CbmMvdPileupManager.h.

References fBuffer.

Referenced by CbmMvdDigitizer::BuildEvent(), and CbmMvdDigitizer::Init().

◆ operator=()

CbmMvdPileupManager& CbmMvdPileupManager::operator= ( const CbmMvdPileupManager )
private

Member Data Documentation

◆ fBuffer

TObjArray* CbmMvdPileupManager::fBuffer
private

Definition at line 60 of file CbmMvdPileupManager.h.

Referenced by FillBuffer(), GetEvent(), GetNEvents(), and ~CbmMvdPileupManager().


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