FitOverROI.hh
Go to the documentation of this file.00001
00007 #ifndef FITOVERROI_h
00008 #define FITOVERROI_h
00009 #include <vector>
00010 #include <string>
00011
00012 #include "TFitResultPtr.h"
00013 #include "FitTH1F.hh"
00014 #include "ChanFitSettings.hh"
00015
00016
00017
00018
00024
00025
00026
00027
00028
00032 namespace FitOverROI{
00033 enum PARAMETERS {CONSTANT, LAMBDA, MEAN, SIGMA, AMP_E, P_E , SHOTNOISE, PEDMEAN, NPAR };
00034 Double_t background_func(Double_t* x, Double_t* params);
00035 Double_t gauss_func(Double_t* x, Double_t* params);
00036 Double_t response_0(Double_t* x, Double_t* params);
00037 Double_t response_1(Double_t* x, Double_t* params);
00038 Double_t response_2(Double_t* x, Double_t* params);
00039 Double_t m_n(const Double_t* params);
00040 Double_t sigma_n(const Double_t* params);
00041 Double_t response_multi(Double_t* x, Double_t* params);
00042 Double_t SPEFunc(Double_t* x, Double_t* params);
00043 TFitResultPtr FitSPE(FitTH1F* spe, ChanFitSettings& CFS, int ntriggers, bool allow_bg = true, bool force_old = false);
00044 double pdfmean_error_corr(TFitResultPtr& fitresult);
00045
00046 };
00047
00048
00049 #endif