25 void rf310_sliceplot()
36 RooCategory mixState(
"mixState",
"B0/B0bar mixing state") ;
37 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0") ;
40 mixState.defineType(
"mixed",-1) ;
41 mixState.defineType(
"unmixed",1) ;
42 tagFlav.defineType(
"B0",1) ;
43 tagFlav.defineType(
"B0bar",-1) ;
46 RooRealVar dm(
"dm",
"delta m(B)",0.472,0.,1.0) ;
48 RooRealVar w(
"w",
"Flavor Mistag rate",0.03,0.0,1.0) ;
49 RooRealVar dw(
"dw",
"Flavor Mistag rate difference between B0 and B0bar",0.01) ;
57 RooBMixDecay bmix_gm1(
"bmix",
"decay",dt,mixState,tagFlav,
tau,dm,w,dw,gm1,
RooBMixDecay::DoubleSided) ;
68 RooPlot* frame = dt.frame(
Title(
"Inclusive decay distribution")) ;
70 bmix_gm1.plotOn(frame) ;
78 RooPlot* frame2 = dt.frame(
Title(
"Decay distribution of mixed events")) ;
79 data->
plotOn(frame2,
Cut(
"mixState==mixState::mixed")) ;
82 bmix_gm1.plotOn(frame2,
Slice(mixState,
"mixed")) ;
85 RooPlot* frame3 = dt.frame(
Title(
"Decay distribution of unmixed events")) ;
86 data->
plotOn(frame3,
Cut(
"mixState==mixState::unmixed")) ;
89 bmix_gm1.plotOn(frame3,
Slice(mixState,
"unmixed")) ;
93 TCanvas* c =
new TCanvas(
"rf310_sliceplot",
"rf310_sliceplot",1200,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 Cut(const char *cutSpec)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
RooCmdArg Title(const char *name)
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...
RooRealVar represents a fundamental (non-derived) real valued object.
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.
RooCmdArg Slice(const RooArgSet &sliceSet)
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.