CbmRoot
Loading...
Searching...
No Matches
CbmMvdPileupManager.h
Go to the documentation of this file.
1/* Copyright (C) 2007-2012 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmMvdPileupManager header file -----
7// ----- Created 08/11/06 by V. Friese -----
8// -------------------------------------------------------------------------
9
21#ifndef CBMMVDPILEUPMANAGER_H
22#define CBMMVDPILEUPMANAGER_H 1
23
24#include <Rtypes.h> // for ClassDef
25#include <RtypesCore.h> // for Int_t
26#include <TObjArray.h> // for TObjArray
27#include <TObject.h> // for TObject
28#include <TString.h> // for TString
29
30class TBuffer;
31class TClass;
32class TClonesArray;
33class TMemberInspector;
34
35class CbmMvdPileupManager : public TObject {
36
37public:
40
41
47 CbmMvdPileupManager(TString fileName, TString branchName = "MVDPoint", Int_t nEvents = 500);
48
49
51 virtual ~CbmMvdPileupManager();
52
53
55 Int_t GetNEvents() { return fBuffer->GetEntriesFast(); };
56
57
62 TClonesArray* GetEvent(Int_t iEvent);
63
64private:
65 TObjArray* fBuffer; // Buffer of background events
66
67
74 Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents);
75
78
80};
81
82
83#endif
CbmMvdPileupManager & operator=(const CbmMvdPileupManager &)
TClonesArray * GetEvent(Int_t iEvent)
CbmMvdPileupManager(const CbmMvdPileupManager &)
Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents)
ClassDef(CbmMvdPileupManager, 1)