class RooAbsData: public TNamed, public RooPrintable



RooAbsData is the common abstract base class for binned and unbinned datasets. The abstract interface defines plotting and tabulating entry points for its contents and provides an iterator over its elements (bins for binned data sets, data points for unbinned datasets).


Function Members (Methods)

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

public:
virtual~RooAbsData()
voidTObject::AbstractMethod(const char* method) const
virtual voidadd(const RooArgSet& row, Double_t weight = 1)
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*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_tdefaultPrintContents(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 voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual 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 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_tisWeighted() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) 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)
RooAbsData&operator=(const RooAbsData&)
virtual voidTObject::Paint(Option_t* option = "")
virtual RooPlot*plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
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
virtual voidTObject::Pop()
virtual voidPrint(Option_t* options = 0) const
virtual voidRooPrintable::printArgs(ostream& os) const
virtual voidprintClassName(ostream& os) const
virtual voidRooPrintable::printExtras(ostream& os) const
virtual voidRooPrintable::printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidprintName(ostream& os) const
virtual voidRooPrintable::printStream(ostream& os, Int_t contents, RooPrintable::StyleOption style, TString indent = "") const
virtual voidprintTitle(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*reduce(const char* cut)
RooAbsData*reduce(const RooFormulaVar& cutVar)
RooAbsData*reduce(const RooArgSet& varSubset, const char* cut = 0)
RooAbsData*reduce(const RooArgSet& varSubset, const RooFormulaVar& cutVar)
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)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
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)
virtual Int_tTNamed::Sizeof() const
virtual TList*split(const RooAbsCategory& splitCat) const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual Double_tsumEntries(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
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Double_tweight() const
virtual Double_tweightError(RooAbsData::ErrorType etype = Poisson) const
virtual voidweightError(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:
virtual voidcacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
virtual RooAbsData*cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
virtual voidoptimizeReadingWithCaching(RooAbsArg& arg, const RooArgSet& cacheList)
virtual RooAbsData*reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange = 0, Int_t nStart = 0, Int_t nStop = 2000000000, Bool_t copyCache = kTRUE)
virtual voidresetCache()
virtual voidsetArgStatus(const RooArgSet& set, Bool_t active)
voidsetDirtyProp(Bool_t flag)

Data Members

public:
enum ErrorType { Poisson
SumW2
};
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:
TIterator*_cacheIter! Iterator over cached variables
RooArgSet_cachedVars! External variables cached with this data set
Bool_t_doDirtyPropSwitch do (de)activate dirty state propagation when loading a data point
TIterator*_iterator! Iterator over dimension variables
static Int_tRooPrintable::_nameLength
RooArgSet_varsDimensions of this data set
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

~RooAbsData()
 Destructor
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())
 Create a reduced copy of this dataset. The caller takes ownership of the returned dataset

 The following optional named arguments are accepted

   SelectVars(const RooArgSet& vars) -- Only retain the listed observables in the output dataset
   Cut(const char* expression)       -- Only retain event surviving the given cut expression
   Cut(const RooFormulaVar& expr)    -- Only retain event surviving the given cut formula
   CutRange(const char* name)        -- Only retain events inside range with given name. Multiple CutRange
                                        arguments may be given to select multiple ranges
   EventRange(int lo, int hi)        -- Only retain events with given sequential event numbers
   Name(const char* name)            -- Give specified name to output dataset
   Title(const char* name)           -- Give specified title to output dataset

RooAbsData* reduce(const char* cut)
 Create a subset of the data set by applying the given cut on the data points.
 The cut expression can refer to any variable in the data set. For cuts involving
 other variables, such as intermediate formula objects, use the equivalent
 reduce method specifying the as a RooFormulVar reference.
RooAbsData* reduce(const RooFormulaVar& cutVar)
 Create a subset of the data set by applying the given cut on the data points.
 The 'cutVar' formula variable is used to select the subset of data points to be
 retained in the reduced data collection.
RooAbsData* reduce(const RooArgSet& varSubset, const char* cut)
 Create a subset of the data set by applying the given cut on the data points
 and reducing the dimensions to the specified set.

 The cut expression can refer to any variable in the data set. For cuts involving
 other variables, such as intermediate formula objects, use the equivalent
 reduce method specifying the as a RooFormulVar reference.
RooAbsData* reduce(const RooArgSet& varSubset, const RooFormulaVar& cutVar)
 Create a subset of the data set by applying the given cut on the data points
 and reducing the dimensions to the specified set.

 The 'cutVar' formula variable is used to select the subset of data points to be
 retained in the reduced data collection.
Double_t weightError(RooAbsData::ErrorType etype = Poisson) const
 Return error on current weight (dummy implementation returning zero)
void weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const
 Return asymmetric error on weight. (Dummy implementation returning zero)
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. 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 daya 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.
 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
 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)


TH1 * 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
 Create and fill a ROOT histogram TH1,TH2 or TH3 with the values of this dataset.

 This function accepts the following arguments

 name -- Name of the ROOT histogram
 xvar -- Observable to be mapped on x axis of ROOT histogram

 Binning(const char* name)                    -- Apply binning with given name to x axis of histogram
 Binning(RooAbsBinning& binning)              -- Apply specified binning to x axis of histogram
 Binning(int nbins, double lo, double hi)     -- Apply specified binning to x axis of histogram

 YVar(const RooAbsRealLValue& var,...)    -- Observable to be mapped on y axis of ROOT histogram
 ZVar(const RooAbsRealLValue& var,...)    -- Observable to be mapped on z axis of ROOT histogram

 The YVar() and ZVar() arguments can be supplied with optional Binning() arguments to control the binning of the Y and Z axes, e.g.
 createHistogram("histo",x,Binning(-1,1,20), YVar(y,Binning(-1,1,30)), ZVar(z,Binning("zbinning")))

 The caller takes ownership of the returned histogram
void printName(ostream& os) const
 Print name of dataset
void printTitle(ostream& os) const
 Print title of dataset
void printClassName(ostream& os) const
 Print class name of dataset
Int_t defaultPrintContents(Option_t* opt) const
 Define default print options, for a given print style
RooAbsData* emptyClone(const char* newName = 0, const char* newTitle = 0, const RooArgSet* vars = 0) const
Bool_t changeObservableName(const char* from, const char* to)
 Change name of observable
void add(const RooArgSet& row, Double_t weight = 1)
 Add one ore more rows of data
void fill()
const RooArgSet* get(Int_t index) const
 Load a given row of data
Double_t weight()
const RooArgSet* get(Int_t index) const
Int_t numEntries(Bool_t useWeights = kFALSE) const
Double_t sumEntries(const char* cutSpec = 0, const char* cutRange = 0) const
Bool_t isWeighted()
 Do events in dataset have weights?
void reset()
Roo1DTable* table(const RooAbsCategory& cat, const char* cuts = "", const char* opts = "") const
 Plot the distribution of a real valued arg
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
TList* split(const RooAbsCategory& splitCat) const
 Split a dataset by a category
TH1 * fillHistogram(TH1* hist, const RooArgList& plotVars, const char* cuts = "", const char* cutRange = 0) const
 Fill an existing histogram
void Print(Option_t* options = 0) const
 Printing interface (human readable)
void optimizeReadingWithCaching(RooAbsArg& arg, const RooArgSet& cacheList)
RooAbsData* cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
void cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
void resetCache()
void setArgStatus(const RooArgSet& set, Bool_t active)
void setDirtyProp(Bool_t flag)
 Control propagation of dirty flags from observables in dataset
RooAbsData* reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange = 0, Int_t nStart = 0, Int_t nStop = 2000000000, Bool_t copyCache = kTRUE)
 Column structure definition

Last change: Wed Jun 25 08:31:34 2008
Last generated: 2008-06-25 08:31
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.