library: libRooFit #include "RooDataSet.h" |
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() |
void | TObject::AbstractMethod(const char* method) const |
virtual void | add(const RooArgSet& row, Double_t weight = 1.0) |
virtual RooAbsArg* | addColumn(RooAbsArg& var) |
virtual RooArgSet* | addColumns(const RooArgList& varList) |
void | append(RooTreeData& data) |
virtual void | TObject::AppendPad(Option_t* option = "") |
RooDataHist* | binnedClone(const char* newName = "0", const char* newTitle = "0") const |
virtual void | TObject::Browse(TBrowser* b) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TNamed::Clear(Option_t* option = "") |
virtual TObject* | Clone(const char* newname = "0") const |
virtual Int_t | TNamed::Compare(const TObject* obj) const |
virtual void | TNamed::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 |
static ostream& | RooPrintable::defaultStream(ostream* os = 0) |
virtual void | TObject::Delete(Option_t* option = "") |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() const |
virtual TObject* | TObject::DrawClone(Option_t* option = "") const |
void | RooTreeData::dump() |
virtual void | TObject::Dump() const |
virtual RooAbsData* | emptyClone(const char* newName = "0", const char* newTitle = "0", const RooArgSet* vars = 0) const |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual void | RooTreeData::fill() |
virtual void | TNamed::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_t | TObject::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_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
Bool_t | RooTreeData::getRange(RooRealVar& var, Double_t& lowest, Double_t& highest) const |
virtual const char* | TNamed::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TNamed::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
static void | RooPrintable::inLinePrint(ostream& os, const TNamed& named) |
virtual void | TObject::Inspect() const |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TNamed::IsSortable() const |
virtual Bool_t | isWeighted() const |
Bool_t | TObject::IsZombie() const |
RooPrintable::PrintOption | RooPrintable::lessVerbose(RooPrintable::PrintOption opt) const |
virtual void | TNamed::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
RooRealVar* | RooTreeData::meanVar(RooRealVar& var, const char* cutSpec = "0", const char* cutRange = "0") const |
Bool_t | merge(RooDataSet* data1, RooDataSet* data2 = 0, RooDataSet* data3 = 0, RooDataSet* data4 = 0, RooDataSet* data5 = 0, RooDataSet* data6 = 0) |
Double_t | RooTreeData::moment(RooRealVar& var, Double_t order, Double_t offset = 0, const char* cutSpec = "0", const char* cutRange = "0") const |
virtual Bool_t | TObject::Notify() |
virtual Int_t | numEntries(Bool_t useWeights = kFALSE) const |
static void | RooPrintable::oneLinePrint(ostream& os, const TNamed& named) |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::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 void | TObject::Paint(Option_t* option = "") |
RooPrintable::PrintOption | RooPrintable::parseOptions(Option_t* options) const |
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 void | TObject::Pop() |
virtual void | RooAbsData::Print(Option_t* options = "0") const |
virtual void | printToStream(ostream& os, RooPrintable::PrintOption opt, TString indent) const |
virtual Int_t | TObject::Read(const char* name) |
static RooDataSet* | read(const char* filename, const RooArgList& variables, const char* opts = "", const char* commonPath = "", const char* indexCatName = "0") |
virtual void | TObject::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 void | RooTreeData::reset() |
void | TObject::ResetBit(UInt_t f) |
RooRealVar* | RooTreeData::rmsVar(RooRealVar& var, const char* cutSpec = "0", const char* cutRange = "0") const |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") const |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
Int_t | RooTreeData::Scan(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0) |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TObject::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
virtual void | TNamed::SetName(const char* name) |
virtual void | TNamed::SetNameTitle(const char* name, const char* title) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TNamed::SetTitle(const char* title = "") |
virtual void | TObject::SetUniqueID(UInt_t uid) |
void | setWeightVar(const char* name = "0") |
void | setWeightVar(const RooAbsArg& arg) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual Int_t | TNamed::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 void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual Double_t | sumEntries(const char* cutSpec = "0", const char* cutRange = "0") const |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
virtual Roo1DTable* | RooTreeData::table(const RooAbsCategory& cat, const char* cuts = "", const char* opts = "") const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
const TTree& | RooTreeData::tree() const |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Double_t | weight() const |
virtual Double_t | RooAbsData::weightError(RooAbsData::ErrorType etype = Poisson) const |
virtual void | RooAbsData::weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const |
Bool_t | write(const char* filename) |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const |
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) | |
RooArgSet | addWgtVar(const RooArgSet& origVars, const RooAbsArg* wgtVar) |
void | RooDirItem::appendToDir(TObject* obj, Bool_t forceMemoryResident = kFALSE) |
virtual void | RooTreeData::cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0) |
virtual RooAbsData* | cacheClone(const RooArgSet* newCacheVars, const char* newName = "0") |
const TTree& | RooTreeData::cacheTree() const |
void | RooTreeData::checkInit() const |
void | RooTreeData::createTree(const char* name, const char* title) |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
Int_t | RooTreeData::Fill() |
Int_t | RooTreeData::getBranchBufferSize() const |
Stat_t | RooTreeData::GetEntries() const |
Int_t | RooTreeData::GetEntry(Int_t entry = 0, Int_t getall = 0) |
void | RooTreeData::initCache(const RooArgSet& cachedVars) |
void | initialize(const char* wgtVarName) |
void | RooTreeData::loadValues(const char* filename, const char* treename, RooFormulaVar* cutVar = 0) |
void | RooTreeData::loadValues(const RooTreeData* t, RooFormulaVar* select = 0, const char* rangeName = "0", Int_t nStart = 0, Int_t nStop = 2000000000) |
void | RooTreeData::loadValues(const TTree* t, RooFormulaVar* cutVar = 0, const char* rangeName = "0", Int_t nStart = 0, Int_t nStop = 2000000000) |
void | TObject::MakeZombie() |
Bool_t | merge(const TList& data) |
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) |
void | RooDirItem::removeFromDir(TObject* obj) |
void | RooTreeData::Reset(Option_t* option = "0") |
virtual void | RooTreeData::resetCache() |
Int_t | RooTreeData::ScanCache(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0) |
virtual void | RooTreeData::setArgStatus(const RooArgSet& set, Bool_t active) |
void | RooTreeData::setBranchBufferSize(Int_t size) |
void | RooAbsData::setDirtyProp(Bool_t flag) |
void | RooTreeData::treePrint() |
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::PrintOption { | InLine | |
OneLine | ||
Standard | ||
Shape | ||
Verbose | ||
}; |
RooArgSet | _varsNoWgt | Vars without weight variable |
RooRealVar* | _wgtVar | |
TTree* | RooTreeData::_tree | TTree holding the data points |
TTree* | RooTreeData::_cacheTree | ! TTree holding the cached function values |
Bool_t | RooTreeData::_defCtor | ! Was object constructed with default ctor? |
RooArgSet | RooTreeData::_truth | Truth variables |
TString | RooTreeData::_blindString | Blinding string (optionally read from ASCII files) |
static Int_t | RooTreeData::_defTreeBufSize | |
RooArgSet | RooAbsData::_vars | Dimensions of this data set |
RooArgSet | RooAbsData::_cachedVars | ! External variables cached with this data set |
TIterator* | RooAbsData::_iterator | ! Iterator over dimension variables |
TIterator* | RooAbsData::_cacheIter | ! Iterator over cached variables |
Bool_t | RooAbsData::_doDirtyProp | Switch do (de)activate dirty state propagation when loading a data point |
TString | TNamed::fName | object identifier |
TString | TNamed::fTitle | object title |
TDirectory* | RooDirItem::_dir | ! Do not persist |
Constructor of an empty data set from a RooArgSet defining the dimensions of the data space.
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
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
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.
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
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
Helper function for constructor below
Protected constructor for internal use only
Implementation of RooAbsData virtual method that drives the RooAbsData::reduce() methods
Return number of entries if no weights are requested or available
Setup RooFormulaVar for cutSpec if it is present
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
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
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
Add all data points of given data set to this data set. Eventual extra dimensions of 'data' will be stripped in transfer
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).
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).
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
Print info about this dataset to the specified output stream. Standard: number of entries Shape: list of variables we define & were generated with