er  dev
ERNeuRadHitFinderMF.h
1 // -------------------------------------------------------------------------
2 // ----- ERNeuRadHitFinderMF header file -----
3 // ----- Created 03/16 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERNeuRadHitFinderMF_H
7 #define ERNeuRadHitFinderMF_H
8 
9 #include "TClonesArray.h"
10 
11 #include "FairTask.h"
12 
13 #include "ERNeuRadDigiPar.h"
14 #include "ERNeuRadHit.h"
15 
16 class ERNeuRadHitFinderMF : public FairTask {
17 
18 public:
19 
22 
23  ERNeuRadHitFinderMF(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  inline void SetPixelThreshold(Float_t pixelThreshold) {fPixelThreshold = pixelThreshold;}
42  inline void SetModuleThreshold(Float_t moduleThreshold) {fModuleThreshold = moduleThreshold;}
45 protected:
46 
47  //Input arrays
48  TClonesArray *fNeuRadDigis;
49 
50  //Output arrays
51  TClonesArray *fNeuRadHits;
52 
53  ERNeuRadDigiPar* fDigiPar;
54 
55  static Int_t fEvent;
56 
57  Float_t fPixelThreshold;
58  Float_t fModuleThreshold;
59 
60 protected:
61 
62  ERNeuRadHit* AddHit(Int_t detID, TVector3& pos, TVector3& dpos, Int_t ModuleIndex, Int_t FiberIndex, Float_t time);
63 
64 private:
65 
66  virtual void SetParContainers();
67 
68  ClassDef(ERNeuRadHitFinderMF,1)
69 };
70 
71 #endif // ERNeuRadHitFinderMF_H
TClonesArray * fNeuRadDigis
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
void SetPixelThreshold(Float_t pixelThreshold)