PandaRoot
PndBranchBurstBuilder.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 #include "TClonesArray.h"
17 #include "FairTask.h"
18 #include <vector>
19 
20 class PndBranchBurstBuilder : public FairTask {
21  public:
25  virtual ~PndBranchBurstBuilder();
26 
28  virtual InitStatus Init();
29 
30 
32  virtual void Exec(Option_t *opt);
33 
34  virtual TClonesArray *GetBurstData(size_t inBranchNum) = 0;
35 
37  void SetOutputPrefix(TString prefix) { fOutputPrefix = prefix; };
38 
40  void AddInputBranch(TString branchName) { fInBranchNames.push_back(branchName); };
41 
43  void SetPersistence(Bool_t val) { fPersistence = val; };
44 
45  protected:
46  std::vector<TString> fInBranchNames;
47  std::vector<TClonesArray *> fInArrays;
48  std::vector<TClonesArray *> fOutArrays;
49 
50  TString fOutputPrefix;
51  Bool_t fPersistence;
52 
54 };
55 
std::vector< TString > fInBranchNames
virtual ~PndBranchBurstBuilder()
virtual InitStatus Init()
ClassDef(PndBranchBurstBuilder, 0)
void SetPersistence(Bool_t val)
Set Persistance to kTRUE if you want to store the combined Events. otherwise they are just buffered f...
virtual void Exec(Option_t *opt)
void SetOutputPrefix(TString prefix)
Set OutputBranchName prefix. Default one is "Burst".
virtual TClonesArray * GetBurstData(size_t inBranchNum)=0
void AddInputBranch(TString branchName)
Set and add the branches for which you want to combine events.
Basic Class for building bursts of events in the simulation.
std::vector< TClonesArray * > fInArrays
std::vector< TClonesArray * > fOutArrays