'DATA AND CATEGORIES' RooFit tutorial macro #405
Demonstration of real–>discrete mapping functions
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf405_realtocatfuncs.C...
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")) ;
x.setBins(10,"coarse") ;
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.