PandaRoot
BSEmcJoinBranches.h
Go to the documentation of this file.
1 #ifndef BSEMCJOINBRANCHES_HH
2 #define BSEMCJOINBRANCHES_HH
3 
4 #include <vector>
5 
6 #include "Rtypes.h"
7 #include "RtypesCore.h"
8 #include "TString.h"
9 
10 #include "FairTask.h"
11 
12 #include "PndPersistencyTask.h"
13 
14 class TClonesArray;
15 class TBuffer;
16 class TClass;
17 class TMemberInspector;
18 
28  public:
30  BSEmcJoinBranches(const std::vector<TString> &t_srcbranchnames, const TString &t_targetbranchname, Bool_t t_storeTarget = kTRUE);
31  virtual ~BSEmcJoinBranches();
32  virtual InitStatus Init() /*override*/;
33  virtual void Exec(Option_t * /*unused*/) /*override*/;
34 
35  protected:
36  private:
37  std::vector<TString> fSourceBranchNames{};
38  TString fTargetBranchName{""};
39  std::vector<TClonesArray *> fSourceArrays{};
40  TClonesArray *fTargetArray{nullptr};
41 
42  ClassDef(BSEmcJoinBranches, 1);
43 };
44 
45 #endif /*BSEMCJOINBRANCHES_HH*/
Task to join several branches (supplied as t_srcbranchnames in ctor) into one t_targetbranchname.
virtual ~BSEmcJoinBranches()
virtual void Exec(Option_t *)
virtual InitStatus Init()