31void rf212_plottingInRanges_blinding()
35 RooRealVar tau(
"tau",
"The exponent", -0.1337, -10., -0.1);
39 x.setRange(
"full", 1, 30);
40 x.setRange(
"left", 1, 10);
41 x.setRange(
"right", 20, 30);
50 exp.fitTo(*blindedData);
64 std::cout <<
"Now plotting with unique normalisation for each slice." << std::endl;
69 blindedData->plotOn(plotFrame);
83 std::cout <<
"\n\nNow plotting with correct norm ranges:" << std::endl;
85 RooPlot* plotFrameWithNormRange =
x.frame(
RooFit::Title(
"Right: All slices have common normalisation"));
88 blindedData->plotOn(plotFrameWithNormRange);
93 plotFrameWithNormRange->
Draw();
RooAbsData * reduce(const RooCmdArg &arg1, 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())
Create a reduced copy of this dataset.
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a variable that can be changed from the outside.
virtual void Draw(Option_t *option="")
Draw a canvas.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
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.
RooCmdArg Title(const char *name)
RooCmdArg NormRange(const char *rangeNameList)
RooCmdArg CutRange(const char *rangeName)
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...