er  dev
ERNeuRadHitFinder.h
1 // -------------------------------------------------------------------------
2 // ----- ERNeuRadHitFinder header file -----
3 // ----- Created 03/16 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERNeuRadHitFinder_H
7 #define ERNeuRadHitFinder_H
8 
9 #include "TClonesArray.h"
10 
11 #include "FairTask.h"
12 
13 #include "ERNeuRadDigiPar.h"
14 #include "ERNeuRadHit.h"
15 
16 class ERNeuRadHitFinder : public FairTask {
17 
18 public:
19 
22 
23  ERNeuRadHitFinder(Int_t verbose);
24 
27 
29  virtual InitStatus Init();
30 
32  virtual void Exec(Option_t* opt);
33 
35  virtual void Finish();
36 
38  virtual void Reset();
39 
41  virtual void SetPixelThreshold(Float_t pixelThreshold) {fPixelThreshold=pixelThreshold;}
44 protected:
45 
46  //Input arrays
47  TClonesArray *fNeuRadPMTSignals;
48 
49  //Output arrays
50  TClonesArray *fNeuRadHits;
51 
52  ERNeuRadDigiPar* fDigiPar;
53 
54  static Int_t fEvent;
55 
56  Float_t fPixelThreshold;
57 
58 protected:
59 
60  ERNeuRadHit* AddHit(Int_t detID, TVector3& pos, TVector3& dpos, Int_t ModuleIndex, Int_t FiberIndex, Float_t time);
61 
62 private:
63 
64  virtual void SetParContainers();
65 
66  ClassDef(ERNeuRadHitFinder,1)
67 };
68 
69 #endif // ERNeuRadHitFinder_H
virtual void Exec(Option_t *opt)
TClonesArray * fNeuRadPMTSignals
virtual InitStatus Init()
virtual void SetPixelThreshold(Float_t pixelThreshold)