source: trunk/MagicSoft/Mars/mcalib/MCalibrationHiLoPix.h@ 9061

Last change on this file since 9061 was 8132, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MCalibrationHiLoPix
2#define MARS_MCalibrationHiLoPix
3
4#ifndef MARS_MCalibrationPix
5#include "MCalibrationPix.h"
6#endif
7
8class MCalibrationHiLoPix : public MCalibrationPix
9{
10private:
11 Float_t fOffsetPerSlice; // Offset from fit (per FADC slice)
12 Float_t fGainRatio; // Ratio of gains from fit
13
14public:
15 MCalibrationHiLoPix(const char *name=NULL, const char *title=NULL);
16
17 // Setter
18 void SetGainRatio (const Float_t f) { fGainRatio = f; }
19 void SetOffsetPerSlice(const Float_t f) { fOffsetPerSlice = f; }
20
21 // Getter
22 Float_t GetHiLoChargeRatio() const { return GetHiGainMean(); }
23 Float_t GetHiLoChargeRatioErr() const { return GetHiGainMeanErr(); }
24 Float_t GetHiLoChargeRatioSigma() const { return GetHiGainSigma(); }
25 Float_t GetHiLoChargeRatioSigmaErr() const { return GetHiGainSigmaErr(); }
26 Float_t GetHiLoChargeRatioProb() const { return GetHiGainProb(); }
27
28 Float_t GetHiLoTimeDiff() const { return GetLoGainMean(); }
29 Float_t GetHiLoTimeDiffErr() const { return GetLoGainMeanErr(); }
30 Float_t GetHiLoTimeDiffSigma() const { return GetLoGainSigma(); }
31 Float_t GetHiLoTimeDiffSigmaErr() const { return GetLoGainSigmaErr(); }
32 Float_t GetHiLoTimeDiffProb() const { return GetLoGainProb(); }
33 Float_t GetGainRatio () const { return fGainRatio; }
34// Float_t GetOffsetPerSlice() const { return fOffsetPerSlice; }
35
36 ClassDef(MCalibrationHiLoPix, 2) // Container HiLo conversion Calibration Results Pixel
37};
38
39#endif
40
Note: See TracBrowser for help on using the repository browser.