1 | #ifndef MARS_MCalibrationRelTimePix
|
---|
2 | #define MARS_MCalibrationRelTimePix
|
---|
3 |
|
---|
4 | #ifndef MARS_MCalibrationPix
|
---|
5 | #include "MCalibrationPix.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MCalibrationRelTimePix : public MCalibrationPix
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | Float_t fMeanConversion; // The conversion factor to Phe's (F-factor method)
|
---|
13 | Float_t fConversionVar; // The error of the conversion factor to Phe's (F-factor method)
|
---|
14 | Float_t fSigmaConversion; // The sigma of conversion factor to Phe's (F-factor method)
|
---|
15 |
|
---|
16 | enum { kExcluded, kValid };
|
---|
17 |
|
---|
18 | public:
|
---|
19 |
|
---|
20 | MCalibrationRelTimePix(const char *name=NULL, const char *title=NULL);
|
---|
21 | ~MCalibrationRelTimePix() {}
|
---|
22 |
|
---|
23 | void Clear(Option_t *o="");
|
---|
24 |
|
---|
25 | // Conversion Factors
|
---|
26 | void SetConversion ( Float_t c, Float_t err, Float_t sig );
|
---|
27 |
|
---|
28 | // Setters
|
---|
29 | void SetExcluded ( const Bool_t b = kTRUE );
|
---|
30 | void SetValid( const Bool_t b = kTRUE );
|
---|
31 |
|
---|
32 | Float_t GetMeanConversion() const { return fMeanConversion; }
|
---|
33 | Float_t GetConversionErr() const;
|
---|
34 | Float_t GetSigmaConversion() const { return fSigmaConversion; }
|
---|
35 |
|
---|
36 | Float_t GetTimeOffset() const { return GetMean(); }
|
---|
37 | Float_t GetTimeOffsetErr() const { return GetMeanErr(); }
|
---|
38 | Float_t GetTimePrecision() const { return GetSigma(); }
|
---|
39 | Float_t GetTimePrecisionErr() const { return GetSigmaErr(); }
|
---|
40 |
|
---|
41 | Bool_t IsExcluded() const;
|
---|
42 | Bool_t IsValid() const;
|
---|
43 |
|
---|
44 | ClassDef(MCalibrationRelTimePix, 1) // Container for Calibration of one pixel
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
48 |
|
---|