source: trunk/MagicSoft/Mars/mcalib/MCalibrationBlindPix.h@ 2852

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