114 BinCountTestStat(
void) : fColumnName(
"tmp") {}
115 BinCountTestStat(
string columnName) : fColumnName(columnName) {}
125 virtual const TString GetVarName()
const {
return fColumnName; }
140 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;
238 b_model.SetPdf(*w->
pdf(
"px"));
239 b_model.SetObservables(*w->
set(
"obs"));
240 b_model.SetParametersOfInterest(*w->
set(
"poi"));
242 b_model.SetSnapshot(*w->
set(
"poi"));
246 sb_model.SetPdf(*w->
pdf(
"px"));
247 sb_model.SetObservables(*w->
set(
"obs"));
248 sb_model.SetParametersOfInterest(*w->
set(
"poi"));
250 sb_model.SetSnapshot(*w->
set(
"poi"));
284 w->
factory(
"Gaussian::gauss_prior(b,y, expr::sqrty('sqrt(y)',y))");
288 w->
factory(
"Lognormal::lognorm_prior(b,y, expr::kappa('1+1./sqrt(y)',y))");
311 hc1.SetToys(30000,1000);
312 hc1.ForcePriorNuisanceAlt(*w->
pdf(
"py"));
313 hc1.ForcePriorNuisanceNull(*w->
pdf(
"py"));
334 cout <<
"-----------------------------------------"<<endl;
335 cout <<
"Part 4" << endl;
354 slrts.SetAltParameters(*sb_model.GetSnapshot());
362 hc2.SetToys(20000,1000);
363 hc2.ForcePriorNuisanceAlt(*w->
pdf(
"py"));
364 hc2.ForcePriorNuisanceNull(*w->
pdf(
"py"));
383 cout <<
"-----------------------------------------"<<endl;
384 cout <<
"Part 5" << endl;
Holds configuration options for proof and proof-lite.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void Print(Option_t *option="") const
Print the real and cpu time passed between the start and stop events.
virtual const RooArgSet * get() const
void Print(const Option_t *="") const
Print out some information about the results Note: use Alt/Null labels for the hypotheses here as the...
HypoTestResult is a base class for results from hypothesis tests.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
RooFit::MsgLevel globalKillBelow() const
This class provides the plots for the result of a study performed with any of the HypoTestCalculatorG...
static RooMsgService & instance()
Return reference to singleton instance.
Double_t BinomialWithTauObsP(Double_t nObs, Double_t bExp, Double_t tau)
virtual void SetTestStatistic(TestStatistic *testStatistic, unsigned int i)
void Stop()
Stop the stopwatch.
#define ClassDef(name, id)
void SetNullParameters(const RooArgSet &nullParameters)
static double p2(double t, double a, double b, double c)
void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
Double_t BinomialWithTauObsZ(Double_t nObs, Double_t bExp, Double_t tau)
virtual void setVal(Double_t value)
Set value of variable to 'value'.
Bool_t defineSet(const char *name, const RooArgSet &aset, Bool_t importMissing=kFALSE)
Define a named RooArgSet with given constituents.
void SetProofConfig(ProofConfig *pc=NULL)
void setGlobalKillBelow(RooFit::MsgLevel level)
RooAbsData is the common abstract base class for binned and unbinned datasets.
static double p1(double t, double a, double b)
ToyMCSampler is an implementation of the TestStatSampler interface.
RooDataSet is a container class to hold unbinned data.
Same purpose as HybridCalculatorOriginal, but different implementation.
Namespace for the RooStats classes.
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
TestStatistic class that returns -log(L[null] / L[alt]) where L is the likelihood.
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.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
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.
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())
Generate a new dataset containing the specified variables with events sampled from our distribution...
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...
static constexpr double pc
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
The RooWorkspace is a persistable container for RooFit projects.
virtual Int_t numEntries() const
NumEventsTestStat is a simple implementation of the TestStatistic interface used for simple number co...