28 void rf108_plotbinning()
41 RooCategory mixState(
"mixState",
"B0/B0bar mixing state") ;
42 mixState.defineType(
"mixed",-1) ;
43 mixState.defineType(
"unmixed",1) ;
44 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0") ;
45 tagFlav.defineType(
"B0",1) ;
46 tagFlav.defineType(
"B0bar",-1) ;
54 RooBMixDecay bmix(
"bmix",
"decay",dt,mixState,tagFlav,
tau,dm,w,dw,gm1,
RooBMixDecay::DoubleSided) ;
74 tbins.addUniform(60,-15,0) ;
77 tbins.addUniform(15,0,15) ;
80 RooPlot* dtframe = dt.frame(
Range(-15,15),
Title(
"dt distribution with custom binning")) ;
82 bmix.plotOn(dtframe) ;
97 abins.addBoundary(0) ;
98 abins.addBoundaryPair(1) ;
99 abins.addBoundaryPair(2) ;
100 abins.addBoundaryPair(3) ;
101 abins.addBoundaryPair(4) ;
102 abins.addBoundaryPair(6) ;
105 RooPlot* aframe = dt.frame(
Range(-10,10),
Title(
"mixState asymmetry distribution with custom binning")) ;
111 bmix.plotOn(aframe,
Asymmetry(mixState)) ;
121 TCanvas* c =
new TCanvas(
"rf108_plotbinning",
"rf108_plotbinning",800,400) ;
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Plot dataset on specified frame.
RooCmdArg Asymmetry(const RooCategory &cat)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
RooCmdArg Title(const char *name)
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum value of Y axis.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t tau
Class RooBMixDecay is a RooAbsAnaConvPdf implementation that describes the decay of B mesons with the...
Class RooBinning is an implements RooAbsBinning in terms of an array of boundary values, posing no constraints on the choice of binning, thus allowing variable bin sizes.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum value of Y axis.
RooDataSet is a container class to hold unbinned data.
RooCategory represents a fundamental (non-derived) discrete value object.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
Class RooGaussModel implements a RooResolutionModel that models a Gaussian distribution.
RooCmdArg Binning(const RooAbsBinning &binning)