34 RooRealVar tau(
"tau",
"The exponent", -0.1337, -10., -0.1);
38 x.setRange(
"full", 1, 30);
39 x.setRange(
"left", 1, 10);
40 x.setRange(
"right", 20, 30);
43 std::unique_ptr<RooDataSet>
data{expo.generate(
x, 1000)};
44 std::unique_ptr<RooAbsData> blindedData{
data->reduce(
CutRange(
"left,right"))};
57 expo.removeStringAttribute(
"fitrange");
71 std::cout <<
"Now plotting with unique normalisation for each slice." << std::endl;
76 blindedData->plotOn(plotFrame);
90 std::cout <<
"\n\nNow plotting with correct norm ranges:" << std::endl;
95 blindedData->plotOn(plotFrameWithNormRange);
100 plotFrameWithNormRange->
Draw();
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Plot frame and a container for graphics objects within that frame.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
Variable that can be changed from the outside.
void Draw(Option_t *option="") override
Draw a canvas.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
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.
RooCmdArg Title(const char *name)
RooCmdArg PrintLevel(Int_t code)
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...