class RooTreeData: public RooAbsData



RooTreeData is the abstract base class for data collection that use a TTree as internal storage mechanism

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~RooTreeData()
voidTObject::AbstractMethod(const char* method) const
virtual voidRooAbsData::add(const RooArgSet& row, Double_t weight = 1)
virtual RooAbsArg*addColumn(RooAbsArg& var, Bool_t adjustRange = kTRUE)
virtual RooArgSet*addColumns(const RooArgList& varList)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tchangeObservableName(const char* from, const char* to)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
TH1*RooAbsData::createHistogram(const char* name, const RooAbsRealLValue& xvar, const RooLinkedList& argList) const
TH1*RooAbsData::createHistogram(const char* varNameList, Int_t xbins = 0, Int_t ybins = 0, Int_t zbins = 0) const
TH1*RooAbsData::createHistogram(const char* name, const RooAbsRealLValue& xvar, 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
virtual Int_tRooAbsData::defaultPrintContents(Option_t* opt) const
static ostream&RooPrintable::defaultPrintStream(ostream* os = 0)
virtual RooPrintable::StyleOptionRooPrintable::defaultPrintStyle(Option_t* opt) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(Option_t* opt)
virtual Long64_tDraw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
voiddump()
virtual voidTObject::Dump() constMENU
virtual RooAbsData*RooAbsData::emptyClone(const char* newName = 0, const char* newTitle = 0, const RooArgSet* vars = 0) const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidfill()
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TH1*fillHistogram(TH1* hist, const RooArgList& plotVars, const char* cuts = "", const char* cutRange = 0) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual const RooArgSet*get() const
virtual const RooArgSet*get(Int_t index) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Bool_tgetRange(RooRealVar& var, Double_t& lowest, Double_t& highest, Double_t marginFrac = 0, Bool_t symMode = kFALSE) const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tRooAbsData::isWeighted() const
Bool_tTObject::IsZombie() const
Double_tkurtosis(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
Double_tmean(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
RooRealVar*meanVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
Double_tmoment(RooRealVar& var, Double_t order, const char* cutSpec = 0, const char* cutRange = 0) const
Double_tmoment(RooRealVar& var, Double_t order, Double_t offset, const char* cutSpec = 0, const char* cutRange = 0) const
static voidRooPrintable::nameFieldLength(Int_t newLen)
virtual Bool_tTObject::Notify()
virtual Int_tnumEntries(Bool_t useWeights = kFALSE) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooTreeData&operator=(const RooTreeData&)
virtual voidTObject::Paint(Option_t* option = "")
virtual RooPlot*plotAsymOn(RooPlot* frame, const RooAbsCategoryLValue& asymCat, RooTreeData::PlotOpt o) const
virtual RooPlot*plotEffOn(RooPlot* frame, const RooAbsCategoryLValue& effCat, RooTreeData::PlotOpt o) const
virtual RooPlot*plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
virtual RooPlot*plotOn(RooPlot* frame, RooTreeData::PlotOpt o) const
virtual voidTObject::Pop()
virtual voidRooAbsData::Print(Option_t* options = 0) const
virtual voidRooPrintable::printAddress(ostream& os) const
virtual voidRooPrintable::printArgs(ostream& os) const
virtual voidRooAbsData::printClassName(ostream& os) const
virtual voidRooPrintable::printExtras(ostream& os) const
virtual voidprintMultiline(ostream& os, Int_t content, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidRooAbsData::printName(ostream& os) const
virtual voidRooPrintable::printStream(ostream& os, Int_t contents, RooPrintable::StyleOption style, TString indent = "") const
virtual voidRooAbsData::printTitle(ostream& os) const
virtual voidRooPrintable::printTree(ostream& os, TString indent = "") const
virtual voidRooPrintable::printValue(ostream& os) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
RooAbsData*RooAbsData::reduce(const char* cut)
RooAbsData*RooAbsData::reduce(const RooFormulaVar& cutVar)
RooAbsData*RooAbsData::reduce(const RooArgSet& varSubset, const char* cut = 0)
RooAbsData*RooAbsData::reduce(const RooArgSet& varSubset, const RooFormulaVar& cutVar)
RooAbsData*RooAbsData::reduce(RooCmdArg arg1, RooCmdArg arg2 = RooCmdArg(), RooCmdArg arg3 = RooCmdArg(), RooCmdArg arg4 = RooCmdArg(), RooCmdArg arg5 = RooCmdArg(), RooCmdArg arg6 = RooCmdArg(), RooCmdArg arg7 = RooCmdArg(), RooCmdArg arg8 = RooCmdArg())
virtual voidreset()
voidTObject::ResetBit(UInt_t f)
RooRealVar*rmsVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
Int_tScan(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidRooAbsData::setDirtyProp(Bool_t flag)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
Double_tsigma(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
virtual Int_tTNamed::Sizeof() const
Double_tskewness(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
virtual TList*split(const RooAbsCategory& splitCat) const
Double_tstandMoment(RooRealVar& var, Double_t order, const char* cutSpec = 0, const char* cutRange = 0) const
virtual RooPlot*statOn(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())
virtual RooPlot*statOn(RooPlot* frame, const char* what, const char* label = "", Int_t sigDigits = 2, Option_t* options = "NELU", Double_t xmin = 0.15, Double_t xmax = 0.65, Double_t ymax = 0.85, const char* cutSpec = 0, const char* cutRange = 0, const RooCmdArg* formatCmd = 0)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual Double_tRooAbsData::sumEntries(const char* cutSpec = 0, const char* cutRange = 0) const
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual Roo1DTable*table(const RooAbsCategory& cat, const char* cuts = "", const char* opts = "") const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
const TTree&tree() const
virtual voidTObject::UseCurrentStyle()
virtual Bool_tvalid() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Double_tRooAbsData::weight() const
virtual Double_tRooAbsData::weightError(RooAbsData::ErrorType etype = Poisson) const
virtual voidRooAbsData::weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
Bool_tallClientsCached(RooAbsArg*, const RooArgSet&)
virtual voidcacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
virtual RooAbsData*RooAbsData::cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
const TTree&cacheTree() const
voidcheckInit() const
voidcreateTree(const char* name, const char* title)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Int_tFill()
Int_tgetBranchBufferSize() const
Stat_tGetEntries() const
Int_tGetEntry(Int_t entry = 0, Int_t getall = 0)
voidinitCache(const RooArgSet& cachedVars)
voidloadValues(const char* filename, const char* treename, RooFormulaVar* cutVar = 0)
voidloadValues(const RooTreeData* t, RooFormulaVar* select = 0, const char* rangeName = 0, Int_t nStart = 0, Int_t nStop = 2000000000)
voidloadValues(const TTree* t, RooFormulaVar* cutVar = 0, const char* rangeName = 0, Int_t nStart = 0, Int_t nStop = 2000000000)
voidTObject::MakeZombie()
virtual voidoptimizeReadingWithCaching(RooAbsArg& arg, const RooArgSet& cacheList)
virtual RooAbsData*RooAbsData::reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange = 0, Int_t nStart = 0, Int_t nStop = 2000000000, Bool_t copyCache = kTRUE)
voidReset(Option_t* option = 0)
virtual voidresetCache()
Int_tScanCache(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0)
virtual voidsetArgStatus(const RooArgSet& set, Bool_t active)
voidsetBranchBufferSize(Int_t size)
voidtreePrint()
private:
voidinitialize()

Data Members

public:
enum RooAbsData::ErrorType { Poisson
SumW2
None
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum RooPrintable::ContentsOption { kName
kClassName
kValue
kArgs
kExtras
kAddress
kTitle
};
enum RooPrintable::StyleOption { kInline
kSingleLine
kStandard
kVerbose
kTreeStructure
};
protected:
TString_blindStringBlinding string (optionally read from ASCII files)
TIterator*RooAbsData::_cacheIter! Iterator over cached variables
TTree*_cacheTree! TTree holding the cached function values
RooArgSetRooAbsData::_cachedVars! External variables cached with this data set
Bool_t_defCtor! Was object constructed with default ctor?
static Int_t_defTreeBufSize
Bool_tRooAbsData::_doDirtyPropSwitch do (de)activate dirty state propagation when loading a data point
TIterator*RooAbsData::_iterator! Iterator over dimension variables
static Int_tRooPrintable::_nameLength
TTree*_treeTTree holding the data points
RooArgSet_truthTruth variables
RooArgSetRooAbsData::_varsDimensions of this data set
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Int_t Scan(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0)
   Interface function to TTree::Scan
Int_t ScanCache(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0)
 Interface function to TTree::Scan
Stat_t GetEntries() const
 Interface function to TTree::GetEntries
void Reset(Option_t* option = 0)
 Interface function to TTree::Reset
void treePrint()
 Interface function to TTree::Print
Int_t Fill()
 Interface function to TTree::Fill
Int_t GetEntry(Int_t entry = 0, Int_t getall = 0)
 Interface function to TTree::GetEntry
void Draw(Option_t* opt)
 Interface function to TTree::Draw()
Long64_t Draw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
 Interface function to TTree::Draw()
void createTree(const char* name, const char* title)
 Create TTree object that lives in memory, independent of current
 location of gDirectory
~RooTreeData()
 Destructor
void initialize()
 One-time initialization common to all constructor forms.  Attach
 variables of internal ArgSet to the corresponding TTree branches
void initCache(const RooArgSet& cachedVars)
 Initialize cache of dataset: attach variables of cache ArgSet
 to the corresponding TTree branches
void loadValues(const char* filename, const char* treename, RooFormulaVar* cutVar = 0)
 Load TTree name 'treename' from file 'filename' and pass call
 to loadValue(TTree*,...)
void loadValues(const RooTreeData *t, RooFormulaVar* select, const char* rangeName, Int_t nStart, Int_t nStop)
 Load values from dataset 't' into this data collection, optionally
 selecting events using 'select' RooFormulaVar

void loadValues(const TTree *t, RooFormulaVar* select, const char* /*rangeName*/, Int_t /*nStart*/, Int_t /*nStop*/)
 Load values from tree 't' into this data collection, optionally
 selecting events using 'select' RooFormulaVar

 The source tree 't' is first clone as not disturb its branch
 structure when retrieving information from it.
void dump()
 DEBUG: Dump contents
void resetCache()
 Remove tree with values of cached observables
 and clear list of cached observables
Bool_t changeObservableName(const char* from, const char* to)
 Change name of internal observable named 'from' into 'to'
void setArgStatus(const RooArgSet& set, Bool_t active)
 Activate or deactivate the branch status of the TTree branch associated
 with the given set of dataset observables
void cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
 Cache given RooAbsArgs with this tree: The tree is
 given direct write access of the args internal cache
 the args values is pre-calculated for all data points
 in this data collection. Upon a get() call, the
 internal cache of 'newVar' will be loaded with the
 precalculated value and it's dirty flag will be cleared.
const RooArgSet* get(Int_t index) const
 Load the n-th data point (n='index') in memory
 and return a pointer to the internal RooArgSet
 holding its coordinates.
RooAbsArg* addColumn(RooAbsArg& var, Bool_t adjustRange = kTRUE)
 Add a new column to the data set which holds the pre-calculated values
 of 'newVar'. This operation is only meaningful if 'newVar' is a derived
 value.

 The return value points to the added element holding 'newVar's value
 in the data collection. The element is always the corresponding fundamental
 type of 'newVar' (e.g. a RooRealVar if 'newVar' is a RooFormulaVar)

 Note: This function is explicitly NOT intended as a speed optimization
       opportunity for the user. Components of complex PDFs that can be
       precalculated with the dataset are automatically identified as such
       and will be precalculated when fitting to a dataset

       By forcibly precalculating functions with non-trivial Jacobians,
       or functions of multiple variables occurring in the data set,
       using addColumn(), you may alter the outcome of the fit.

       Only in cases where such a modification of fit behaviour is intentional,
       this function should be used.
RooArgSet* addColumns(const RooArgList& varList)
 Utility function to add multiple columns in one call
 See addColumn() for details
TList* split(const RooAbsCategory& splitCat) const
 Split dataset into subsets based on states of given splitCat in this dataset.
 A TList of RooDataSets is returned in which each RooDataSet is named
 after the state name of splitCat of which it contains the dataset subset.
 The observables splitCat itself is no longer present in the sub datasets.
 This method only creates datasets for states which have at least one entry
 The caller takes ownership of the returned list and its contents
RooPlot* plotOn(RooPlot* frame, const RooLinkedList& argList)
 Plot dataset on specified frame. By default an unbinned dataset will use the default binning of
 the target frame. A binned dataset will by default retain its intrinsic binning.

 The following optional named arguments can be used to modify the default behavior

 Data representation options

 Asymmetry(const RooCategory& c) -- Show the asymmetry of the data in given two-state category [F(+)-F(-)] / [F(+)+F(-)].
                                    Category must have two states with indices -1 and +1 or three states with indeces -1,0 and +1.
 Efficiency(const RooCategory& c)-- Show the efficiency F(acc)/[F(acc)+F(rej)]. Category must have two states with indices 0 and 1
 ErrorType(RooAbsData::EType)    -- Select the type of error drawn: Poisson (default) draws asymmetric Poisson
                                    confidence intervals. SumW2 draws symmetric sum-of-weights error
 Binning(double xlo, double xhi, -- Use specified binning to draw dataset
                      int nbins)
 Binning(const RooAbsBinning&)   -- Use specified binning to draw dataset
 Binning(const char* name)       -- Use binning with specified name to draw dataset
 RefreshNorm(Bool_t flag)        -- Force refreshing for PDF normalization information in frame.
                                    If set, any subsequent PDF will normalize to this dataset, even if it is
                                    not the first one added to the frame. By default only the 1st dataset
                                    added to a frame will update the normalization information

 Histogram drawing options

 DrawOption(const char* opt)     -- Select ROOT draw option for resulting TGraph object
 LineStyle(Int_t style)          -- Select line style by ROOT line style code, default is solid
 LineColor(Int_t color)          -- Select line color by ROOT color code, default is black
 LineWidth(Int_t width)          -- Select line with in pixels, default is 3
 MarkerStyle(Int_t style)        -- Select the ROOT marker style, default is 21
 MarkerColor(Int_t color)        -- Select the ROOT marker color, default is black
 MarkerSize(Double_t size)       -- Select the ROOT marker size
 FillStyle(Int_t style)          -- Select fill style, default is filled.
 FillColor(Int_t color)          -- Select fill color by ROOT color code
 XErrorSize(Double_t frac)       -- Select size of X error bar as fraction of the bin width, default is 1


 Misc. other options

 Name(const chat* name)          -- Give curve specified name in frame. Useful if curve is to be referenced later
 Invisble(Bool_t flag)           -- Add curve to frame, but do not display. Useful in combination AddTo()
 AddTo(const char* name,         -- Add constructed histogram to already existing histogram with given name and relative weight factors
 double_t wgtSelf, double_t wgtOther)



RooPlot * plotOn(RooPlot *frame, PlotOpt o)
 Create and fill a histogram of the frame's variable and append it to the frame.
 The frame variable must be one of the data sets dimensions.

 The plot range and the number of plot bins is determined by the parameters
 of the plot variable of the frame (RooAbsReal::setPlotRange(), RooAbsReal::setPlotBins())

 The optional cut string expression can be used to select the events to be plotted.
 The cut specification may refer to any variable contained in the data set

 The drawOptions are passed to the TH1::Draw() method
RooPlot* plotAsymOn(RooPlot* frame, const RooAbsCategoryLValue& asymCat, RooTreeData::PlotOpt o) const
 Create and fill a histogram with the asymmetry N[+] - N[-] / ( N[+] + N[-] ),
 where N(+/-) is the number of data points with asymCat=+1 and asymCat=-1
 as function of the frames variable. The asymmetry category 'asymCat' must
 have exactly 2 (or 3) states defined with index values +1,-1 (and 0)

 The plot range and the number of plot bins is determined by the parameters
 of the plot variable of the frame (RooAbsReal::setPlotRange(), RooAbsReal::setPlotBins())

 The optional cut string expression can be used to select the events to be plotted.
 The cut specification may refer to any variable contained in the data set

 The drawOptions are passed to the TH1::Draw() method
RooPlot* plotEffOn(RooPlot* frame, const RooAbsCategoryLValue& effCat, RooTreeData::PlotOpt o) const
 Create and fill a histogram with the effiency N[1] / ( N[1] + N[0] ),
 where N(1/0) is the number of data points with effCat=1 and effCat=0
 as function of the frames variable. The efficiency category 'effCat' must
 have exactly 2 +1 and 0.

 The plot range and the number of plot bins is determined by the parameters
 of the plot variable of the frame (RooAbsReal::setPlotRange(), RooAbsReal::setPlotBins())

 The optional cut string expression can be used to select the events to be plotted.
 The cut specification may refer to any variable contained in the data set

 The drawOptions are passed to the TH1::Draw() method
TH1 * fillHistogram(TH1* hist, const RooArgList& plotVars, const char* cuts = "", const char* cutRange = 0) const
 Loop over columns of our tree data and fill the input histogram. Returns a pointer to the
 input histogram, or zero in case of an error. The input histogram can be any TH1 subclass, and
 therefore of arbitrary dimension. Variables are matched with the (x,y,...) dimensions of the input
 histogram according to the order in which they appear in the input plotVars list.
Roo1DTable* table(const RooAbsCategory& cat, const char* cuts = "", const char* opts = "") const
 Create and fill a 1-dimensional table for given category column
 This functions is the equivalent of plotOn() for category dimensions.

 The optional cut string expression can be used to select the events to be tabulated
 The cut specification may refer to any variable contained in the data set

 The option string is currently not used
Double_t standMoment(RooRealVar& var, Double_t order, const char* cutSpec = 0, const char* cutRange = 0) const
 Calculate standardized moment < (X - <X>)^n > / sigma^n,  where n = order.

 If cutSpec and/or cutRange are specified
 the moment is calculated on the subset of the data which pass the C++ cut specification expression 'cutSpec'
 and/or are inside the range named 'cutRange'
Double_t moment(RooRealVar& var, Double_t order, const char* cutSpec = 0, const char* cutRange = 0) const
 Calculate moment < (X - <X>)^n > where n = order.

 If cutSpec and/or cutRange are specified
 the moment is calculated on the subset of the data which pass the C++ cut specification expression 'cutSpec'
 and/or are inside the range named 'cutRange'
Double_t moment(RooRealVar& var, Double_t order, Double_t offset, const char* cutSpec = 0, const char* cutRange = 0) const
 Return the 'order'-ed moment of observable 'var' in this dataset. If offset is non-zero it is subtracted
 from the values of 'var' prior to the moment calculation. If cutSpec and/or cutRange are specified
 the moment is calculated on the subset of the data which pass the C++ cut specification expression 'cutSpec'
 and/or are inside the range named 'cutRange'
RooRealVar* meanVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
 Create a RooRealVar containing the mean of observable 'var' in
 this dataset.  If cutSpec and/or cutRange are specified the
 moment is calculated on the subset of the data which pass the C++
 cut specification expression 'cutSpec' and/or are inside the
 range named 'cutRange'
RooRealVar* rmsVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
 Create a RooRealVar containing the RMS of observable 'var' in
 this dataset.  If cutSpec and/or cutRange are specified the
 moment is calculated on the subset of the data which pass the C++
 cut specification expression 'cutSpec' and/or are inside the
 range named 'cutRange'
Bool_t getRange(RooRealVar& var, Double_t& lowest, Double_t& highest, Double_t marginFrac = 0, Bool_t symMode = kFALSE) const
 Fill Doubles 'lowest' and 'highest' with the lowest and highest value of
 observable 'var' in this dataset. If the return value is kTRUE and error
 occurred
RooPlot* statOn(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())
 Add a box with statistics information to the specified frame. By default a box with the
 event count, mean and rms of the plotted variable is added.

 The following optional named arguments are accepted

   What(const char* whatstr)          -- Controls what is printed: "N" = count, "M" is mean, "R" is RMS.
   Format(const char* optStr)         -- Classing [arameter formatting options, provided for backward compatibility
   Format(const char* what,...)       -- Parameter formatting options, details given below
   Label(const chat* label)           -- Add header label to parameter box
   Layout(Double_t xmin,              -- Specify relative position of left,right side of box and top of box. Position of
       Double_t xmax, Double_t ymax)     bottom of box is calculated automatically from number lines in box
   Cut(const char* expression)        -- Apply given cut expression to data when calculating statistics
   CutRange(const char* rangeName)    -- Only consider events within given range when calculating statistics. Multiple
                                         CutRange() argument may be specified to combine ranges

 The Format(const char* what,...) has the following structure

   const char* what          -- Controls what is shown. "N" adds name, "E" adds error,
                                "A" shows asymmetric error, "U" shows unit, "H" hides the value
   FixedPrecision(int n)     -- Controls precision, set fixed number of digits
   AutoPrecision(int n)      -- Controls precision. Number of shown digits is calculated from error
                                + n specified additional digits (1 is sensible default)
   VerbatimName(Bool_t flag) -- Put variable name in a \verb+   + clause.

RooPlot* statOn(RooPlot* frame, const char* what, const char* label = "", Int_t sigDigits = 2, Option_t* options = "NELU", Double_t xmin = 0.15, Double_t xmax = 0.65, Double_t ymax = 0.85, const char* cutSpec = 0, const char* cutRange = 0, const RooCmdArg* formatCmd = 0)
 Implementation back-end of statOn() mehtod with named arguments
Int_t numEntries(Bool_t useWeights = kFALSE) const
 Return the number of entries in this dataset
void printMultiline(ostream& os, Int_t content, Bool_t verbose = kFALSE, TString indent = "") const
 Detailed printing interface
void optimizeReadingWithCaching(RooAbsArg& arg, const RooArgSet& cacheList)
 Prepare dataset for use with cached constant terms listed in
 'cacheList' of expression 'arg'. Deactivate tree branches
 for any dataset observable that is either not used at all,
 or is used exclusively by cached branch nodes.
Bool_t allClientsCached(RooAbsArg* , const RooArgSet& )
 Utility function that determines if all clients of object 'var'
 appear in given list of cached nodes.
Bool_t valid() const
 Return true if currently loaded coordinate is considered valid within
 the current range definitions of all observables
void fill()
 Load a given row of data
{ Fill() ; }
const RooArgSet* get(Int_t index) const
void reset()
{ Reset() ; }
Double_t mean(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
{ return moment(var,0,0,cutSpec,cutRange) ; }
Double_t sigma(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
{ return moment(var,1,cutSpec,cutRange) ; }
Double_t skewness(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
{ return standMoment(var,3,cutSpec,cutRange) ; }
Double_t kurtosis(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
{ return standMoment(var,4,cutSpec,cutRange) ; }
const TTree& tree() const
{ return *_tree ; }
const TTree& cacheTree() const
{ return *_cacheTree ; }
void setBranchBufferSize(Int_t size)
 TTree Branch buffer size contro
{ _defTreeBufSize = size ; }
Int_t getBranchBufferSize() const
{ return _defTreeBufSize ; }
void checkInit() const

Last change: Fri Dec 12 09:06:03 2008
Last generated: 2008-12-12 09:06
Copyright (c) 2000-2005, Regents of the University of California *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.