29 class TestBasic405 :
public RooFitTestUnit
32 TestBasic405(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Real-to-category functions",refFile,writeRef,verbose) {} ;
65 xRegion.addThreshold(4.23,
"Background") ;
66 xRegion.addThreshold(5.23,
"SideBand") ;
67 xRegion.addThreshold(8.23,
"Signal") ;
68 xRegion.addThreshold(9.23,
"SideBand") ;
79 RooPlot* xframe =
x.frame(
Title(
"Demo of threshold and binning mapping functions")) ;
95 x.setBins(10,
"coarse") ;
111 xb->
setRange(
"alt",
"x_coarse_bin1,x_coarse_bin3,x_coarse_bin5,x_coarse_bin7,x_coarse_bin9") ;
118 regTable(xbtable,
"rf405_xbtable") ;
119 regPlot(xframe,
"rf405_plot1") ;
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 LineColor(Color_t color)
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
RooCmdArg Title(const char *name)
RooArgusBG is a RooAbsPdf implementation describing the ARGUS background shape.
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)
Add a column with the values of the given (function) argument to this dataset.
Class RooThresholdCategory provides a real-to-category mapping defined by a series of thresholds...
RooRealVar represents a fundamental (non-derived) real valued object.
RooCmdArg Name(const char *name)
Class RooBinningCategory provides a real-to-category mapping defined by a series of thresholds...
RooCmdArg CutRange(const char *rangeName)
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 EventRange(Int_t nStart, Int_t nStop)
static RooConstVar & value(Double_t value)
Return a constant value object with given value.
RooCmdArg MarkerColor(Color_t color)
void setRange(const char *rangeName, const char *stateNameList)
Roo1DTable implements a one-dimensional table.
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.