120 for (
int i = 0; i <
data.numEntries(); i++) {
121 value +=
data.get(i)->getRealValue(fColumnName.c_str());
125 virtual const TString GetVarName()
const {
return fColumnName; }
175 w->factory(
"Uniform::f(m[0,1])");
176 w->factory(
"ExtendPdf::px(f,sum::splusb(s[0,0,100],b[100,0.1,300]))");
177 w->factory(
"Poisson::py(y[100,0.1,500],prod::taub(tau[1.],b))");
178 w->factory(
"PROD::model(px,py)");
179 w->factory(
"Uniform::prior_b(b)");
193 double p_Bi = NumberCountingUtils::BinomialWithTauObsP(150, 100, 1);
194 double Z_Bi = NumberCountingUtils::BinomialWithTauObsZ(150, 100, 1);
195 cout <<
"-----------------------------------------" << endl;
196 cout <<
"Part 3" << endl;
197 std::cout <<
"Z_Bi p-value (analytic): " <<
p_Bi << std::endl;
198 std::cout <<
"Z_Bi significance (analytic): " <<
Z_Bi << std::endl;
222 w->defineSet(
"obs",
"m");
223 w->defineSet(
"poi",
"s");
228 std::unique_ptr<RooDataSet>
data{
w->pdf(
"px")->generate(*
w->set(
"obs"), 150)};
235 b_model.SetObservables(*
w->set(
"obs"));
236 b_model.SetParametersOfInterest(*
w->set(
"poi"));
237 w->var(
"s")->setVal(0.0);
238 b_model.SetSnapshot(*
w->set(
"poi"));
244 sb_model.SetParametersOfInterest(*
w->set(
"poi"));
245 w->var(
"s")->setVal(50.0);
279 w->factory(
"Gaussian::gauss_prior(b,y, expr::sqrty('sqrt(y)',y))");
283 w->factory(
"Lognormal::lognorm_prior(b,y, expr::kappa('1+1./sqrt(y)',y))");
307 hc1.ForcePriorNuisanceAlt(*
w->pdf(
"py"));
308 hc1.ForcePriorNuisanceNull(*
w->pdf(
"py"));
325 cout <<
"-----------------------------------------" << endl;
326 cout <<
"Part 4" << endl;
357 hc2.ForcePriorNuisanceAlt(*
w->pdf(
"py"));
358 hc2.ForcePriorNuisanceNull(*
w->pdf(
"py"));
374 cout <<
"-----------------------------------------" << endl;
375 cout <<
"Part 5" << endl;
double Double_t
Double 8 bytes.
#define ClassDef(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Abstract base class for binned and unbinned datasets.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static RooMsgService & instance()
Return reference to singleton instance.
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.
< A class that holds configuration information for a model using a workspace as a store
NumEventsTestStat is a simple implementation of the TestStatistic interface used for simple number co...
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...
ToyMCSampler is an implementation of the TestStatSampler interface.
Persistable container for RooFit projects.
void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
Automatic pad generation by division.
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
void Stop()
Stop the stopwatch.
void Print(Option_t *option="") const override
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.
Namespace for the RooStats classes.