Data and categories: demonstration of real-->discrete mapping functions
{
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");
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);
xframe->GetYaxis()->SetTitleOffset(1.4);
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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.
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 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
- Date
- July 2008
- Author
- Wouter Verkerke
Definition in file rf405_realtocatfuncs.C.