1 | #ifndef MARS_MCalibrationBlindPix
|
---|
2 | #define MARS_MCalibrationBlindPix
|
---|
3 |
|
---|
4 | #ifndef MARS_MHCalibrationBlindPixel
|
---|
5 | #include "MHCalibrationBlindPixel.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MCalibrationBlindPix : public MParContainer
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | MHCalibrationBlindPixel *fHist; // Pointer to the histograms performing the fits, etc.
|
---|
13 |
|
---|
14 | Float_t fLambda; // The mean charge after the fit
|
---|
15 | Float_t fMu0; // The position of the pedestal-peak
|
---|
16 | Float_t fMu1; // The position of the first phe-peak
|
---|
17 | Float_t fSigma0; // The width of the pedestal-peak
|
---|
18 | Float_t fSigma1; // The width of the first phe-peak
|
---|
19 |
|
---|
20 | Float_t fErrLambda; // The error of the mean charge after the fit
|
---|
21 | Float_t fErrMu0; // The error of the position of the pedestal-peak
|
---|
22 | Float_t fErrMu1; // The error of the position of the first phe-peak
|
---|
23 | Float_t fErrSigma0; // The error of the width of the pedestal-peak
|
---|
24 | Float_t fErrSigma1; // The error of the width of the first phe-peak
|
---|
25 |
|
---|
26 | Float_t fTime; // The mean arrival time after the fit
|
---|
27 | Float_t fErrTime; // The error of the mean arrival time after the fit
|
---|
28 |
|
---|
29 |
|
---|
30 | public:
|
---|
31 |
|
---|
32 | MCalibrationBlindPix(const char *name=NULL, const char *title=NULL);
|
---|
33 | ~MCalibrationBlindPix();
|
---|
34 |
|
---|
35 | void Clear(Option_t *o="");
|
---|
36 |
|
---|
37 | // Getters
|
---|
38 | Float_t GetLambda() const { return fLambda; }
|
---|
39 | Float_t GetMu0() const { return fMu0; }
|
---|
40 | Float_t GetMu1() const { return fMu1; }
|
---|
41 | Float_t GetSigma0() const { return fSigma0; }
|
---|
42 | Float_t GetSigma1() const { return fSigma1; }
|
---|
43 |
|
---|
44 | Float_t GetErrLambda() const { return fErrLambda; }
|
---|
45 | Float_t GetErrMu0() const { return fErrMu0; }
|
---|
46 | Float_t GetErrMu1() const { return fErrMu1; }
|
---|
47 | Float_t GetErrSigma0() const { return fErrSigma0; }
|
---|
48 | Float_t GetErrSigma1() const { return fErrSigma1; }
|
---|
49 |
|
---|
50 | Float_t GetTime() const { return fTime; }
|
---|
51 | Float_t GetErrTime() const { return fErrTime; }
|
---|
52 |
|
---|
53 | MHCalibrationBlindPixel *GetHist() const { return fHist; }
|
---|
54 | MHCalibrationBlindPixel *GetHist() { return fHist; }
|
---|
55 |
|
---|
56 | Bool_t IsFitOK() const { return fHist->IsFitOK(); }
|
---|
57 |
|
---|
58 | // Fill histos
|
---|
59 | Bool_t FillCharge(Float_t q) const { return fHist->FillBlindPixelCharge(q); }
|
---|
60 | Bool_t FillTime(Float_t t) const { return fHist->FillBlindPixelTime(t); }
|
---|
61 | Bool_t FillRChargevsTime(Float_t rq, Int_t t) const { return fHist->FillBlindPixelChargevsN(rq,t); }
|
---|
62 |
|
---|
63 | // Fits
|
---|
64 | Bool_t FitCharge();
|
---|
65 | Bool_t FitTime();
|
---|
66 | void ChangeFitFunc(MHCalibrationBlindPixel::FitFunc_t f) const { fHist->ChangeFitFunc(f); }
|
---|
67 |
|
---|
68 | // Draws
|
---|
69 | void Draw(Option_t *opt="") { fHist->Draw(opt); }
|
---|
70 | TObject *DrawClone(Option_t *opt="") const { return fHist->DrawClone(opt); }
|
---|
71 |
|
---|
72 | ClassDef(MCalibrationBlindPix, 1) // Storage Container for Calibration information of one pixel
|
---|
73 | };
|
---|
74 |
|
---|
75 | #endif
|
---|
76 |
|
---|