#ifndef PNDSSDEVENTMERGER_H_ #define PNDSSDEVENTMERGER_H_ #include "TString.h" #include "TObject.h" #include "TObjArray.h" #include "TClonesArray.h" #include class PndSsdEventMerger { public: PndSsdEventMerger(); PndSsdEventMerger(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged); virtual ~PndSsdEventMerger(); TClonesArray* GetEvent(Int_t iEvent); Int_t AddTClonesArray(TClonesArray* target, TClonesArray* source); private: std::vector fBuffer; Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged); ClassDef(PndSsdEventMerger,1); }; #endif /*PNDSSDEVENTMERGER_H_*/