39 RooCategory mixState(
"mixState",
"B0/B0bar mixing state");
40 mixState.defineType(
"mixed", -1);
41 mixState.defineType(
"unmixed", 1);
42 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0");
43 tagFlav.defineType(
"B0", 1);
44 tagFlav.defineType(
"B0bar", -1);
52 RooBMixDecay bmix(
"bmix",
"decay", dt, mixState, tagFlav, tau, dm,
w, dw, gm1,
RooBMixDecay::DoubleSided);
58 std::unique_ptr<RooDataSet>
data{bmix.generate(
RooArgSet(dt, mixState, tagFlav), 2000)};
69 tbins.addUniform(60, -15, 0);
72 tbins.addUniform(15, 0, 15);
92 abins.addBoundaryPair(1);
93 abins.addBoundaryPair(2);
94 abins.addBoundaryPair(3);
95 abins.addBoundaryPair(4);
96 abins.addBoundaryPair(6);
105 bmix.plotOn(aframe,
Asymmetry(mixState));
114 TCanvas *
c =
new TCanvas(
"rf108_plotbinning",
"rf108_plotbinning", 800, 400);
117 gPad->SetLeftMargin(0.15);
121 gPad->SetLeftMargin(0.15);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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...
Class RooBinning is an implements RooAbsBinning in terms of an array of boundary values,...
Object to represent discrete states.
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 xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
virtual void SetMinimum(double minimum=-1111)
Set minimum value of Y axis.
virtual void SetMaximum(double maximum=-1111)
Set maximum value of Y axis.
void Draw(Option_t *options=nullptr) override
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 Binning(const RooAbsBinning &binning)
RooCmdArg Asymmetry(const RooCategory &cat)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...