49void rs102_hypotestwithshapes()
 
   67   DoHypothesisTest(wspace);
 
   85   Double_t lowRange = 60, highRange = 200;
 
   88   RooRealVar invMass(
"invMass", 
"M_{inv}", lowRange, highRange, 
"GeV");
 
   92   RooRealVar mH(
"mH", 
"Higgs Mass", 130, 90, 160);
 
   93   RooRealVar sigma1(
"sigma1", 
"Width of Gaussian", 12., 2, 100);
 
   94   RooGaussian sigModel(
"sigModel", 
"Signal Model", invMass, mH, sigma1);
 
  103   RooRealVar sigma1_z(
"sigma1_z", 
"Width of Gaussian", 10., 6, 100);
 
  104   RooGaussian zjjModel(
"zjjModel", 
"Z+jets Model", invMass, mZ, sigma1_z);
 
  108   sigma1_z.setConstant();
 
  127   RooRealVar fzjj(
"fzjj", 
"fraction of zjj background events", .4, 0., 1);
 
  130   RooRealVar fsigExpected(
"fsigExpected", 
"expected fraction of signal events", .2, 0., 1);
 
  131   fsigExpected.setConstant(); 
 
  135   RooRealVar mu(
"mu", 
"signal strength in units of SM expectation", 1, 0., 2);
 
  139   RooRealVar ratioSigEff(
"ratioSigEff", 
"ratio of signal efficiency to nominal signal efficiency", 1., 0., 2);
 
  140   ratioSigEff.setConstant(
kTRUE);
 
  143   RooProduct fsig(
"fsig", 
"fraction of signal events", 
RooArgSet(mu, ratioSigEff, fsigExpected));
 
  146   RooAddPdf model(
"model", 
"sig+zjj+qcd background shapes", 
RooArgList(sigModel, zjjModel, qcdModel),
 
  204   cout << 
"-------------------------------------------------" << endl;
 
  205   cout << 
"The p-value for the null is " << htr->
NullPValue() << endl;
 
  206   cout << 
"Corresponding to a significance of " << htr->
Significance() << endl;
 
  207   cout << 
"-------------------------------------------------\n\n" << endl;
 
  244   frame->
SetTitle(
"An example fit to the signal + background model");
 
  264   xframe2->
SetTitle(
"An example fit to the background-only model");
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
 
bool setRealValue(const char *name, double newVal=0.0, bool verbose=false)
Set value of a RooAbsRealLValye stored in set with given name to newVal No error messages are printed...
 
RooAbsData is the common abstract base class for binned and unbinned datasets.
 
RooFit::OwningPtr< 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&,...
 
virtual RooFit::OwningPtr< RooFitResult > fitTo(RooAbsData &data, const RooLinkedList &cmdList={})
Fit PDF to given dataset.
 
RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none(), const RooCmdArg &arg9=RooCmdArg::none(), const RooCmdArg &arg10=RooCmdArg::none()) const override
Helper calling plotOn(RooPlot*, RooLinkedList&) const.
 
void setConstant(bool value=true)
 
RooPlot * frame(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Create a new RooPlot on the heap with a drawing frame initialized for this object,...
 
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
 
RooArgList is a container object that can hold multiple RooAbsArg objects.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
 
Chebychev polynomial p.d.f.
 
RooDataSet is a container class to hold unbinned data.
 
A RooPlot is a plot frame and a container for graphics objects within that frame.
 
void SetTitle(const char *name) override
Set the title of the RooPlot to 'title'.
 
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
 
A RooProduct represents the product of a given set of RooAbsReal objects.
 
RooRealVar represents a variable that can be changed from the outside.
 
void setVal(double value) override
Set value of variable to 'value'.
 
virtual void SetNullParameters(const RooArgSet &set)
set parameter values for the null if using a common PDF
 
void SetModel(const ModelConfig &model) override
set the model (in this case can set only the parameters for the null hypothesis)
 
void SetData(RooAbsData &data) override
Set the DataSet, add to the workspace if not already there.
 
HypoTestResult is a base class for results from hypothesis tests.
 
virtual double Significance() const
familiar name for the Null p-value in terms of 1-sided Gaussian significance
 
virtual double NullPValue() const
Return p-value for null hypothesis.
 
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
 
virtual void SetWorkspace(RooWorkspace &ws)
 
virtual void SetPdf(const RooAbsPdf &pdf)
Set the Pdf, add to the workspace if not already there.
 
The ProfileLikelihoodCalculator is a concrete implementation of CombinedCalculator (the interface cla...
 
HypoTestResult * GetHypoTest() const override
Return the hypothesis test result obtained from the likelihood ratio of the maximum likelihood value ...
 
The RooWorkspace is a persistable container for RooFit projects.
 
RooAbsPdf * pdf(RooStringView name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
 
bool import(const RooAbsArg &arg, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg())
Import a RooAbsArg object, e.g.
 
RooRealVar * var(RooStringView name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found.
 
RooAbsData * data(RooStringView name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found.
 
RooCmdArg Rename(const char *suffix)
 
RooCmdArg Hesse(bool flag=true)
 
RooCmdArg Save(bool flag=true)
 
RooCmdArg DataError(Int_t)
 
RooCmdArg Minos(bool flag=true)
 
RooCmdArg Components(Args_t &&... argsOrArgSet)
 
RooCmdArg LineColor(Color_t color)
 
RooCmdArg LineStyle(Style_t style)
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
Namespace for the RooStats classes.