source: trunk/MagicSoft/Mars/manalysis/MCalibrationPix.h@ 2607

Last change on this file since 2607 was 2603, checked in by gaug, 23 years ago
*** empty log message ***
File size: 3.5 KB
Line 
1#ifndef MARS_MCalibrationPix
2#define MARS_MCalibrationPix
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#include "MHCalibrationPixel.h"
9
10class MCalibrationPix : public MParContainer
11{
12private:
13
14 Int_t fPixId; // the pixel Id
15
16 Float_t fCharge; // The mean charge after the fit
17 Float_t fErrCharge; // The error of mean charge after the fit
18 Float_t fSigmaCharge; // The sigma of the mean charge after the fit
19 Float_t fErrSigmaCharge; // The error of the sigma of the mean charge after the fit
20 Float_t fChargeProb; // The probability of the fit function
21
22 Float_t fPed; // The mean pedestal (from MPedestalPix)
23 Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
24
25 Float_t fTime; // The mean arrival time after the fit
26 Float_t fSigmaTime; // The error of the mean arrival time after the fit
27 Float_t fTimeProb; // The probability of the fit function
28
29 Float_t fRCharge; // The reduced mean charge after the fit
30 Float_t fErrRCharge; // The error of the reduced mean charge after the fit
31 Float_t fRSigma; // The reduced squares of sigmas after the fit
32
33 Float_t fFactor; // The laboratory F-factor
34 Float_t fPheFFactorMethod; // The number of Phe's calculated after the F-factor method
35 Float_t fConversionFFactorMethod; // The conversion factor to Phe's calculated after the F-factor method
36
37 MHCalibrationPixel *fHist; //! Pointer to the histograms performing the fits, etc.
38
39public:
40
41 MCalibrationPix(const char *name=NULL, const char *title=NULL);
42 ~MCalibrationPix();
43
44 void Clear(Option_t *o="");
45
46 Float_t GetCharge() const { return fCharge; }
47 Float_t GetRCharge() const { return fRCharge; }
48 Float_t GetRSigma() const { return fRSigma; }
49
50 Float_t GetErrCharge() const { return fErrCharge; }
51 Float_t GetErrRCharge() const { return fErrRCharge; }
52 Float_t GetChargeProb() const { return fChargeProb; }
53
54 Float_t GetSigmaCharge() const { return fSigmaCharge; }
55 Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; }
56 Float_t GetTime() const { return fTime; }
57 Float_t GetSigmaTime() const { return fSigmaTime; }
58 Float_t GetTimeProb() const { return fTimeProb; }
59
60 Float_t GetPed() const { return fPed; }
61 Float_t GetPedRms() const { return fPedRms; }
62
63 void SetPedestal(Float_t ped, Float_t pedrms);
64
65 Bool_t FillCharge(Int_t q) { return fHist->FillCharge(q); }
66 Bool_t FillTime(Int_t t) { return fHist->FillTime(t); }
67 Bool_t FillRChargevsTime(Float_t rq, Int_t t) { return fHist->FillChargevsN(rq,t); }
68
69 Bool_t IsValid() const { return fRCharge >=0 || fErrRCharge >= 0; }
70 Int_t GetPixId() const { return fPixId; }
71 void DefinePixId(Int_t i);
72
73 Bool_t FitCharge();
74 Bool_t FitTime();
75
76 MHCalibrationPixel *GetHist() const { return fHist; }
77 virtual void Draw(Option_t *opt="") { fHist->Draw(opt); }
78
79 Float_t GetPheFFactorMethod() const { return fPheFFactorMethod; }
80 Float_t GetConversionFFactorMethod() const { return fConversionFFactorMethod; }
81
82 ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
83};
84
85#endif
86
Note: See TracBrowser for help on using the repository browser.