PandaRoot
PndMvdEventMerger.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDMVDEVENTMERGER_H
14 #define PNDMVDEVENTMERGER_H
15 
16 #include "TString.h"
17 #include "TObject.h"
18 #include "TObjArray.h"
19 #include "TClonesArray.h"
20 
21 #include <vector>
22 
24  public:
26  PndMvdEventMerger(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged);
27  virtual ~PndMvdEventMerger();
28 
29  TClonesArray *GetEvent(Int_t iEvent);
30  Int_t AddTClonesArray(TClonesArray *target, TClonesArray *source);
31 
32  private:
33  std::vector<TClonesArray *> fBuffer;
34  Int_t FillBuffer(TString fileName, TString branchName, Int_t nEvents, Int_t nMerged);
35 
36  ClassDef(PndMvdEventMerger, 1);
37 };
38 
39 #endif /*PNDMVDEVENTMERGER_H*/
TClonesArray * GetEvent(Int_t iEvent)
virtual ~PndMvdEventMerger()
Int_t AddTClonesArray(TClonesArray *target, TClonesArray *source)