Basic functionality: plotting unbinned data with alternate and variable binnings
import ROOT
mixState =
ROOT.RooCategory(
"mixState",
"B0/B0bar mixing state", {
"mixed": -1,
"unmixed": 1})
tagFlav =
ROOT.RooCategory(
"tagFlav",
"Flavour of the tagged B0", {
"B0": 1,
"B0bar": -1})
bmix =
ROOT.RooBMixDecay(
"bmix",
"decay", dt, mixState, tagFlav, tau, dm, w, dw, gm1, type=
"DoubleSided")
dtframe =
dt.frame(Range=(-15, 15), Title=
"dt distribution with custom binning")
aframe =
dt.frame(Range=(-10, 10), Title=
"mixState asymmetry distribution with custom binning")
c =
ROOT.TCanvas(
"rf108_plotbinning",
"rf108_plotbinning", 800, 400)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
[#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)
- Date
- February 2018
- Authors
- Clemens Lange, Wouter Verkerke (C++ version)
Definition in file rf108_plotbinning.py.