FairRoot/PandaRoot
PndMvdEventMerger.h
Go to the documentation of this file.
1 #ifndef PNDMVDEVENTMERGER_H
2 #define PNDMVDEVENTMERGER_H
3 
4 #include "TString.h"
5 #include "TObject.h"
6 #include "TObjArray.h"
7 #include "TClonesArray.h"
8 
9 #include <vector>
10 
12 {
13 public:
15  PndMvdEventMerger(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged);
16  virtual ~PndMvdEventMerger();
17 
18  TClonesArray* GetEvent(Int_t iEvent);
19  Int_t AddTClonesArray(TClonesArray* target, TClonesArray* source);
20 
21 
22 private:
23  std::vector<TClonesArray*> fBuffer;
24  Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged);
25 
27 
28 };
29 
30 #endif /*PNDMVDEVENTMERGER_H*/
Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged)
TClonesArray * GetEvent(Int_t iEvent)
Int_t nEvents
Definition: hit_dirc.C:11
ClassDef(PndMvdEventMerger, 1)
Int_t AddTClonesArray(TClonesArray *target, TClonesArray *source)
std::vector< TClonesArray * > fBuffer