void rf708_bphysics()
{
dt.setBins(40);
RooRealVar dw(
"dw",
"delta mistag rate for B0/B0bar", 0.1);
RooCategory mixState(
"mixState",
"B0/B0bar mixing state");
mixState.defineType("mixed", -1);
mixState.defineType("unmixed", 1);
RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0");
tagFlav.defineType("B0", 1);
tagFlav.defineType("B0bar", -1);
RooBMixDecay bmix(
"bmix",
"decay", dt, mixState, tagFlav, tau, dm, w, dw, truthModel,
RooBMixDecay::DoubleSided);
std::unique_ptr<RooDataSet> data{bmix.generate({dt, mixState, tagFlav}, 10000)};
bmix.plotOn(frame1,
Slice(tagFlav,
"B0"));
RooPlot *frame2 = dt.
frame(
Title(
"B decay distribution of mixed events (B0/B0bar)"));
bmix.plotOn(frame2,
Slice({{&tagFlav,
"B0"}, {&mixState,
"mixed"}}));
RooPlot *frame3 = dt.
frame(
Title(
"B decay distribution of unmixed events (B0/B0bar)"));
bmix.plotOn(frame3,
Slice({{&tagFlav,
"B0"}, {&mixState,
"unmixed"}}));
RooRealVar CPeigen(
"CPeigen",
"CP eigen value", -1);
RooRealVar absLambda(
"absLambda",
"|lambda|", 1, 0, 2);
RooRealVar argLambda(
"absLambda",
"|lambda|", 0.7, -1, 1);
RooRealVar effR(
"effR",
"B0/B0bar reco efficiency ratio", 1);
RooBCPEffDecay bcp(
"bcp",
"bcp", dt, tagFlav, tau, dm, w, CPeigen, absLambda, argLambda, effR, dw, truthModel,
std::unique_ptr<RooDataSet> data2{bcp.generate({dt, tagFlav}, 10000)};
RooPlot *frame4 = dt.
frame(
Title(
"B decay distribution with CPV(|l|=1,Im(l)=0.7) (B0/B0bar)"));
data2->plotOn(frame4,
Cut(
"tagFlav==tagFlav::B0"));
bcp.plotOn(frame4,
Slice(tagFlav,
"B0"));
absLambda = 0.7;
std::unique_ptr<RooDataSet> data3{bcp.generate({dt, tagFlav}, 10000)};
RooPlot *frame5 = dt.
frame(
Title(
"B decay distribution with CPV(|l|=0.7,Im(l)=0.7) (B0/B0bar)"));
data3->plotOn(frame5,
Cut(
"tagFlav==tagFlav::B0"));
bcp.plotOn(frame5,
Slice(tagFlav,
"B0"));
RooRealVar DGbG(
"DGbG",
"DGamma/GammaAvg", 0.5, -1, 1);
RooRealVar Adir(
"Adir",
"-[1-abs(l)**2]/[1+abs(l)**2]", 0);
RooRealVar Amix(
"Amix",
"2Im(l)/[1+abs(l)**2]", 0.7);
RooRealVar Adel(
"Adel",
"2Re(l)/[1+abs(l)**2]", 0.7);
RooBDecay bcpg(
"bcpg",
"bcpg", dt, tau, DG,
RooConst(1), fsinh, fcos, fsin, dm, truthModel,
RooBDecay::DoubleSided);
std::unique_ptr<RooDataSet> data4{bcpg.generate({dt, tagFlav}, 10000)};
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)"));
data4->plotOn(frame6,
Cut(
"tagFlav==tagFlav::B0"));
bcpg.plotOn(frame6,
Slice(tagFlav,
"B0"));
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.15);
}
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.
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.
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.
RooCmdArg Title(const char *name)
RooConstVar & RooConst(double val)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg Slice(const RooArgSet &sliceSet)
RooCmdArg MarkerColor(TColorNumber color)
RooCmdArg Cut(const char *cutSpec)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 4542 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt integrates over variables (mixState)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 5458 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt integrates over variables (mixState)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 933 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt represents a slice in (mixState,tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 1461 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt represents a slice in (mixState,tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 3609 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt represents a slice in (mixState,tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 3997 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bmix) plot on dt represents a slice in (mixState,tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 4495 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bcp) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 5505 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bcp) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 3617 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bcp) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 6383 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bcp) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 4991 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bcpg) plot on dt represents a slice in (tagFlav)
[#1] INFO:Plotting -- RooTreeData::plotOn: plotting 5009 events out of 10000 total events
[#1] INFO:Plotting -- RooAbsReal::plotOn(bcpg) plot on dt represents a slice in (tagFlav)