source: trunk/Mars/msignal/MExtractTimeHighestIntegral.h@ 19616

Last change on this file since 19616 was 4723, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MExtractTimeHighestIntegral
2#define MARS_MExtractTimeHighestIntegral
3
4#ifndef MARS_MExtractTime
5#include "MExtractTime.h"
6#endif
7
8class MExtractTimeHighestIntegral : public MExtractTime
9{
10private:
11 static const Byte_t fgHiGainFirst;
12 static const Byte_t fgHiGainLast;
13 static const Byte_t fgLoGainFirst;
14 static const Byte_t fgLoGainLast;
15 static const Byte_t fgHiGainWindowSize;
16 static const Byte_t fgLoGainWindowSize;
17
18 Byte_t fHiGainWindowSize; // Number of gains in window
19 Float_t fHiGainWindowSizeSqrt; // Sqaure root of number of gains in window
20 Byte_t fLoGainWindowSize; // Number of gains in window
21 Float_t fLoGainWindowSizeSqrt; // Sqaure root of number of gains in window
22
23 void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
24 void FindTimeLoGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
25
26 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
27
28public:
29 MExtractTimeHighestIntegral(const char *name=NULL, const char *title=NULL);
30
31 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
32 void SetWindowSize(Byte_t windowh=fgHiGainWindowSize,
33 Byte_t windowl=fgLoGainWindowSize);
34
35 void Print(Option_t *o="") const;
36
37 ClassDef(MExtractTimeHighestIntegral, 1) // Task to Extract the Arrival Times As the mean time of the fWindowSize time slices
38};
39
40#endif
41
42
Note: See TracBrowser for help on using the repository browser.