FairRoot/PandaRoot
PndBranchBurstBuilder.h
Go to the documentation of this file.
1 /*
2  * PndBranchBurstBuilder.h
3  *
4  * Created on: July 12, 2017
5  * Author: Steinschaden
6  *
7  */
8 
9  // Basic Class for building Bursts of events in the simulation.
10 //For the different simulation types (event based, semi time based, time based) the appropriate classes must be derived
11 // the pure virtual function "GetBurstData" must be implemented
12 
13 #ifndef PndBranchBurstBuilder_H_
14 #define PndBranchBurstBuilder_H_
15 
16 
17 
18 #include "TClonesArray.h"
19 #include "FairTask.h"
20 #include <vector>
21 
22 
23 class PndBranchBurstBuilder : public FairTask
24 {
25 public:
26 
30  virtual ~PndBranchBurstBuilder();
31 
32 
34  virtual InitStatus Init();
35 
36  //virtual void SetParContainers();
37  // virtual InitStatus ReInit();
38 
39 
40 
41 
43  virtual void Exec(Option_t* opt);
44 
45  virtual TClonesArray* GetBurstData(size_t inBranchNum)=0;
46 
47 // virtual void ExecuteTask(Option_t *option="0");
48 // virtual void ExecuteTasks(Option_t *option);
49 
50 // virtual void FinishEvent();
51 // virtual void FinishTask();
52 // virtual void Finish() { };
53 
54 
55 // Set OutputBrnachName prefix. Default one is "Burst"
56  void SetOutputPrefix(TString prefix){fOutputPrefix=prefix;};
57 // Set and add the branches for which you want to combine events
58  void AddInputBranch(TString branchName){ fInBranchNames.push_back(branchName);};
59 
60  // Set Persistance to kTRUE if you want to store the combined Events. otherwise they are just buffered for the direct use of other tasks in the same run
62 
63 
64 
65 protected:
66 
67  std::vector<TString> fInBranchNames;
68  std::vector<TClonesArray*> fInArrays;
69  std::vector<TClonesArray*> fOutArrays;
70 
73 
74 
75 
77 
78 
79 };
80 
81 #endif /*PndBranchBurstBuilder_H_*/
std::vector< TString > fInBranchNames
std::vector< TClonesArray * > fOutArrays
ClassDef(PndBranchBurstBuilder, 0)
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
void SetPersistence(Bool_t val)
void SetOutputPrefix(TString prefix)
virtual TClonesArray * GetBurstData(size_t inBranchNum)=0
void AddInputBranch(TString branchName)
std::vector< TClonesArray * > fInArrays
virtual void Exec(Option_t *opt)
virtual InitStatus Init()