BCEfficiencyFitter.h
67 virtual void operator()(const std::vector<double>& expectation, const std::vector<unsigned>& toyData) = 0;
83 BCEfficiencyFitter(const TH1& trials, const TH1& successes, const TF1& func, const std::string& name = "efficiency_fitter_model");
158 double CalculatePValueFast(const std::vector<double>& par, BCEfficiencyFitter::ToyDataInterface* callback, unsigned nIterations = 100000);
virtual void DrawData(bool flaglegend=false)
Draw the data in the current pad.
Definition: BCEfficiencyFitter.cxx:138
double CalculatePValueFast(const std::vector< double > &par, BCEfficiencyFitter::ToyDataInterface *callback, unsigned nIterations=100000)
Calculate the p-value using fast-MCMC.
Definition: BCEfficiencyFitter.cxx:280
Draw mean and standard deviation.
Definition: BCEfficiencyFitter.h:47
Draw mean and central 68% interval.
Definition: BCEfficiencyFitter.h:49
A class for fitting histograms with functions.
Definition: BCEfficiencyFitter.h:39
bool GetUncertainties(int n, int k, double p, double &xexp, double &xmin, double &xmax)
Calculates the central value and the lower and upper limits for a given probability.
Definition: BCEfficiencyFitter.cxx:380
virtual void DrawFit(const std::string &options="", bool flaglegend=false)
Draw the fit in the current pad.
Definition: BCEfficiencyFitter.cxx:193
Draw mean and smallest 68% interval.
Definition: BCEfficiencyFitter.h:48
void SetDataPointType(DataPointType type)
Set type of point to be used to plot the efficiency data.
Definition: BCEfficiencyFitter.h:119
BCEfficiencyFitter(const TH1 &trials, const TH1 &successes, const TF1 &func, const std::string &name="efficiency_fitter_model")
Constructor.
Definition: BCEfficiencyFitter.cxx:30
virtual double LogLikelihood(const std::vector< double > ¶meters)
The log of the prior probability.
Definition: BCEfficiencyFitter.cxx:78
virtual void operator()(const std::vector< double > &expectation, const std::vector< unsigned > &toyData)=0
operator() is called for each generated toy data set of the fast p-value calculation.
Abstract class which doesn't do anything but offers the right interface to allow calculation the dist...
Definition: BCEfficiencyFitter.h:59