CbmRoot
CbmBuildEventsSimple.h
Go to the documentation of this file.
1 
5 #ifndef CBMBUILDEVENTSSIMPLE_H
6 #define CBMBUILDEVENTSSIMPLE_H
7 
8 
9 #include <FairTask.h>
10 
11 class TClonesArray;
12 
23 class CbmBuildEventsSimple : public FairTask {
24 public:
27 
29  virtual ~CbmBuildEventsSimple();
30 
32  virtual void Exec(Option_t* opt);
33 
34  // Setters. Time in [ns], events in counts :) Only STS information is used.
35  void SetWindDur(Double_t winddur = 5) { fWindDur = winddur; }
36  void SetMinusDeltaT(Double_t minusdeltat = 10) { fMinusDeltaT = minusdeltat; }
37  void SetPlusDeltaT(Double_t plusdeltat = 15) { fPlusDeltaT = plusdeltat; }
38  void SetMinHitStations(Int_t minhitstations = 8) {
39  fMinHitStations = minhitstations;
40  }
41  void SetMinDigis(Int_t mindigis = 2000) { fMinDigis = mindigis; }
42  void SetDeadT(Double_t deadt = 10) { fDeadT = deadt; }
43 
44 
45 private:
46  TClonesArray* fStsDigis;
47  TClonesArray* fEvents;
48  Int_t fSliceN; // Number of current time slice
49 
50  Int_t fEv; // Number of current event
51  Int_t fNDigis; // Number of digis in current time window
52  Int_t fSN; // N of start of time window
53  Double_t fST; // Time of start of time window
54  Int_t fNStsDigis[16]; // Number of STS digis per station
55  Double_t fWindDur; // Duration of time window [ns]
56  Double_t
57  fMinusDeltaT; // [ns] before start of time window for event construction
58  Double_t fPlusDeltaT; // [ns] after end of time window for event construction
59  Double_t fDeadT; // [ns] after last accepted digi of blindless
60  Int_t
61  fMinHitStations; // Minimum number of hit STS stations for event formation
62  Int_t
63  fMinDigis; // Minimum number of digis in time window for event formation
64 
66  virtual InitStatus Init();
67 
69  void FillEvent(Int_t st, Int_t end);
70 
73 
75 };
76 
77 #endif /* CBMBUILDEVENTSSIMPLE_H */
CbmBuildEventsSimple::~CbmBuildEventsSimple
virtual ~CbmBuildEventsSimple()
Definition: CbmBuildEventsSimple.cxx:53
CbmBuildEventsSimple::SetMinusDeltaT
void SetMinusDeltaT(Double_t minusdeltat=10)
Definition: CbmBuildEventsSimple.h:36
CbmBuildEventsSimple::SetMinDigis
void SetMinDigis(Int_t mindigis=2000)
Definition: CbmBuildEventsSimple.h:41
CbmBuildEventsSimple::operator=
CbmBuildEventsSimple & operator=(const CbmBuildEventsSimple &)
CbmBuildEventsSimple::fEv
Int_t fEv
Definition: CbmBuildEventsSimple.h:50
CbmBuildEventsSimple::fSN
Int_t fSN
Definition: CbmBuildEventsSimple.h:52
CbmBuildEventsSimple::fSliceN
Int_t fSliceN
Definition: CbmBuildEventsSimple.h:48
CbmBuildEventsSimple::SetPlusDeltaT
void SetPlusDeltaT(Double_t plusdeltat=15)
Definition: CbmBuildEventsSimple.h:37
CbmBuildEventsSimple::fNDigis
Int_t fNDigis
Definition: CbmBuildEventsSimple.h:51
CbmBuildEventsSimple
Definition: CbmBuildEventsSimple.h:23
CbmBuildEventsSimple::fWindDur
Double_t fWindDur
Definition: CbmBuildEventsSimple.h:55
CbmBuildEventsSimple::fMinDigis
Int_t fMinDigis
Definition: CbmBuildEventsSimple.h:63
CbmBuildEventsSimple::fStsDigis
TClonesArray * fStsDigis
Input array (class CbmStsDigi)
Definition: CbmBuildEventsSimple.h:46
CbmBuildEventsSimple::fST
Double_t fST
Definition: CbmBuildEventsSimple.h:53
CbmBuildEventsSimple::fPlusDeltaT
Double_t fPlusDeltaT
Definition: CbmBuildEventsSimple.h:58
CbmBuildEventsSimple::SetDeadT
void SetDeadT(Double_t deadt=10)
Definition: CbmBuildEventsSimple.h:42
CbmBuildEventsSimple::ClassDef
ClassDef(CbmBuildEventsSimple, 1)
CbmBuildEventsSimple::fEvents
TClonesArray * fEvents
Output array (class CbmEvent)
Definition: CbmBuildEventsSimple.h:47
CbmBuildEventsSimple::fDeadT
Double_t fDeadT
Definition: CbmBuildEventsSimple.h:59
CbmBuildEventsSimple::SetWindDur
void SetWindDur(Double_t winddur=5)
Definition: CbmBuildEventsSimple.h:35
CbmBuildEventsSimple::fNStsDigis
Int_t fNStsDigis[16]
Definition: CbmBuildEventsSimple.h:54
CbmBuildEventsSimple::fMinusDeltaT
Double_t fMinusDeltaT
Definition: CbmBuildEventsSimple.h:57
CbmBuildEventsSimple::Exec
virtual void Exec(Option_t *opt)
Definition: CbmBuildEventsSimple.cxx:76
CbmBuildEventsSimple::CbmBuildEventsSimple
CbmBuildEventsSimple()
Definition: CbmBuildEventsSimple.cxx:29
CbmBuildEventsSimple::fMinHitStations
Int_t fMinHitStations
Definition: CbmBuildEventsSimple.h:61
CbmBuildEventsSimple::SetMinHitStations
void SetMinHitStations(Int_t minhitstations=8)
Definition: CbmBuildEventsSimple.h:38
CbmBuildEventsSimple::CbmBuildEventsSimple
CbmBuildEventsSimple(const CbmBuildEventsSimple &)
CbmBuildEventsSimple::Init
virtual InitStatus Init()
Definition: CbmBuildEventsSimple.cxx:191
CbmBuildEventsSimple::FillEvent
void FillEvent(Int_t st, Int_t end)
Definition: CbmBuildEventsSimple.cxx:58