27 class TestBasic310 :
public RooFitTestUnit
30 TestBasic310(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Data and p.d.f projection in category slice",refFile,writeRef,verbose) {} ;
40 RooCategory mixState(
"mixState",
"B0/B0bar mixing state") ;
41 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0") ;
44 mixState.defineType(
"mixed",-1) ;
45 mixState.defineType(
"unmixed",1) ;
46 tagFlav.defineType(
"B0",1) ;
47 tagFlav.defineType(
"B0bar",-1) ;
50 RooRealVar dm(
"dm",
"delta m(B)",0.472,0.,1.0) ;
52 RooRealVar w(
"w",
"Flavor Mistag rate",0.03,0.0,1.0) ;
53 RooRealVar dw(
"dw",
"Flavor Mistag rate difference between B0 and B0bar",0.01) ;
61 RooBMixDecay bmix_gm1(
"bmix",
"decay",dt,mixState,tagFlav,
tau,dm,w,dw,gm1,
RooBMixDecay::DoubleSided) ;
72 RooPlot* frame = dt.frame(
Title(
"Inclusive decay distribution")) ;
74 bmix_gm1.plotOn(frame) ;
82 RooPlot* frame2 = dt.frame(
Title(
"Decay distribution of mixed events")) ;
83 data->
plotOn(frame2,
Cut(
"mixState==mixState::mixed")) ;
86 bmix_gm1.plotOn(frame2,
Slice(mixState,
"mixed")) ;
89 RooPlot* frame3 = dt.frame(
Title(
"Decay distribution of unmixed events")) ;
90 data->
plotOn(frame3,
Cut(
"mixState==mixState::unmixed")) ;
93 bmix_gm1.plotOn(frame3,
Slice(mixState,
"unmixed")) ;
96 regPlot(frame,
"rf310_plot1") ;
97 regPlot(frame2,
"rf310_plot2") ;
98 regPlot(frame3,
"rf310_plot3") ;
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)
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. ...
RooCmdArg Slice(const RooArgSet &sliceSet)
Class RooGaussModel implements a RooResolutionModel that models a Gaussian distribution.