void rf405_realtocatfuncs()
{
std::unique_ptr<RooDataSet> data{
a.generate(
x, 10000)};
xRegion.addThreshold(4.23, "Background");
xRegion.addThreshold(5.23, "SideBand");
xRegion.addThreshold(8.23, "Signal");
xRegion.addThreshold(9.23, "SideBand");
data->addColumn(xRegion);
RooPlot *xframe =
x.frame(
Title(
"Demo of threshold and binning mapping functions"));
data->plotOn(xframe);
xb->
setRange(
"alt",
"x_coarse_bin1,x_coarse_bin3,x_coarse_bin5,x_coarse_bin7,x_coarse_bin9");
new TCanvas(
"rf405_realtocatfuncs",
"rf405_realtocatfuncs", 600, 600);
xframe->SetMinimum(0.01);
gPad->SetLeftMargin(0.15);
xframe->GetYaxis()->SetTitleOffset(1.4);
xframe->Draw();
}
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
RooArgusBG is a RooAbsPdf implementation describing the ARGUS background shape.
Provides a real-to-category mapping defined by a series of thresholds.
Object to represent discrete states.
void setRange(const char *rangeName, const char *stateNameList)
Plot frame and a container for graphics objects within that frame.
Variable that can be changed from the outside.
A real-to-category mapping defined by a series of thresholds.
RooCmdArg Title(const char *name)
RooCmdArg EventRange(Int_t nStart, Int_t nStop)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg CutRange(const char *rangeName)
RooCmdArg MarkerColor(TColorNumber color)
RooCmdArg Cut(const char *cutSpec)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 2748 events out of 10000 total events
Table xBins : aData
+---------------+------+
| x_coarse_bin0 | 105 |
| x_coarse_bin1 | 329 |
| x_coarse_bin2 | 499 |
| x_coarse_bin3 | 739 |
| x_coarse_bin4 | 934 |
| x_coarse_bin5 | 1218 |
| x_coarse_bin6 | 1450 |
| x_coarse_bin7 | 1675 |
| x_coarse_bin8 | 1767 |
| x_coarse_bin9 | 1284 |
+---------------+------+
[#1] INFO:Plotting -- RooPlot::updateFitRangeNorm: New event count of 2627 will supersede previous event count of 10000 for normalization of PDF projections