source: trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.h@ 4098

Last change on this file since 4098 was 3971, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MExtractTimeFastSpline
2#define MARS_MExtractTimeFastSpline
3
4#ifndef MARS_MExtractTime
5#include "MExtractTime.h"
6#endif
7
8class MPedestalPix;
9class MExtractTimeFastSpline : public MExtractTime
10{
11
12 static const Byte_t fgHiGainFirst; // Default for fHiGainFirst (now set to: 2)
13 static const Byte_t fgHiGainLast; // Default for fHiGainLast (now set to: 14)
14 static const Byte_t fgLoGainFirst; // Default for fLOGainFirst (now set to: 3)
15 static const Byte_t fgLoGainLast; // Default for fLoGainLast (now set to: 14)
16 static const Float_t fgResolution; // Default for fResolution (now set to: 0.003)
17
18 Float_t *fHiGainFirstDeriv;
19 Float_t *fLoGainFirstDeriv;
20 Float_t *fHiGainSecondDeriv;
21 Float_t *fLoGainSecondDeriv;
22
23 Float_t fResolution; // The time resolution in FADC units
24
25 void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
26 void FindTimeLoGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
27
28public:
29
30 MExtractTimeFastSpline(const char *name=NULL, const char *title=NULL);
31 ~MExtractTimeFastSpline();
32
33 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
34 void SetResolution(Float_t f=fgResolution) { fResolution = f; }
35
36 ClassDef(MExtractTimeFastSpline, 0) // Task to Extract the Arrival Times using a Fast Spline
37};
38
39#endif
40
41
42
Note: See TracBrowser for help on using the repository browser.