45 RooRealVar dw(
"dw",
"delta mistag rate for B0/B0bar", 0.1);
47 RooCategory mixState(
"mixState",
"B0/B0bar mixing state");
48 mixState.defineType(
"mixed", -1);
49 mixState.defineType(
"unmixed", 1);
51 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0");
52 tagFlav.defineType(
"B0", 1);
53 tagFlav.defineType(
"B0bar", -1);
59 RooBMixDecay bmix(
"bmix",
"decay", dt, mixState, tagFlav, tau, dm,
w, dw, truthModel,
RooBMixDecay::DoubleSided);
65 std::unique_ptr<RooDataSet>
data{bmix.generate({dt, mixState, tagFlav}, 10000)};
72 data->plotOn(frame1,
Cut(
"tagFlav==tagFlav::B0"));
73 bmix.plotOn(frame1,
Slice(tagFlav,
"B0"));
79 RooPlot *frame2 = dt.
frame(
Title(
"B decay distribution of mixed events (B0/B0bar)"));
81 data->plotOn(frame2,
Cut(
"mixState==mixState::mixed&&tagFlav==tagFlav::B0"));
82 bmix.plotOn(frame2,
Slice({{&tagFlav,
"B0"}, {&mixState,
"mixed"}}));
88 RooPlot *frame3 = dt.
frame(
Title(
"B decay distribution of unmixed events (B0/B0bar)"));
90 data->plotOn(frame3,
Cut(
"mixState==mixState::unmixed&&tagFlav==tagFlav::B0"));
91 bmix.plotOn(frame3,
Slice({{&tagFlav,
"B0"}, {&mixState,
"unmixed"}}));
94 bmix.plotOn(frame3,
Slice({{&tagFlav,
"B0bar"}, {&mixState,
"unmixed"}}),
LineColor(
kCyan));
104 RooRealVar CPeigen(
"CPeigen",
"CP eigen value", -1);
105 RooRealVar absLambda(
"absLambda",
"|lambda|", 1, 0, 2);
106 RooRealVar argLambda(
"absLambda",
"|lambda|", 0.7, -1, 1);
107 RooRealVar effR(
"effR",
"B0/B0bar reco efficiency ratio", 1);
110 RooBCPEffDecay bcp(
"bcp",
"bcp", dt, tagFlav, tau, dm,
w, CPeigen, absLambda, argLambda, effR, dw, truthModel,
117 std::unique_ptr<RooDataSet> data2{bcp.generate({dt, tagFlav}, 10000)};
120 RooPlot *frame4 = dt.
frame(
Title(
"B decay distribution with CPV(|l|=1,Im(l)=0.7) (B0/B0bar)"));
122 data2->plotOn(frame4,
Cut(
"tagFlav==tagFlav::B0"));
123 bcp.plotOn(frame4,
Slice(tagFlav,
"B0"));
134 std::unique_ptr<RooDataSet> data3{bcp.generate({dt, tagFlav}, 10000)};
137 RooPlot *frame5 = dt.
frame(
Title(
"B decay distribution with CPV(|l|=0.7,Im(l)=0.7) (B0/B0bar)"));
139 data3->plotOn(frame5,
Cut(
"tagFlav==tagFlav::B0"));
140 bcp.plotOn(frame5,
Slice(tagFlav,
"B0"));
153 RooRealVar DGbG(
"DGbG",
"DGamma/GammaAvg", 0.5, -1, 1);
154 RooRealVar Adir(
"Adir",
"-[1-abs(l)**2]/[1+abs(l)**2]", 0);
155 RooRealVar Amix(
"Amix",
"2Im(l)/[1+abs(l)**2]", 0.7);
156 RooRealVar Adel(
"Adel",
"2Re(l)/[1+abs(l)**2]", 0.7);
167 RooBDecay bcpg(
"bcpg",
"bcpg", dt, tau, DG,
RooConst(1), fsinh, fcos, fsin, dm, truthModel,
RooBDecay::DoubleSided);
173 std::unique_ptr<RooDataSet> data4{bcpg.generate({dt, tagFlav}, 10000)};
176 RooPlot *frame6 = dt.
frame(
Title(
"B decay distribution with CPV(Im(l)=0.7,Re(l)=0.7,|l|=1,dG/G=0.5) (B0/B0bar)"));
178 data4->plotOn(frame6,
Cut(
"tagFlav==tagFlav::B0"));
179 bcpg.plotOn(frame6,
Slice(tagFlav,
"B0"));
184 TCanvas *
c =
new TCanvas(
"rf708_bphysics",
"rf708_bphysics", 1200, 800);
187 gPad->SetLeftMargin(0.15);
191 gPad->SetLeftMargin(0.15);
195 gPad->SetLeftMargin(0.15);
199 gPad->SetLeftMargin(0.15);
203 gPad->SetLeftMargin(0.15);
207 gPad->SetLeftMargin(0.15);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
RooArgList is a container object that can hold multiple RooAbsArg objects.
PDF describing decay time distribution of B meson including effects of standard model CP violation.
Most general description of B decay time distribution with effects of CP violation,...
Class RooBMixDecay is a RooAbsAnaConvPdf implementation that describes the decay of B mesons with the...
Object to represent discrete states.
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.
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.
Implements a RooResolution model that corresponds to a delta function.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooConstVar & RooConst(double val)
RooCmdArg MarkerColor(Color_t color)
RooCmdArg Slice(const RooArgSet &sliceSet)
RooCmdArg Cut(const char *cutSpec)
RooCmdArg LineColor(Color_t color)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...