source: trunk/MagicSoft/Mars/msignal/MExtractTime.h@ 4808

Last change on this file since 4808 was 4723, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MExtractTime
2#define MARS_MExtractTime
3
4#ifndef MARS_MExtractor
5#include "MExtractor.h"
6#endif
7
8class MPedestalPix;
9class MArrivalTimeCam;
10
11class MExtractTime : public MExtractor
12{
13private:
14 static const Float_t fgOffsetLoGain; // Default for fOffsetLoGain (now set to 1.51 (= 5ns)
15
16 Int_t PreProcess(MParList *pList);
17 Bool_t ReInit(MParList *pList);
18 Int_t Process();
19
20protected:
21 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices
22
23 MArrivalTimeCam *fArrTime; //! Container with the photons arrival times
24
25 virtual void FindTimeHiGain(Byte_t *firstused, Float_t &time, Float_t &dtime,
26 Byte_t &sat, const MPedestalPix &ped) const;
27 virtual void FindTimeLoGain(Byte_t *firstused, Float_t &time, Float_t &dtime,
28 Byte_t &sat, const MPedestalPix &ped) const;
29
30 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
31
32public:
33 MExtractTime(const char *name=NULL, const char *title=NULL);
34
35 void SetOffsetLoGain( const Float_t f=fgOffsetLoGain) { fOffsetLoGain = f; }
36
37 void Print(Option_t *o) const;
38
39 ClassDef(MExtractTime, 1) // Arrival Time Extractor Base Class
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.