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

Last change on this file since 4692 was 4284, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.8 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 static const Float_t fgRiseTime ; // Default for fRiseTime (now set to: 1.5 C
18
19 Float_t *fHiGainFirstDeriv;
20 Float_t *fLoGainFirstDeriv;
21 Float_t *fHiGainSecondDeriv;
22 Float_t *fLoGainSecondDeriv;
23
24 Float_t fResolution; // The time resolution in FADC units
25 Float_t fRiseTime ; // The rise time of the pulse
26 Byte_t fStartBeforeMax; // Slices to start searching for the halfmax before max
27
28 void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
29 void FindTimeLoGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
30
31public:
32
33 MExtractTimeFastSpline(const char *name=NULL, const char *title=NULL);
34 ~MExtractTimeFastSpline();
35
36 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
37 void SetResolution(Float_t f=fgResolution) { fResolution = f; }
38 void SetRiseTime (Float_t f=fgRiseTime ) { fRiseTime = f; fStartBeforeMax = (Int_t)(2*fRiseTime); }
39
40 ClassDef(MExtractTimeFastSpline, 0) // Task to Extract the Arrival Times using a Fast Spline
41};
42
43#endif
44
45
46
Note: See TracBrowser for help on using the repository browser.