'DATA AND CATEGORIES' RooFit tutorial macro #405
Demonstration of real–>discrete mapping functions
#ifndef __CINT__
#endif
using namespace RooFit ;
void rf405_realtocatfuncs()
{
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")) ;
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) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf405_realtocatfuncs.C.