Changeset 2852 for trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h
- Timestamp:
- 01/19/04 23:02:57 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h
r2835 r2852 38 38 TH1I* fHBlindPixelChargevsN; //-> Summed Charge vs. Event Nr. 39 39 40 TF1 *fSinglePheFit;41 TF1 *fTimeGausFit;42 TF1 *fSinglePhePedFit;40 TF1 fSinglePheFit; 41 TF1 fTimeGausFit; 42 TF1 fSinglePhePedFit; 43 43 44 44 Axis_t fBlindPixelChargefirst; … … 49 49 void DrawLegend(); 50 50 51 TPaveText *fFitLegend; 51 TPaveText *fFitLegend; //! 52 52 Bool_t fFitOK; 53 53 … … 81 81 ~MHCalibrationBlindPixel(); 82 82 83 typedef Double_t (*BlindPixelFitFunc)(Double_t *, Double_t *);84 85 83 Bool_t FillBlindPixelCharge(Float_t q) { return fHBlindPixelCharge->Fill(q) > -1; } 86 84 Bool_t FillBlindPixelTime(Int_t t) { return fHBlindPixelTime->Fill(t) > -1; } 87 85 Bool_t FillBlindPixelChargevsN(Stat_t rq, Int_t t) { return fHBlindPixelChargevsN->Fill(t,rq) > -1; } 88 86 87 88 //Getters 89 89 const Double_t GetLambda() const { return fLambda; } 90 const Double_t GetLambdaCheck() const { return fLambdaCheck; }90 const Double_t GetLambdaCheck() const { return fLambdaCheck; } 91 91 const Double_t GetMu0() const { return fMu0; } 92 92 const Double_t GetMu1() const { return fMu1; } … … 95 95 96 96 const Double_t GetLambdaErr() const { return fLambdaErr; } 97 const Double_t GetLambdaCheckErr() const { return fLambdaCheckErr; }97 const Double_t GetLambdaCheckErr() const { return fLambdaCheckErr; } 98 98 const Double_t GetMu0Err() const { return fMu0Err; } 99 99 const Double_t GetMu1Err() const { return fMu1Err; } … … 102 102 103 103 const Double_t GetChiSquare() const { return fChisquare; } 104 const Double_t GetProb() 105 const Int_t GetNdf() 104 const Double_t GetProb() const { return fProb; } 105 const Int_t GetNdf() const { return fNdf; } 106 106 107 107 const Double_t GetMeanTime() const { return fMeanTime; } … … 110 110 const Double_t GetSigmaTimeErr() const { return fSigmaTimeErr; } 111 111 112 Bool_t SimulateSinglePhe(Double_t lambda, 113 Double_t mu0, 114 Double_t mu1, 115 Double_t sigma0, 116 Double_t sigma1); 117 112 const Bool_t IsFitOK() { return fFitOK; } 113 114 // Draws 115 TObject *DrawClone(Option_t *option="") const; 116 void Draw(Option_t *option=""); 117 118 // Fits 119 enum FitFunc_t { kEPoisson4, kEPoisson5, kEPoisson6, kEPoisson7, kEPolya, kEMichele }; 120 121 private: 122 FitFunc_t fFitFunc; 123 124 public: 118 125 Bool_t FitSinglePhe(Axis_t rmin=0, Axis_t rmax=0, Option_t *opt="RL0+Q"); 119 126 Bool_t FitTime(Axis_t rmin=0., Axis_t rmax=0.,Option_t *opt="R0+Q"); 120 121 void ChangeFitFunc(BlindPixelFitFunc fitfunc, Int_t par=6); 122 127 void ChangeFitFunc(FitFunc_t func) { fFitFunc = func; } 128 129 // Simulation 130 Bool_t SimulateSinglePhe(Double_t lambda, 131 Double_t mu0,Double_t mu1, 132 Double_t sigma0,Double_t sigma1); 133 134 // Others 123 135 void CutAllEdges(); 124 136 125 TObject *DrawClone(Option_t *option="") const;126 void Draw(Option_t *option="");127 128 Bool_t IsFitOK() { return fFitOK; }129 130 137 private: 131 132 BlindPixelFitFunc fgSinglePheFitFunc; //! In the beginning,133 Int_t fgSinglePheFitNPar; //! we want to be flexible using different functions134 135 inline static Double_t f Ana(Double_t *x, Double_t *par)138 139 void InitFit(TF1& f, Axis_t min, Axis_t max); 140 void ExitFit(TF1& f); 141 142 inline static Double_t fFitFuncMichele(Double_t *x, Double_t *par) 136 143 { 137 144 … … 189 196 } 190 197 191 inline static Double_t f Kto4(Double_t *x, Double_t *par)198 inline static Double_t fPoissonKto4(Double_t *x, Double_t *par) 192 199 { 193 200 … … 246 253 247 254 248 inline static Double_t f Kto5(Double_t *x, Double_t *par)255 inline static Double_t fPoissonKto5(Double_t *x, Double_t *par) 249 256 { 250 257 … … 311 318 312 319 313 inline static Double_t f Kto6(Double_t *x, Double_t *par)320 inline static Double_t fPoissonKto6(Double_t *x, Double_t *par) 314 321 { 315 322 … … 382 389 } 383 390 384 ClassDef(MHCalibrationBlindPixel, 1) 391 ClassDef(MHCalibrationBlindPixel, 1) // Histograms from the Calibration Blind Pixel 385 392 }; 386 393
Note:
See TracChangeset
for help on using the changeset viewer.