114 BinCountTestStat(
void) : fColumnName(
"tmp") {}
115 BinCountTestStat(
string columnName) : fColumnName(columnName) {}
141 void HybridStandardForm()
176 w->
factory(
"Uniform::f(m[0,1])");
177 w->
factory(
"ExtendPdf::px(f,sum::splusb(s[0,0,100],b[100,0,300]))");
178 w->
factory(
"Poisson::py(y[100,0,500],prod::taub(tau[1.],b))");
179 w->
factory(
"PROD::model(px,py)");
180 w->
factory(
"Uniform::prior_b(b)");
202 cout <<
"-----------------------------------------" << endl;
203 cout <<
"Part 3" << endl;
204 std::cout <<
"Z_Bi p-value (analytic): " << p_Bi << std::endl;
205 std::cout <<
"Z_Bi significance (analytic): " << Z_Bi << std::endl;
241 b_model.SetPdf(*w->
pdf(
"px"));
242 b_model.SetObservables(*w->
set(
"obs"));
243 b_model.SetParametersOfInterest(*w->
set(
"poi"));
245 b_model.SetSnapshot(*w->
set(
"poi"));
249 sb_model.SetPdf(*w->
pdf(
"px"));
250 sb_model.SetObservables(*w->
set(
"obs"));
251 sb_model.SetParametersOfInterest(*w->
set(
"poi"));
253 sb_model.SetSnapshot(*w->
set(
"poi"));
286 w->
factory(
"Gaussian::gauss_prior(b,y, expr::sqrty('sqrt(y)',y))");
290 w->
factory(
"Lognormal::lognorm_prior(b,y, expr::kappa('1+1./sqrt(y)',y))");
313 hc1.SetToys(30000, 1000);
314 hc1.ForcePriorNuisanceAlt(*w->
pdf(
"py"));
315 hc1.ForcePriorNuisanceNull(*w->
pdf(
"py"));
336 cout <<
"-----------------------------------------" << endl;
337 cout <<
"Part 4" << endl;
358 slrts.SetNullParameters(*b_model.GetSnapshot());
359 slrts.SetAltParameters(*sb_model.GetSnapshot());
367 hc2.SetToys(20000, 1000);
368 hc2.ForcePriorNuisanceAlt(*w->
pdf(
"py"));
369 hc2.ForcePriorNuisanceNull(*w->
pdf(
"py"));
389 cout <<
"-----------------------------------------" << endl;
390 cout <<
"Part 5" << endl;
#define ClassDef(name, id)
Double_t getRealValue(const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
Get value of a RooAbsReal stored in set with given name.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
virtual Int_t numEntries() const
RooDataSet * generate(const RooArgSet &whatVars, Int_t nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none())
See RooAbsPdf::generate(const RooArgSet&,const RooCmdArg&,const RooCmdArg&,const RooCmdArg&,...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDataSet is a container class to hold unbinned data.
static RooMsgService & instance()
Return reference to singleton instance.
void setGlobalKillBelow(RooFit::MsgLevel level)
RooFit::MsgLevel globalKillBelow() const
virtual void setVal(Double_t value)
Set value of variable to 'value'.
Same purpose as HybridCalculatorOriginal, but different implementation.
This class provides the plots for the result of a study performed with any of the HypoTestCalculatorG...
HypoTestResult is a base class for results from hypothesis tests.
void Print(const Option_t *="") const
Print out some information about the results Note: use Alt/Null labels for the hypotheses here as the...
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
NumEventsTestStat is a simple implementation of the TestStatistic interface used for simple number co...
Holds configuration options for proof and proof-lite.
void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
TestStatistic class that returns -log(L[null] / L[alt]) where L is the likelihood.
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullPOI)=0
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
virtual const TString GetVarName() const =0
ToyMCSampler is an implementation of the TestStatSampler interface.
void SetProofConfig(ProofConfig *pc=NULL)
virtual void SetTestStatistic(TestStatistic *testStatistic, unsigned int i)
The RooWorkspace is a persistable container for RooFit projects.
Bool_t defineSet(const char *name, const RooArgSet &aset, Bool_t importMissing=kFALSE)
Define a named RooArgSet with given constituents.
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found.
RooFactoryWSTool & factory()
Return instance to factory tool.
const RooArgSet * set(const char *name)
Return pointer to previously defined named set with given nmame If no such set is found a null pointe...
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void Stop()
Stop the stopwatch.
void Print(Option_t *option="") const
Print the real and cpu time passed between the start and stop events.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
Double_t BinomialWithTauObsZ(Double_t nObs, Double_t bExp, Double_t tau)
Double_t BinomialWithTauObsP(Double_t nObs, Double_t bExp, Double_t tau)
Namespace for the RooStats classes.
static constexpr double pc