class RooDataSet: public RooTreeData, public RooDirItem



RooDataSet is a container class to hold unbinned data. Each data point in N-dimensional space is represented by a RooArgSet of RooRealVar, RooCategory or RooStringVar objects

Function Members (Methods)

public:
RooDataSet()
RooDataSet(RooDataSet const& other, const char* newname = 0)
RooDataSet(const char* name, const char* title, const RooArgSet& vars, const char* wgtVarName = 0)
RooDataSet(const char* name, const char* title, RooDataSet* ntuple, const RooArgSet& vars, const char* cuts = 0, const char* wgtVarName = 0)
RooDataSet(const char* name, const char* title, RooDataSet* t, const RooArgSet& vars, const RooFormulaVar& cutVar, const char* wgtVarName = 0)
RooDataSet(const char* name, const char* title, TTree* t, const RooArgSet& vars, const RooFormulaVar& cutVar, const char* wgtVarName = 0)
RooDataSet(const char* name, const char* title, TTree* ntuple, const RooArgSet& vars, const char* cuts = 0, const char* wgtVarName = 0)
RooDataSet(const char* name, const char* filename, const char* treename, const RooArgSet& vars, const char* cuts = 0, const char* wgtVarName = 0)
virtual~RooDataSet()
voidTObject::AbstractMethod(const char* method) const
virtual voidadd(const RooArgSet& row, Double_t weight = 1.0)
virtual RooAbsArg*addColumn(RooAbsArg& var)
virtual RooArgSet*addColumns(const RooArgList& varList)
voidappend(RooTreeData& data)
virtual voidTObject::AppendPad(Option_t* option = "")
RooDataHist*binnedClone(const char* newName = 0, const char* newTitle = 0) const
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tRooTreeData::changeObservableName(const char* from, const char* to)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*Clone(const char* newname = 0) const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
TH2F*createHistogram(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, const char* cuts = "", const char* name = "hist") const
TH2F*createHistogram(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, Int_t nx, Int_t ny, const char* cuts = "", const char* name = "hist") 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 voidRooTreeData::Draw(Option_t* opt)
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
voidRooTreeData::dump()
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 voidRooTreeData::fill()
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TH1*RooTreeData::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
Bool_tRooTreeData::getRange(RooRealVar& var, Double_t& lowest, Double_t& highest) 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
RooRealVar*RooTreeData::meanVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
Bool_tmerge(RooDataSet* data1, RooDataSet* data2 = 0, RooDataSet* data3 = 0, RooDataSet* data4 = 0, RooDataSet* data5 = 0, RooDataSet* data6 = 0)
Double_tRooTreeData::moment(RooRealVar& var, Double_t order, Double_t offset = 0, 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)
RooDataSet&operator=(const RooDataSet&)
virtual voidTObject::Paint(Option_t* option = "")
virtual RooPlot*RooTreeData::plotAsymOn(RooPlot* frame, const RooAbsCategoryLValue& asymCat, RooTreeData::PlotOpt o) const
virtual RooPlot*RooTreeData::plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
virtual RooPlot*RooTreeData::plotOn(RooPlot* frame, RooTreeData::PlotOpt o) const
virtual voidTObject::Pop()
virtual voidRooAbsData::Print(Option_t* options = 0) const
virtual voidprintArgs(ostream& os) const
virtual voidRooAbsData::printClassName(ostream& os) const
virtual voidRooPrintable::printExtras(ostream& os) const
virtual voidprintMultiline(ostream& os, Int_t contents, 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 voidprintValue(ostream& os) const
virtual Int_tTObject::Read(const char* name)
static RooDataSet*read(const char* filename, const RooArgList& variables, const char* opts = "", const char* commonPath = "", const char* indexCatName = 0)
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 voidRooTreeData::reset()
voidTObject::ResetBit(UInt_t f)
RooRealVar*RooTreeData::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_tRooTreeData::Scan(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)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetName(const char* name)
virtual voidSetNameTitle(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)
voidsetWeightVar(const char* name = 0)
voidsetWeightVar(const RooAbsArg& arg)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual TList*RooTreeData::split(const RooAbsCategory& splitCat) const
virtual RooPlot*RooTreeData::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*RooTreeData::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_tsumEntries(const char* cutSpec = 0, const char* cutRange = 0) const
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual Roo1DTable*RooTreeData::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&RooTreeData::tree() const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Double_tweight() const
virtual Double_tRooAbsData::weightError(RooAbsData::ErrorType etype = Poisson) const
virtual voidRooAbsData::weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const
Bool_twrite(const char* filename)
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:
RooDataSet(const char* name, const char* title, RooDataSet* ntuple, const RooArgSet& vars, const RooFormulaVar* cutVar, const char* cutRange, int nStart, int nStop, Bool_t copyCache)
RooArgSetaddWgtVar(const RooArgSet& origVars, const RooAbsArg* wgtVar)
Bool_tRooTreeData::allClientsCached(RooAbsArg*, const RooArgSet&)
voidRooDirItem::appendToDir(TObject* obj, Bool_t forceMemoryResident = kFALSE)
virtual voidRooTreeData::cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
virtual RooAbsData*cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
const TTree&RooTreeData::cacheTree() const
voidRooTreeData::checkInit() const
voidRooTreeData::createTree(const char* name, const char* title)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Int_tRooTreeData::Fill()
Int_tRooTreeData::getBranchBufferSize() const
Stat_tRooTreeData::GetEntries() const
Int_tRooTreeData::GetEntry(Int_t entry = 0, Int_t getall = 0)
voidRooTreeData::initCache(const RooArgSet& cachedVars)
voidinitialize(const char* wgtVarName)
voidRooTreeData::loadValues(const char* filename, const char* treename, RooFormulaVar* cutVar = 0)
voidRooTreeData::loadValues(const RooTreeData* t, RooFormulaVar* select = 0, const char* rangeName = 0, Int_t nStart = 0, Int_t nStop = 2000000000)
voidRooTreeData::loadValues(const TTree* t, RooFormulaVar* cutVar = 0, const char* rangeName = 0, Int_t nStart = 0, Int_t nStop = 2000000000)
voidTObject::MakeZombie()
Bool_tmerge(const TList& data)
virtual voidRooTreeData::optimizeReadingWithCaching(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)
voidRooDirItem::removeFromDir(TObject* obj)
voidRooTreeData::Reset(Option_t* option = 0)
virtual voidRooTreeData::resetCache()
Int_tRooTreeData::ScanCache(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0)
virtual voidRooTreeData::setArgStatus(const RooArgSet& set, Bool_t active)
voidRooTreeData::setBranchBufferSize(Int_t size)
voidRooAbsData::setDirtyProp(Bool_t flag)
voidRooTreeData::treePrint()

Data Members

public:
enum RooAbsData::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:
TStringRooTreeData::_blindStringBlinding string (optionally read from ASCII files)
TIterator*RooAbsData::_cacheIter! Iterator over cached variables
TTree*RooTreeData::_cacheTree! TTree holding the cached function values
RooArgSetRooAbsData::_cachedVars! External variables cached with this data set
Bool_tRooTreeData::_defCtor! Was object constructed with default ctor?
static Int_tRooTreeData::_defTreeBufSize
TDirectory*RooDirItem::_dir! Associated directory
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*RooTreeData::_treeTTree holding the data points
RooArgSetRooTreeData::_truthTruth variables
RooArgSetRooAbsData::_varsDimensions of this data set
RooArgSet_varsNoWgtVars without weight variable
RooRealVar*_wgtVarPointer to weight variable (if set)
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooDataSet()
 Default constructor for persistence
RooDataSet(const char* name, const char* title, const RooArgSet& vars, const char* wgtVarName = 0)
 Constructor of an empty data set from a RooArgSet defining the dimensions
 of the data space.
RooDataSet(const char *name, const char *title, RooDataSet *dset, const RooArgSet& vars, const char *cuts, const char* wgtVarName)
 Constructor of a data set from (part of) an existing data
 set. The dimensions of the data set are defined by the 'vars'
 RooArgSet, which can be identical to 'dset' dimensions, or a
 subset thereof. The 'cuts' string is an optional RooFormula
 expression and can be used to select the subset of the data
 points in 'dset' to be copied. The cut expression can refer to
 any variable in the source dataset. For cuts involving variables
 other than those contained in the source data set, such as
 intermediate formula objects, use the equivalent constructor
 accepting RooFormulaVar reference as cut specification

 For most uses the RooAbsData::reduce() wrapper function, which
 uses this constructor, is the most convenient way to create a
 subset of an existing data

RooDataSet(const char *name, const char *title, RooDataSet *t, const RooArgSet& vars, const RooFormulaVar& cutVar, const char* wgtVarName)
 Constructor of a data set from (part of) an existing data
 set. The dimensions of the data set are defined by the 'vars'
 RooArgSet, which can be identical to 'dset' dimensions, or a
 subset thereof. The 'cutVar' formula variable is used to select
 the subset of data points to be copied.  For subsets without
 selection on the data points, or involving cuts operating
 exclusively and directly on the data set dimensions, the
 equivalent constructor with a string based cut expression is
 recommended.

 For most uses the RooAbsData::reduce() wrapper function, which
 uses this constructor, is the most convenient way to create a
 subset of an existing data
RooDataSet(const char *name, const char *title, TTree *t, const RooArgSet& vars, const RooFormulaVar& cutVar, const char* wgtVarName)
 Constructor of a data set from (part of) an ROOT TTRee. The dimensions
 of the data set are defined by the 'vars' RooArgSet. For each dimension
 specified, the TTree must have a branch with the same name. For category
 branches, this branch should contain the numeric index value. Real dimensions
 can be constructed from either 'Double_t' or 'Float_t' tree branches. In the
 latter case, an automatic conversion is applied.

 The 'cutVar' formula variable
 is used to select the subset of data points to be copied.
 For subsets without selection on the data points, or involving cuts
 operating exclusively and directly on the data set dimensions, the equivalent
 constructor with a string based cut expression is recommended.
RooDataSet(const char *name, const char *title, TTree *ntuple, const RooArgSet& vars, const char *cuts, const char* wgtVarName)
 Constructor of a data set from (part of) an ROOT TTRee. The dimensions
 of the data set are defined by the 'vars' RooArgSet. For each dimension
 specified, the TTree must have a branch with the same name. For category
 branches, this branch should contain the numeric index value. Real dimensions
 can be constructed from either 'Double_t' or 'Float_t' tree branches. In the
 latter case, an automatic conversion is applied.

 The 'cuts' string is an optional
 RooFormula expression and can be used to select the subset of the data points
 in 'dset' to be copied. The cut expression can refer to any variable in the
 vars argset. For cuts involving variables other than those contained in
 the vars argset, such as intermediate formula objects, use the
 equivalent constructor accepting RooFormulaVar reference as cut specification

RooDataSet(const char *name, const char *filename, const char *treename, const RooArgSet& vars, const char *cuts, const char* wgtVarName)
 Constructor of a data set from (part of) a named ROOT TTRee in given ROOT file.
 The dimensions of the data set are defined by the 'vars' RooArgSet. For each dimension
 specified, the TTree must have a branch with the same name. For category
 branches, this branch should contain the numeric index value. Real dimensions
 can be constructed from either 'Double_t' or 'Float_t' tree branches. In the
 latter case, an automatic conversion is applied.

 The 'cuts' string is an optional
 RooFormula expression and can be used to select the subset of the data points
 in 'dset' to be copied. The cut expression can refer to any variable in the
 vars argset. For cuts involving variables other than those contained in
 the vars argset, such as intermediate formula objects, use the
 equivalent constructor accepting RooFormulaVar reference as cut specification

RooDataSet(RooDataSet const& other, const char* newname = 0)
 Copy constructor
RooArgSet addWgtVar(const RooArgSet& origVars, const RooAbsArg* wgtVar)
 Helper function for constructor that adds optional weight variable to construct
 total set of observables
RooDataSet(const char* name, const char* title, RooDataSet* ntuple, const RooArgSet& vars, const RooFormulaVar* cutVar, const char* cutRange, int nStart, int nStop, Bool_t copyCache)
 Protected constructor for internal use only
RooAbsData* cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
 Return a clone of this dataset containing only the cached variables
RooAbsData* emptyClone(const char* newName = 0, const char* newTitle = 0, const RooArgSet* vars = 0) const
 Return an empty clone of this dataset. If vars is not null, only the variables in vars
 are added to the definition of the empty clone
void initialize(const char* wgtVarName)
 Initialize the dataset. If wgtVarName is not null, interpret the observable
 with that name as event weight
RooAbsData* reduceEng(const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange = 0, Int_t nStart = 0, Int_t nStop = 2000000000, Bool_t copyCache = kTRUE)
 Implementation of RooAbsData virtual method that drives the RooAbsData::reduce() methods
~RooDataSet()
 Destructor
RooDataHist* binnedClone(const char* newName = 0, const char* newTitle = 0) const
 Return binned clone of this dataset
void setWeightVar(const char* name)
 Designate observable with given name as event weight
Double_t weight()
 Return event weight of current event
const RooArgSet* get(Int_t index) const
 Return RooArgSet with coordinates of event 'index'
Int_t numEntries(Bool_t useWeights = kFALSE) const
 Return either number of entries (useWeights=false) or
 rounded sum of weights (useWeights=true). Use the
 sumEntries() function to get the exact sum of weight
Double_t sumEntries(const char* cutSpec = 0, const char* cutRange = 0) const
 Return the sum of weights in all entries matching cutSpec (if specified)
 and in named range cutRange (if specified)
const RooArgSet* get(Int_t index) const
 Return a RooArgSet with the coordinates of the current event
void add(const RooArgSet& row, Double_t weight = 1.0)
 Add a data point, with its coordinates specified in the 'data' argset, to the data set.
 Any variables present in 'data' but not in the dataset will be silently ignored

Bool_t merge(RooDataSet* data1, RooDataSet* data2 = 0, RooDataSet* data3 = 0, RooDataSet* data4 = 0, RooDataSet* data5 = 0, RooDataSet* data6 = 0)
 Merge columns of supplied data set(s) with this data set.  All
 data sets must have equal number of entries.  In case of
 duplicate columns the column of the last dataset in the list
 prevails
Bool_t merge(const TList& data)
 Merge columns of supplied data set(s) with this data set.  All
 data sets must have equal number of entries.  In case of
 duplicate columns the column of the last dataset in the list
 prevails
void append(RooTreeData& data)
 Add all data points of given data set to this data set.
 Observable in 'data' that are not in this dataset
 with not be transferred
RooAbsArg* addColumn(RooAbsArg& var)
 Add a column with the values of the given (function) argument
 to this dataset. The function value is calculated for each
 event using the observable values of each event in case the
 function depends on variables with names that are identical
 to the observable names in the dataset
RooArgSet* addColumns(const RooArgList& varList)
 Add a column with the values of the given list of (function)
 argument to this dataset. Each function value is calculated for
 each event using the observable values of the event in case the
 function depends on variables with names that are identical to
 the observable names in the dataset
TH2F* createHistogram(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, const char* cuts = "", const char* name = "hist") const
 Create a TH2F histogram of the distribution of the specified variable
 using this dataset. Apply any cuts to select which events are used.
 The variable being plotted can either be contained directly in this
 dataset, or else be a function of the variables in this dataset.
 The histogram will be created using RooAbsReal::createHistogram() with
 the name provided (with our dataset name prepended).
TH2F* createHistogram(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, Int_t nx, Int_t ny, const char* cuts = "", const char* name = "hist") const
 Create a TH2F histogram of the distribution of the specified variable
 using this dataset. Apply any cuts to select which events are used.
 The variable being plotted can either be contained directly in this
 dataset, or else be a function of the variables in this dataset.
 The histogram will be created using RooAbsReal::createHistogram() with
 the name provided (with our dataset name prepended).
RooDataSet * read(const char* filename, const RooArgList& variables, const char* opts = "", const char* commonPath = "", const char* indexCatName = 0)
 Read given list of ascii files, and construct a data set, using the given
 ArgList as structure definition.

 Multiple file names in fileList should be comma separated. Each
 file is optionally prefixed with 'commonPath' if such a path is
 provided

 The arglist specifies the dimensions of the dataset to be built
 and describes the order in which these dimensions appear in the
 ascii files to be read.

 Each line in the ascii file should contain N white space separated
 tokens, with N the number of args in 'variables'. Any text beyond
 N tokens will be ignored with a warning message.
 [ NB: This format is written by RooArgList::writeToStream() ]

 If the value of any of the variables on a given line exceeds the
 fit range associated with that dimension, the entire line will be
 ignored. A warning message is printed in each case, unless the
 'Q' verbose option is given. (Option 'D' will provide additional
 debugging information) The number of events read and skipped
 is always summarized at the end.

 When multiple files are read, a RooCategory arg in 'variables' can
 optionally be designated to hold information about the source file
 of each data point. This feature is enabled by giving the name
 of the (already existing) category variable in 'indexCatName'

 If no further information is given a label name 'fileNNN' will
 be assigned to each event, where NNN is the sequential number of
 the source file in 'fileList'.

 Alternatively it is possible to override the default label names
 of the index category by specifying them in the fileList string:
 When instead of "file1.txt,file2.txt" the string
 "file1.txt:FOO,file2.txt:BAR" is specified, a state named "FOO"
 is assigned to the index category for each event originating from
 file1.txt. The labels FOO,BAR may be predefined in the index
 category via defineType(), but don't have to be

 Finally, one can also assign the same label to multiple files,
 either by specifying "file1.txt:FOO,file2,txt:FOO,file3.txt:BAR"
 or "file1.txt,file2.txt:FOO,file3.txt:BAR"

 Make working copy of variables list
Bool_t write(const char* filename)
 Write the contents of this dataset to an ASCII file with the specified name
 Each event will be written as a single line containing the written values
 of each observable in the order they were declared in the dataset and
 separated by whitespaces
void printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
 Print info about this dataset to the specified output stream.

   Standard: number of entries
      Shape: list of variables we define & were generated with
void printValue(ostream& os) const
 Print value of the dataset, i.e. the sum of weights contained in the dataset
void printArgs(ostream& os) const
 Print argument of dataset, i.e. the observable names
void SetName(const char* name)
 Change the name of this dataset into the given name
void SetNameTitle(const char* name, const char* title)
 Change the title of this dataset into the given name
TObject* Clone(const char* newname = 0) const
{ return new RooDataSet(*this,newname?newname:GetName()) ; }
void setWeightVar(const char* name=0)
Bool_t isWeighted()
 Return true if dataset contains weighted events

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