Interface functions to TTree
virtual | ~RooTreeData() |
void | TObject::AbstractMethod(const char* method) const |
virtual void | RooAbsData::add(const RooArgSet& row, Double_t weight = 1) |
virtual RooAbsArg* | addColumn(RooAbsArg& var) |
virtual RooArgSet* | addColumns(const RooArgList& varList) |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual void | TObject::Browse(TBrowser* b) |
virtual Bool_t | changeObservableName(const char* from, const char* to) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TNamed::Clear(Option_t* option = "") |
virtual TObject* | TNamed::Clone(const char* newname = "") const |
virtual Int_t | TNamed::Compare(const TObject* obj) const |
virtual void | TNamed::Copy(TObject& named) 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 |
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 | dump() |
virtual void | TObject::Dump() const |
virtual RooAbsData* | 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 | fill() |
virtual void | TNamed::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_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 | 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 | RooAbsData::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* | meanVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const |
Double_t | 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) |
RooTreeData& | operator=(const RooTreeData&) |
virtual void | TObject::Paint(Option_t* option = "") |
RooPrintable::PrintOption | RooPrintable::parseOptions(Option_t* options) const |
virtual RooPlot* | plotAsymOn(RooPlot* frame, const RooAbsCategoryLValue& asymCat, RooTreeData::PlotOpt o) const |
virtual RooPlot* | plotOn(RooPlot* frame, const RooLinkedList& cmdList) const |
virtual RooPlot* | 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) |
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 | reset() |
void | TObject::ResetBit(UInt_t f) |
RooRealVar* | 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(basic_ostream<char,char_traits<char> >& out, Option_t* option = "") |
Int_t | 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) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual Int_t | TNamed::Sizeof() const |
virtual TList* | split(const RooAbsCategory& splitCat) 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 void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual Double_t | RooAbsData::sumEntries(const char* cutSpec = 0, const char* cutRange = 0) const |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
virtual Roo1DTable* | 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& | tree() const |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Double_t | RooAbsData::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 |
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 |
Bool_t | allClientsCached(RooAbsArg*, const RooArgSet&) |
virtual void | cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0) |
virtual RooAbsData* | RooAbsData::cacheClone(const RooArgSet* newCacheVars, const char* newName = 0) |
const TTree& | cacheTree() const |
void | checkInit() const |
void | 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 | Fill() |
Int_t | getBranchBufferSize() const |
Stat_t | GetEntries() const |
Int_t | GetEntry(Int_t entry = 0, Int_t getall = 0) |
void | initCache(const RooArgSet& cachedVars) |
void | loadValues(const char* filename, const char* treename, RooFormulaVar* cutVar = 0) |
void | loadValues(const RooTreeData* t, RooFormulaVar* select = 0, const char* rangeName = 0, Int_t nStart = 0, Int_t nStop = 2000000000) |
void | loadValues(const TTree* t, RooFormulaVar* cutVar = 0, const char* rangeName = 0, Int_t nStart = 0, Int_t nStop = 2000000000) |
void | TObject::MakeZombie() |
virtual void | optimizeReadingWithCaching(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) |
void | Reset(Option_t* option = 0) |
virtual void | resetCache() |
Int_t | ScanCache(const char* varexp = "", const char* selection = "", Option_t* option = "", Int_t nentries = 1000000000, Int_t firstentry = 0) |
virtual void | setArgStatus(const RooArgSet& set, Bool_t active) |
void | setBranchBufferSize(Int_t size) |
void | RooAbsData::setDirtyProp(Bool_t flag) |
void | treePrint() |
void | initialize() |
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 | ||
}; |
TString | _blindString | Blinding string (optionally read from ASCII files) |
TIterator* | RooAbsData::_cacheIter | ! Iterator over cached variables |
TTree* | _cacheTree | ! TTree holding the cached function values |
RooArgSet | RooAbsData::_cachedVars | ! External variables cached with this data set |
Bool_t | _defCtor | ! Was object constructed with default ctor? |
static Int_t | _defTreeBufSize | |
Bool_t | RooAbsData::_doDirtyProp | Switch do (de)activate dirty state propagation when loading a data point |
TIterator* | RooAbsData::_iterator | ! Iterator over dimension variables |
TTree* | _tree | TTree holding the data points |
RooArgSet | _truth | Truth variables |
RooArgSet | RooAbsData::_vars | Dimensions of this data set |
TString | TNamed::fName | object identifier |
TString | TNamed::fTitle | object title |
Create TTree object that lives in memory, independent of current location of gDirectory
Initialize cache of dataset: attach variables of cache ArgSet to the corresponding TTree branches
Load values from dataset 't' into this data collection, optionally selecting events using 'select' RooFormulaVar
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.
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.
Load the n-th data point (n='index') in memory and return a pointer to the internal RooArgSet holding its coordinates.
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. (E.g collapsing a continuous B0 flavour probability into a 2-state B0/B0bar category)
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)
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
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
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.
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
Lookup variable in dataset
Create a new variable with appropriate strings. The error is calculated as RMS/Sqrt(N) which is generally valid.
Create a new variable with appropriate strings. The error is calculated as RMS/(2*Sqrt(N)) which is only valid if the variable has a Gaussian distribution.
Lookup variable in dataset
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.
Print info about this dataset to the specified output stream. Standard: number of entries Shape: list of variables we define & were generated with