BCMTF.h
133 void SetData(const std::string& channelname, TH1D hist, double minimum = -1, double maximum = -1);
142 void SetTemplate(const std::string& channelname, const std::string& processname, TH1D hist, double efficiency = 1., double norm = 1.);
158 void SetTemplate(const std::string& channelname, const std::string& processname, std::vector<TF1*>* funccont, int nbins, double efficiency = 1.);
181 void SetSystematicVariation(const std::string& channelname, const std::string& processname, const std::string& systematicname, double variation_up, double variation_down);
195 void SetSystematicVariation(const std::string& channelname, const std::string& processname, const std::string& systematicname, TH1D hist_up, TH1D hist_down);
211 void SetSystematicVariation(const std::string& channelname, const std::string& processname, const std::string& systematicname, TH1D hist, TH1D hist_up, TH1D hist_down);
240 void AddProcess(const std::string& name, double nmin = 0., double nmax = 1., int color = -1, int fillstyle = -1, int linestyle = -1);
265 double ExpectationFunction(int parindex, int channelindex, int processindex, const std::vector<double>& parameters);
274 double Efficiency(int channelindex, int processindex, int binindex, const std::vector<double>& parameters);
288 double Probability(int channelindex, int processindex, int binindex, const std::vector<double>& parameters);
365 void PrintStack(int channelindex, const std::vector<double>& parameters, const std::string& filename = "stack.pdf", const std::string& options = "e1b0stack");
375 void PrintStack(const std::string& channelname, const std::vector<double>& parameters, const std::string& filename = "stack.pdf", const std::string& options = "e1b0stack")
void SetTemplate(const std::string &channelname, const std::string &processname, TH1D hist, double efficiency=1., double norm=1.)
Set the template for a specific process in a particular channel.
Definition: BCMTF.cxx:92
double CalculatePValue(int channelindex, const std::vector< double > ¶meters)
Calculates and returns the fast p-value for the total likelihood as test statistic.
Definition: BCMTF.cxx:1033
void PrintStack(const std::string &channelname, const std::vector< double > ¶meters, const std::string &filename="stack.pdf", const std::string &options="e1b0stack")
Print the stack of templates together with the data in a particular channel.
Definition: BCMTF.h:375
void SetSystematicVariation(const std::string &channelname, const std::string &processname, const std::string &systematicname, double variation_up, double variation_down)
Set the impact of a source of systematic uncertainty for a particular source of systematic uncertaint...
Definition: BCMTF.cxx:386
double ExpectationFunction(int parindex, int channelindex, int processindex, const std::vector< double > ¶meters)
Return the function value of the expectation function for a parameter, channel and process...
Definition: BCMTF.cxx:557
void MCMCUserIterationInterface()
Method executed for every iteration of the MCMC.
Definition: BCMTF.cxx:1159
double Expectation(int channelindex, int binindex, const std::vector< double > ¶meters)
Return the expected number of events for a channel and bin.
Definition: BCMTF.cxx:528
double Efficiency(int channelindex, int processindex, int binindex, const std::vector< double > ¶meters)
Return the efficiency for a process in a channel and for a particular bin.
Definition: BCMTF.cxx:575
double Probability(int channelindex, int processindex, int binindex, const std::vector< double > ¶meters)
Return the probability for a process in a channel and for a particular bin.
Definition: BCMTF.cxx:623
double CalculateCash(int channelindex, const std::vector< double > ¶meters)
Calculate the Cash statistic for a single channel.
Definition: BCMTF.cxx:969
void AddProcess(const std::string &name, double nmin=0., double nmax=1., int color=-1, int fillstyle=-1, int linestyle=-1)
Add a process and the associated BAT parameter.
Definition: BCMTF.cxx:289
void PrintStack(int channelindex, const std::vector< double > ¶meters, const std::string &filename="stack.pdf", const std::string &options="e1b0stack")
Print the stack of templates together with the data in a particular channel.
Definition: BCMTF.cxx:644
void SetFlagEfficiencyConstraint(bool flag)
Set a flag for the efficiency: if true then the total efficiency including all systematic uncertainti...
Definition: BCMTF.h:219
void SetData(const std::string &channelname, TH1D hist, double minimum=-1, double maximum=-1)
Set the data histogram in a particular channel.
Definition: BCMTF.cxx:177
void SetExpectationFunction(int parindex, TF1 *func)
Set an expectation function.
Definition: BCMTF.h:165
int GetSystematicIndex(const std::string &name) const
Definition: BCMTF.cxx:78
double CalculateChi2(int channelindex, const std::vector< double > ¶meters)
Calculate a chi2 for a single channel given a set of parameters.
Definition: BCMTF.cxx:910
void AddSystematic(const std::string &name, double min=-5., double max=5.)
Add a source of systematic uncertainty and the associated BAT (nuisance) parameter.
Definition: BCMTF.cxx:343
virtual double Probability(const std::vector< double > ¶meters)
Returns the a posteriori probability given a set of parameter values.
Definition: BCModel.h:213
double LogLikelihood(const std::vector< double > ¶meters)
Calculate natural logarithm of the likelihood.
Definition: BCMTF.cxx:1114