'BASIC FUNCTIONALITY' RooFit tutorial macro #108
Plotting unbinned data with alternate and variable binnings
Processing /mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/tutorials/roofit/rf108_plotbinning.C...
[1mRooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby[0m
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please read http://roofit.sourceforge.net/license.txt
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt integrates over variables (mixState,tagFlav)
[#1] INFO:Plotting -- RooAbsReal::plotAsymOn(bmix) plot on dt projects variables (tagFlav)
void rf108_plotbinning()
{
RooCategory mixState(
"mixState",
"B0/B0bar mixing state") ;
mixState.defineType("mixed",-1) ;
mixState.defineType("unmixed",1) ;
RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0") ;
tagFlav.defineType("B0",1) ;
tagFlav.defineType("B0bar",-1) ;
RooBMixDecay bmix(
"bmix",
"decay",dt,mixState,tagFlav,tau,dm,w,dw,gm1,
RooBMixDecay::DoubleSided) ;
tbins.addUniform(60,-15,0) ;
tbins.addUniform(15,0,15) ;
RooPlot* dtframe = dt.frame(
Range(-15,15),
Title(
"dt distribution with custom binning")) ;
bmix.plotOn(dtframe) ;
abins.addBoundary(0) ;
abins.addBoundaryPair(1) ;
abins.addBoundaryPair(2) ;
abins.addBoundaryPair(3) ;
abins.addBoundaryPair(4) ;
abins.addBoundaryPair(6) ;
RooPlot* aframe = dt.frame(
Range(-10,10),
Title(
"mixState asymmetry distribution with custom binning")) ;
TCanvas* c =
new TCanvas(
"rf108_plotbinning",
"rf108_plotbinning",800,400) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf108_plotbinning.C.