Warning, file /include/root/TBinomialEfficiencyFitter.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TBinomialEfficiencyFitter
0013 #define ROOT_TBinomialEfficiencyFitter
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 #include "TObject.h"
0028
0029 #include "TFitResultPtr.h"
0030
0031
0032
0033 class TH1;
0034 class TF1;
0035
0036 namespace ROOT {
0037 namespace Fit {
0038 class Fitter;
0039 }
0040 }
0041
0042 class TBinomialEfficiencyFitter: public TObject {
0043
0044 protected:
0045 TH1 *fDenominator;
0046 TH1 *fNumerator;
0047 TF1 *fFunction;
0048 Double_t fEpsilon;
0049 Bool_t fFitDone;
0050 Bool_t fAverage;
0051 Bool_t fRange;
0052 ROOT::Fit::Fitter *fFitter;
0053
0054 private:
0055
0056 void ComputeFCN(Double_t& f, const Double_t* par);
0057
0058 public:
0059 TBinomialEfficiencyFitter();
0060 TBinomialEfficiencyFitter(const TH1 *numerator, const TH1 *denominator);
0061 ~TBinomialEfficiencyFitter() override;
0062
0063 void Set(const TH1 *numerator, const TH1 *denominator);
0064 void SetPrecision(Double_t epsilon);
0065 TFitResultPtr Fit(TF1 *f1, Option_t* option = "");
0066 ROOT::Fit::Fitter * GetFitter();
0067 Double_t EvaluateFCN(const Double_t * par) {
0068 Double_t f = 0;
0069 ComputeFCN(f, par);
0070 return f;
0071 }
0072
0073 ClassDefOverride(TBinomialEfficiencyFitter, 1)
0074
0075
0076 };
0077
0078
0079 #endif