28 class TestBasic108 :
public RooFitTestUnit
31 TestBasic108(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Non-standard binning in counting and asymmetry plots",refFile,writeRef,verbose) {} ;
44 RooCategory mixState(
"mixState",
"B0/B0bar mixing state") ;
45 mixState.defineType(
"mixed",-1) ;
46 mixState.defineType(
"unmixed",1) ;
47 RooCategory tagFlav(
"tagFlav",
"Flavour of the tagged B0") ;
48 tagFlav.defineType(
"B0",1) ;
49 tagFlav.defineType(
"B0bar",-1) ;
58 RooBMixDecay bmix(
"bmix",
"decay",dt,mixState,tagFlav,
tau,dm,w,dw,gm1,
RooBMixDecay::DoubleSided) ;
78 tbins.addUniform(60,-15,0) ;
81 tbins.addUniform(15,0,15) ;
84 RooPlot* dtframe = dt.frame(
Range(-15,15),
Title(
"dt distribution with custom binning")) ;
86 bmix.plotOn(dtframe) ;
101 abins.addBoundary(0) ;
102 abins.addBoundaryPair(1) ;
103 abins.addBoundaryPair(2) ;
104 abins.addBoundaryPair(3) ;
105 abins.addBoundaryPair(4) ;
106 abins.addBoundaryPair(6) ;
109 RooPlot* aframe = dt.frame(
Range(-10,10),
Title(
"mixState asymmetry distribution with custom binning")) ;
115 bmix.plotOn(aframe,
Asymmetry(mixState)) ;
124 regPlot(dtframe,
"rf108_plot1") ;
125 regPlot(aframe,
"rf108_plot2") ;
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 Asymmetry(const RooCategory &cat)
RooCmdArg Title(const char *name)
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum value of Y axis.
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...
Class RooBinning is an implements RooAbsBinning in terms of an array of boundary values, posing no constraints on the choice of binning, thus allowing variable bin sizes.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum value of Y axis.
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. ...
Class RooGaussModel implements a RooResolutionModel that models a Gaussian distribution.
RooCmdArg Binning(const RooAbsBinning &binning)