FairRoot/PandaRoot
PndBranchBurstBuilder_timeCut_STB.h
Go to the documentation of this file.
1 /*
2  * PndBranchBurstBuilder_timeCut_STB.h
3  *
4  * Created on: July 12, 2017
5  * Author: Steinschaden
6  *
7  */
8 
9  //* Task Class for building Bursts of events in the simulation.
10 // This Version contains a workaround for "semi-timebased branches" of the PndBranchBurstBuilder_timeCut
11 // It checks if the fastest hit of an event occures within a defined time window and combines these events into Bursts
12 // As the Event based output, the data in the Bursts are not sorted in time!
13 
14 // Attention: to Keep this workaround simple not every potential case is taken into account.
15 // If the used time windows are to small so that maybe no event occurse, unwanted splitting of events within the next Burst will happen!
16 
17 #ifndef PndBranchBurstBuilder_timeCut_STB_H_
18 #define PndBranchBurstBuilder_timeCut_STB_H_
19 
20 
21 #include "PndBranchBurstBuilder.h"
22 #include "TClonesArray.h"
23 //#include "FairTask.h"
24 //#include <vector>
25 
26 
27 
29 {
30 public:
31 
36 
37 
39  virtual InitStatus Init();
40 
41  //virtual void SetParContainers();
42  // virtual InitStatus ReInit();
43 
44 // Method to collect the data of full Burst for an Single Branch. inBranchNum state the position in the InputBranchName vector
45  virtual TClonesArray* GetBurstData(size_t branchNum);
46 
47  void SetTimePeriod (double val){fTimePeriod = val;};
48 
50  // virtual void Exec(Option_t* opt);
51 
52 // virtual void ExecuteTask(Option_t *option="0");
53 // virtual void ExecuteTasks(Option_t *option);
54 
55 // virtual void FinishEvent();
56  virtual void FinishTask();
57 // virtual void Finish() { };
58 
59 protected:
60 
61  double fTimePeriod;
62  double fBurstNum;
63  bool fWriteOut;
64  std::vector<TClonesArray*> fTempArrays;
65 
66 
68 
69 
70 };
71 
72 #endif /*PndBranchBurstBuilder_timeCut_STB_H_*/
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
virtual TClonesArray * GetBurstData(size_t branchNum)
ClassDef(PndBranchBurstBuilder_timeCut_STB, 0)