|
ROOT
Reference Guide |
|
Go to the documentation of this file.
110 std::size_t
first = 0, std::size_t len = std::numeric_limits<std::size_t>::max())
const = 0;
134 virtual void reset() ;
198 virtual void printName(std::ostream& os)
const ;
199 virtual void printTitle(std::ostream& os)
const ;
234 const char *label=
"",
Int_t sigDigits= 2,
237 const char* cutSpec=0,
const char* cutRange=0,
286 std::size_t nStart = 0, std::size_t = std::numeric_limits<std::size_t>::max(),
Bool_t copyCache=
kTRUE) = 0 ;
TMatrixDSym * correlationMatrix(const char *cutSpec=0, const char *cutRange=0) const
virtual void getBatches(RooBatchCompute::RunContext &evalData, std::size_t first=0, std::size_t len=std::numeric_limits< std::size_t >::max()) const =0
Retrieve batches of data for each real-valued variable in this dataset.
virtual void copyCache(const RooAbsArg *source, Bool_t valueOnly=kFALSE, Bool_t setValDirty=kTRUE)
Copy the cached value of another RooAbsArg to our cache.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
virtual void printName(std::ostream &os) const
Print name of dataset.
virtual RooPlot * plotEffOn(RooPlot *frame, const RooAbsCategoryLValue &effCat, PlotOpt o) const
Create and fill a histogram with the efficiency N[1] / ( N[1] + N[0] ), where N(1/0) is the number of...
TMatrixDSym * correlationMatrix(const RooArgList &vars, const char *cutSpec=0, const char *cutRange=0) const
virtual Bool_t isNonPoissonWeighted() const
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual void cacheArgs(const RooAbsArg *owner, RooArgSet &varSet, const RooArgSet *nset=0, Bool_t skipZeroWeights=kFALSE)
Internal method – Cache given set of functions with data.
Roo1DTable implements a one-dimensional table.
virtual Double_t weightError(ErrorType etype=Poisson) const
Return error on current weight (dummy implementation returning zero)
void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Interface for detailed printing of object.
2-D histogram with a float per channel (see TH1 documentation)}
Double_t skewness(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
virtual Bool_t isWeighted() const
std::map< std::string, RooAbsData * > _ownedComponents
RooRealVar * meanVar(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Create a RooRealVar containing the mean of observable 'var' in this dataset.
Bool_t canSplitFast() const
TTree * GetClonedTree() const
Return a clone of the TTree which stores the data or create such a tree if vector storage is used.
RooAbsDataStore * _dstore
External variables cached with this data set.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Double_t mean(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
A TTree represents a columnar dataset.
Double_t sigma(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
virtual Double_t weight() const =0
virtual void RecursiveRemove(TObject *obj)
If one of the TObject we have a referenced to is deleted, remove the reference.
static constexpr double s
static StorageType getDefaultStorageType()
static StorageType defaultStorageType
Bool_t correctForBinWidth
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
virtual Bool_t valid() const
static void claimVars(RooAbsData *)
RooAbsDataStore * store()
static void indent(ostringstream &buf, int indent_level)
const RooAbsDataStore * store() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual 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.
static Bool_t releaseVars(RooAbsData *)
If return value is true variables can be deleted.
virtual RooAbsData * cacheClone(const RooAbsArg *newCacheOwner, const RooArgSet *newCacheVars, const char *newName=0)=0
virtual void printClassName(std::ostream &os) const
Print class name of dataset.
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
static const RooCmdArg & none()
Return reference to null argument.
virtual Double_t sumEntries() const =0
Return effective number of entries in dataset, i.e., sum all weights.
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
const TTree * tree() const
Return a pointer to the TTree which stores the data.
Double_t standMoment(const RooRealVar &var, Double_t order, const char *cutSpec=0, const char *cutRange=0) const
Calculate standardized moment.
float type_of_call hi(const int &, const int &)
TMatrixDSym * covarianceMatrix(const RooArgList &vars, const char *cutSpec=0, const char *cutRange=0) const
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 getRange(const RooAbsRealLValue &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 dat...
virtual Double_t sumEntries(const char *cutSpec, const char *cutRange=0) const =0
Return effective number of entries in dataset inside range or after cuts, i.e.
RooAbsData * getSimData(const char *idxstate)
virtual TList * split(const RooAbsCategory &splitCat, Bool_t createEmptyDataSets=kFALSE) const
Split dataset into subsets based on states of given splitCat in this dataset.
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.
Double_t moment(const RooRealVar &var, Double_t order, const char *cutSpec=0, const char *cutRange=0) const
Calculate moment of requested order.
virtual RooAbsData * reduceEng(const RooArgSet &varSubset, const RooFormulaVar *cutVar, const char *cutRange=0, std::size_t nStart=0, std::size_t=std::numeric_limits< std::size_t >::max(), Bool_t copyCache=kTRUE)=0
virtual void optimizeReadingWithCaching(RooAbsArg &arg, const RooArgSet &cacheList, const RooArgSet &keepObsList)
Prepare dataset for use with cached constant terms listed in 'cacheList' of expression 'arg'.
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
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
The TNamed class is the base class for all named ROOT classes.
void setDirtyProp(Bool_t flag)
Control propagation of dirty flags from observables in dataset.
virtual const RooArgSet * get() 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
Calls createHistogram(const char *name, const RooAbsRealLValue& xvar, const RooLinkedList& argList) c...
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
static void setDefaultStorageType(StorageType s)
RooRealVar * rmsVar(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Create a RooRealVar containing the RMS of observable 'var' in this dataset.
A RooPlot is a plot frame and a container for graphics objects within that frame.
void convertToVectorStore()
Convert tree-based storage to vector-based storage.
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
TMatrixDSym * corrcovMatrix(const RooArgList &vars, const char *cutSpec, const char *cutRange, Bool_t corr) const
Return covariance matrix from data for given list of observables.
RooAbsData & operator=(const RooAbsData &other)
RooAbsCachedPdf is the abstract base class for p.d.f.s that need or want to cache their evaluate() ou...
Double_t kurtosis(const RooRealVar &var, const char *cutSpec=0, const char *cutRange=0) const
Bool_t hasFilledCache() const
void addOwnedComponent(const char *idxlabel, RooAbsData &data)
RooRealVar * dataRealVar(const char *methodname, const RooRealVar &extVar) const
Internal method to check if given RooRealVar maps to a RooRealVar in this dataset.
virtual RooAbsData * emptyClone(const char *newName=0, const char *newTitle=0, const RooArgSet *vars=0, const char *wgtVarName=0) const =0
const char * addToHistName
virtual void Draw(Option_t *option="")
Forward draw command to data store.
virtual RooPlot * plotAsymOn(RooPlot *frame, const RooAbsCategoryLValue &asymCat, PlotOpt o) const
Create and fill a histogram with the asymmetry N[+] - N[-] / ( N[+] + N[-] ), where N(+/-) is the num...
virtual ~RooAbsData()
Destructor.
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
virtual Double_t weightSquared() const =0
RooAbsOptTestStatistic is the abstract base class for test statistics objects that evaluate a functio...
virtual RooSpan< const double > getWeightBatch(std::size_t first, std::size_t len) const =0
Return event weights of all events in range [first, first+len).
virtual Bool_t changeObservableName(const char *from, const char *to)
Mother of all ROOT objects.
#define ClassDef(name, id)
virtual void resetCache()
Internal method – Remove cached function values.
TH1 is the base class of all histogram classes in ROOT.
RooAbsData()
Default constructor.
Double_t covariance(RooRealVar &x, RooRealVar &y, const char *cutSpec=0, const char *cutRange=0) const
Namespace for dispatching RooFit computations to various backends.
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
RooAbsData::ErrorType etype
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
TMatrixDSym * covarianceMatrix(const char *cutSpec=0, const char *cutRange=0) const
void attachBuffers(const RooArgSet &extObs)
virtual void convertToTreeStore()
Convert vector-based storage to tree-based storage.
virtual void add(const RooArgSet &row, Double_t weight=1, Double_t weightError=0)=0
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
virtual void attachCache(const RooAbsArg *newOwner, const RooArgSet &cachedVars)
Internal method – Attach dataset copied with cache contents to copied instances of functions.
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
virtual StyleOption defaultPrintStyle(Option_t *opt) const
RooRealVar represents a variable that can be changed from the outside.
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())
Add a box with statistics information to the specified frame.
Double_t corrcov(const RooRealVar &x, const RooRealVar &y, const char *cutSpec, const char *cutRange, Bool_t corr) const
Internal method to calculate single correlation and covariance elements.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
Double_t correlation(RooRealVar &x, RooRealVar &y, const char *cutSpec=0, const char *cutRange=0) const
This struct enables passing computation data around between elements of a computation graph.
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default print options, for a given print style.
A simple container to hold a batch of data values.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
const double xbins[xbins_n]
virtual void setArgStatus(const RooArgSet &set, Bool_t active)
virtual void printTitle(std::ostream &os) const
Print title of dataset.