35 RooCategory mixState(
"mixState",
"B0/B0bar mixing state");
36 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0");
39 mixState.defineType(
"mixed", -1);
40 mixState.defineType(
"unmixed", 1);
41 tagFlav.defineType(
"B0", 1);
42 tagFlav.defineType(
"B0bar", -1);
45 RooRealVar dm(
"dm",
"delta m(B)", 0.472, 0., 1.0);
46 RooRealVar tau(
"tau",
"B0 decay time", 1.547, 1.0, 2.0);
47 RooRealVar w(
"w",
"Flavor Mistag rate", 0.03, 0.0, 1.0);
48 RooRealVar dw(
"dw",
"Flavor Mistag rate difference between B0 and B0bar", 0.01);
56 RooBMixDecay bmix_gm1(
"bmix",
"decay", dt, mixState, tagFlav, tau, dm, w, dw, gm1,
RooBMixDecay::DoubleSided);
67 bmix_gm1.plotOn(frame);
74 data->
plotOn(frame2,
Cut(
"mixState==mixState::mixed"));
77 bmix_gm1.plotOn(frame2,
Slice(mixState,
"mixed"));
81 data->
plotOn(frame3,
Cut(
"mixState==mixState::unmixed"));
84 bmix_gm1.plotOn(frame3,
Slice(mixState,
"unmixed"));
86 TCanvas *
c =
new TCanvas(
"rf310_sliceplot",
"rf310_sliceplot", 1200, 400);
89 gPad->SetLeftMargin(0.15);
94 gPad->SetLeftMargin(0.15);
99 gPad->SetLeftMargin(0.15);
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
Calls RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const ;.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Class RooBMixDecay is a RooAbsAnaConvPdf implementation that describes the decay of B mesons with the...
RooCategory is an object to represent discrete states.
RooDataSet is a container class to hold unbinned data.
Class RooGaussModel implements a RooResolutionModel that models a Gaussian distribution.
A RooPlot is a plot frame and a container for graphics objects within that frame.
static RooPlot * frame(const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nBins)
Create a new frame for a given variable in x.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg Slice(const RooArgSet &sliceSet)
RooCmdArg Cut(const char *cutSpec)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...