CbmRoot
CbmMvdPileupManager.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMvdPileupManager header file -----
3 // ----- Created 08/11/06 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
17 #ifndef CBMMVDPILEUPMANAGER_H
18 #define CBMMVDPILEUPMANAGER_H 1
19 
20 
21 #include "TObjArray.h"
22 #include "TObject.h"
23 #include "TString.h"
24 
25 class TClonesArray;
26 
27 
28 class CbmMvdPileupManager : public TObject {
29 
30 public:
33 
34 
40  CbmMvdPileupManager(TString fileName,
41  TString branchName = "MVDPoint",
42  Int_t nEvents = 500);
43 
44 
46  virtual ~CbmMvdPileupManager();
47 
48 
50  Int_t GetNEvents() { return fBuffer->GetEntriesFast(); };
51 
52 
57  TClonesArray* GetEvent(Int_t iEvent);
58 
59 private:
60  TObjArray* fBuffer; // Buffer of background events
61 
62 
69  Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents);
70 
73 
75 };
76 
77 
78 #endif
CbmMvdPileupManager
Definition: CbmMvdPileupManager.h:28
CbmMvdPileupManager::CbmMvdPileupManager
CbmMvdPileupManager(const CbmMvdPileupManager &)
CbmMvdPileupManager::FillBuffer
Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents)
Definition: CbmMvdPileupManager.cxx:68
CbmMvdPileupManager::GetEvent
TClonesArray * GetEvent(Int_t iEvent)
Definition: CbmMvdPileupManager.cxx:43
CbmMvdPileupManager::~CbmMvdPileupManager
virtual ~CbmMvdPileupManager()
Definition: CbmMvdPileupManager.cxx:35
CbmMvdPileupManager::fBuffer
TObjArray * fBuffer
Definition: CbmMvdPileupManager.h:60
CbmMvdPileupManager::GetNEvents
Int_t GetNEvents()
Definition: CbmMvdPileupManager.h:50
CbmMvdPileupManager::ClassDef
ClassDef(CbmMvdPileupManager, 1)
CbmMvdPileupManager::operator=
CbmMvdPileupManager & operator=(const CbmMvdPileupManager &)
CbmMvdPileupManager::CbmMvdPileupManager
CbmMvdPileupManager()
Definition: CbmMvdPileupManager.cxx:19