source: trunk/Mars/msignal/MExtractAmplitudeSpline.h@ 10113

Last change on this file since 10113 was 4340, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MExtractAmplitudeSpline
2#define MARS_MExtractAmplitudeSpline
3
4#ifndef MARS_MExtractor
5#include "MExtractor.h"
6#endif
7
8class MExtractAmplitudeSpline : public MExtractor
9{
10
11private:
12
13 static const Byte_t fgHiGainFirst; // Default for fHiGainFirst (now set to: 2)
14 static const Byte_t fgHiGainLast; // Default for fHiGainLast (now set to: 14)
15 static const Byte_t fgLoGainFirst; // Default for fLOGainFirst (now set to: 3)
16 static const Byte_t fgLoGainLast; // Default for fLoGainLast (now set to: 14)
17 static const Float_t fgResolution; // Default for fResolution (now set to: 0.003)
18
19 Float_t *fHiGainSignal; // Need fast access to the signals in a float way
20 Float_t *fLoGainSignal; // Need fast access to the signals in a float way
21 Float_t *fHiGainFirstDeriv;
22 Float_t *fLoGainFirstDeriv;
23 Float_t *fHiGainSecondDeriv;
24 Float_t *fLoGainSecondDeriv;
25
26 Float_t fResolution; // The time resolution in FADC units
27
28 Bool_t ReInit (MParList *pList);
29
30 void FindSignalHiGain(Byte_t *ptr, Byte_t *logain, Float_t &sum, Byte_t &sat) const;
31 void FindSignalLoGain(Byte_t *ptr, Float_t &sum, Byte_t &sat) const;
32
33public:
34
35 MExtractAmplitudeSpline(const char *name=NULL, const char *title=NULL);
36 ~MExtractAmplitudeSpline();
37
38 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
39 void SetResolution(Float_t f=fgResolution) { fResolution = f; }
40
41 ClassDef(MExtractAmplitudeSpline, 0) // Task to Extract the Amplitude using a Fast Spline
42};
43
44#endif
45
46
47
Note: See TracBrowser for help on using the repository browser.