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, Cut(
"xRegion==xRegion::SideBand"), MarkerColor(
kRed), LineColor(
kRed));
xb->
setRange(
"alt",
"x_coarse_bin1,x_coarse_bin3,x_coarse_bin5,x_coarse_bin7,x_coarse_bin9");
std::unique_ptr<RooAbsData> dataSel{
data->reduce(CutRange(
"alt"), EventRange(0, 5000))};
new TCanvas(
"rf405_realtocatfuncs",
"rf405_realtocatfuncs", 600, 600);
gPad->SetLeftMargin(0.15);
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
virtual void SetMinimum(double minimum=-1111)
Set minimum value of Y axis.
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.
A real-to-category mapping defined by a series of thresholds.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg LineColor(TColorNumber color)
RooCmdArg MarkerColor(TColorNumber color)
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