ROOT logo
ROOT » ROOFIT » ROOFITCORE » RooDataHist

class RooDataHist: public RooAbsData, public RooDirItem



RooDataSet is a container class to hold N-dimensional binned data. Each bins central coordinates in N-dimensional space are represented by a RooArgSet of RooRealVar, RooCategory or RooStringVar objects, thus data can be binned in real and/or discrete dimensions


Function Members (Methods)

public:
RooDataHist()
RooDataHist(const RooDataHist& other, const char* newname = 0)
RooDataHist(const char* name, const char* title, const RooArgSet& vars, const char* binningName = 0)
RooDataHist(const char* name, const char* title, const RooArgSet& vars, const RooAbsData& data, Double_t initWgt = 1.0)
RooDataHist(const char* name, const char* title, const RooArgList& vars, const TH1* hist, Double_t initWgt = 1.0)
RooDataHist(const char* name, const char* title, const RooArgList& vars, RooCategory& indexCat, map<std::string,TH1*> histMap, Double_t initWgt = 1.0)
RooDataHist(const char* name, const char* title, const RooArgList& vars, RooCmdArg arg1, RooCmdArg arg2 = RooCmdArg(), RooCmdArg arg3 = RooCmdArg(), RooCmdArg arg4 = RooCmdArg(), RooCmdArg arg5 = RooCmdArg(), RooCmdArg arg6 = RooCmdArg(), RooCmdArg arg7 = RooCmdArg(), RooCmdArg arg8 = RooCmdArg())
virtual~RooDataHist()
voidTObject::AbstractMethod(const char* method) const
virtual voidadd(const RooArgSet& row, Double_t wgt = 1.0)
virtual voidadd(const RooArgSet& row, Double_t weight, Double_t sumw2)
voidadd(const RooAbsData& dset, const RooFormulaVar* cutVar = 0, Double_t weight = 1.0)
voidadd(const RooAbsData& dset, const char* cut, Double_t weight = 1.0)
virtual voidTObject::AppendPad(Option_t* option = "")
Double_tbinVolume() const
Double_tbinVolume(const RooArgSet& bin)
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tRooAbsData::changeObservableName(const char* from, const char* to)
voidRooAbsData::checkInit() const
static TClass*Class()
static TClass*RooAbsData::Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*Clone(const char* newname = 0) const
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Copy(TObject& object) const
TH1*RooAbsData::createHistogram(const char* name, const RooAbsRealLValue& xvar, const RooLinkedList& argList) const
TH1*RooAbsData::createHistogram(const char* varNameList, Int_t xbins = 0, Int_t ybins = 0, Int_t zbins = 0) 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
virtual Int_tRooAbsData::defaultPrintContents(Option_t* opt) const
virtual Int_tRooPrintable::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 voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
voiddump2()
virtual RooAbsData*emptyClone(const char* newName = 0, const char* newTitle = 0, const RooArgSet* vars = 0) const
virtual RooAbsData*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 voidRooAbsData::fill()
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TH1*RooAbsData::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*RooAbsData::get() const
virtual const RooArgSet*get(Int_t masterIdx) const
virtual const RooArgSet*get(const RooArgSet& coord) const
virtual const RooArgSet*RooAbsData::get(Int_t index) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Int_tgetIndex(const RooArgSet& coord)
virtual const char*TNamed::GetName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Bool_tRooAbsData::getRange(RooRealVar& var, Double_t& lowest, Double_t& highest, Double_t marginFrac = 0, Bool_t symMode = kFALSE) const
virtual const char*TNamed::GetTitle() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual ULong_tTObject::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 TClass*RooDirItem::IsA() const
virtual TClass*RooAbsData::IsA() const
virtual TClass*RooPrintable::IsA() const
virtual TClass*TNamed::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tisNonPoissonWeighted() const
virtual Bool_tRooAbsData::isNonPoissonWeighted() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTObject::IsSortable() const
virtual Bool_tisWeighted() const
virtual Bool_tRooAbsData::isWeighted() const
Bool_tTObject::IsZombie() const
Double_tRooAbsData::kurtosis(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
virtual voidTNamed::ls(Option_t* option = "") const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
Double_tRooAbsData::mean(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
RooRealVar*RooAbsData::meanVar(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
Double_tRooAbsData::moment(RooRealVar& var, Double_t order, const char* cutSpec = 0, const char* cutRange = 0) const
Double_tRooAbsData::moment(RooRealVar& var, Double_t order, Double_t offset, const char* cutSpec = 0, const char* cutRange = 0) const
static voidRooPrintable::nameFieldLength(Int_t newLen)
virtual Bool_tTObject::Notify()
virtual Int_tnumEntries() const
virtual Int_tRooAbsData::numEntries() 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)
RooDataHist&operator=(const RooDataHist&)
RooDirItem&RooDirItem::operator=(const RooDirItem&)
RooAbsData&RooAbsData::operator=(const RooAbsData&)
RooPrintable&RooPrintable::operator=(const RooPrintable&)
TNamed&TNamed::operator=(const TNamed& rhs)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual RooPlot*plotOn(RooPlot* frame, RooAbsData::PlotOpt o) const
virtual RooPlot*RooAbsData::plotOn(RooPlot* frame, const RooLinkedList& cmdList) const
virtual RooPlot*RooAbsData::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 voidRooAbsData::Print(Option_t* options = 0) const
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidRooPrintable::printAddress(ostream& os) const
virtual voidprintArgs(ostream& os) const
virtual voidRooPrintable::printArgs(ostream& os) const
virtual voidRooAbsData::printClassName(ostream& os) const
virtual voidRooPrintable::printClassName(ostream& os) const
virtual voidRooPrintable::printExtras(ostream& os) const
virtual voidprintMultiline(ostream& os, Int_t content, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidRooAbsData::printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidRooPrintable::printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidRooAbsData::printName(ostream& os) const
virtual voidRooPrintable::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::printTitle(ostream& os) const
virtual voidRooPrintable::printTree(ostream& os, TString indent = "") const
virtual voidprintValue(ostream& os) const
virtual voidRooPrintable::printValue(ostream& os) const
virtual Int_tTObject::Read(const char* name)
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())
voidremoveSelfFromDir()
virtual voidreset()
virtual voidRooAbsData::reset()
voidTObject::ResetBit(UInt_t f)
RooRealVar*RooAbsData::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 = "")
voidset(Double_t weight, Double_t wgtErr = -1)
voidset(const RooArgSet& row, Double_t weight, Double_t wgtErr = -1)
voidset(const RooArgSet& row, Double_t weight, Double_t wgtErrLo, Double_t wgtErrHi)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidRooAbsData::setDirtyProp(Bool_t flag)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetName(const char* name)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidSetNameTitle(const char* name, const char* title)
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 voidRooAbsData::ShowMembers(TMemberInspector& insp, char* parent)
Double_tRooAbsData::sigma(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
virtual Int_tTNamed::Sizeof() const
Double_tRooAbsData::skewness(RooRealVar& var, const char* cutSpec = 0, const char* cutRange = 0) const
TIterator*sliceIterator(RooAbsArg& sliceArg, const RooArgSet& otherArgs)
virtual TList*RooAbsData::split(const RooAbsCategory& splitCat) const
Double_tRooAbsData::standMoment(RooRealVar& var, Double_t order, const char* cutSpec = 0, const char* cutRange = 0) const
virtual RooPlot*RooAbsData::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*RooAbsData::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)
RooAbsDataStore*RooAbsData::store()
const RooAbsDataStore*RooAbsData::store() const
virtual voidStreamer(TBuffer& b)
virtual voidRooDirItem::Streamer(TBuffer& b)
virtual voidRooAbsData::Streamer(TBuffer& b)
virtual voidRooPrintable::Streamer(TBuffer& b)
virtual voidTNamed::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidRooDirItem::StreamerNVirtual(TBuffer& b)
voidRooAbsData::StreamerNVirtual(TBuffer& b)
voidRooPrintable::StreamerNVirtual(TBuffer& b)
voidTNamed::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
Double_tsum(Bool_t correctForBinSize) const
Double_tsum(const RooArgSet& sumSet, const RooArgSet& sliceSet, Bool_t correctForBinSize)
virtual Double_tsumEntries(const char* cutSpec = 0, const char* cutRange = 0) const
virtual Double_tRooAbsData::sumEntries(const char* cutSpec = 0, const char* cutRange = 0) const
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual Roo1DTable*RooAbsData::table(const RooArgSet& catSet, const char* cuts = "", const char* opts = "") const
virtual Roo1DTable*RooAbsData::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 Bool_tvalid() const
virtual Bool_tRooAbsData::valid() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Double_tweight() const
virtual Double_tRooAbsData::weight() const
Double_tweight(const RooArgSet& bin, Int_t intOrder = 1, Bool_t correctForBinSize = kFALSE, Bool_t cdfBoundaries = kFALSE)
virtual Double_tweightError(RooAbsData::ErrorType etype = Poisson) const
virtual Double_tRooAbsData::weightError(RooAbsData::ErrorType etype = Poisson) const
virtual voidweightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const
virtual voidRooAbsData::weightError(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:
RooDataHist(const char* name, const char* title, RooDataHist* h, const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange, Int_t nStart, Int_t nStop, Bool_t copyCache)
voidadjustBinning(const RooArgList& vars, TH1& href, Int_t* offset = 0)
Bool_tRooAbsData::allClientsCached(RooAbsArg*, const RooArgSet&)
voidRooDirItem::appendToDir(TObject* obj, Bool_t forceMemoryResident = kFALSE)
virtual voidRooAbsData::cacheArgs(RooArgSet& varSet, const RooArgSet* nset = 0)
virtual RooAbsData*cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
virtual RooAbsData*RooAbsData::cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
voidcacheValidEntries()
Int_tcalcTreeIndex() const
voidcalculatePartialBinVolume(const RooArgSet& dimSet) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidimportTH1(const RooArgList& vars, TH1& histo, Double_t initWgt)
voidimportTH1Set(const RooArgList& vars, RooCategory& indexCat, map<std::string,TH1*> hmap, Double_t initWgt)
virtual voidRooAbsData::initCache(const RooArgSet& cachedVars)
voidinitialize(const char* binningName = 0, Bool_t fillTree = kTRUE)
Double_tinterpolateDim(RooRealVar& dim, const RooAbsBinning* binning, Double_t xval, Int_t intOrder, Bool_t correctForBinSize, Bool_t cdfBoundaries)
voidTObject::MakeZombie()
virtual voidRooAbsData::optimizeReadingWithCaching(RooAbsArg& arg, const RooArgSet& cacheList, const RooArgSet& keepObsList)
virtual RooPlot*RooAbsData::plotAsymOn(RooPlot* frame, const RooAbsCategoryLValue& asymCat, RooAbsData::PlotOpt o) const
virtual RooPlot*RooAbsData::plotEffOn(RooPlot* frame, const RooAbsCategoryLValue& effCat, RooAbsData::PlotOpt o) const
virtual RooPlot*RooAbsData::plotOn(RooPlot* frame, RooAbsData::PlotOpt o) const
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 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)
voidRooDirItem::removeFromDir(TObject* obj)
virtual voidRooAbsData::resetCache()
voidsetAllWeights(Double_t value)
virtual voidRooAbsData::setArgStatus(const RooArgSet& set, Bool_t active)

Data Members

private:
enum RooAbsData::ErrorType { Poisson
SumW2
None
Auto
};
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
kCollectionHeader
};
enum RooPrintable::StyleOption { kInline
kSingleLine
kStandard
kVerbose
kTreeStructure
};
protected:
Int_t_arrSizeSize of the weight array
Bool_t*_binValid! Valid bins with current range definition
Double_t*_binv[_arrSize] Bin volume array
TIterator*RooAbsData::_cacheIter! Iterator over cached variables
RooArgSetRooAbsData::_cachedVars! External variables cached with this data set
Int_t_curIndexCurrent index
Double_t_curSumW2Current sum of weights^2
Double_t_curVolumeVolume of bin enclosing current coordinate
Double_t_curWeightWeight associated with the current coordinate
Double_t_curWgtErrHiError on weight associated with the current coordinate
Double_t_curWgtErrLoError on weight associated with the current coordinate
TDirectory*RooDirItem::_dir! Associated directory
RooAbsDataStore*RooAbsData::_dstoreData storage implementation
Double_t*_errHi[_arrSize] High-side error on weight array
Double_t*_errLo[_arrSize] Low-side error on weight array
Int_t*_idxMult! Multiplier jump table for index calculation
TIterator*RooAbsData::_iterator! Iterator over dimension variables
list<const RooAbsBinning*>_lvbins! List of used binnings associated with lvalues
list<RooAbsLValue*>_lvvars! List of observables casted as RooAbsLValue
static Int_tRooPrintable::_nameLength
vector<Double_t>*_pbinv! Partial bin volume array
RooCacheManager<std::vector<Double_t> >_pbinvCacheMgr! Cache manager for arrays of partial bin volumes
TIterator*_realIter! Iterator over realVars
RooArgSet_realVarsReal dimensions of the dataset
Double_t*_sumw2[_arrSize] Sum of weights^2
RooArgSetRooAbsData::_varsDimensions of this data set
Double_t*_wgt[_arrSize] Weight array
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooDataHist()
 Default constructor
RooDataHist(const char* name, const char* title, const RooArgSet& vars, const char* binningName = 0)
 Constructor of an empty data hist from a RooArgSet defining the dimensions
 of the data space. The range and number of bins in each dimensions are taken
 from getMin()getMax(),getBins() of each RooAbsArg representing that
 dimension.

 For real dimensions, the fit range and number of bins can be set independently
 of the plot range and number of bins, but it is advisable to keep the
 ratio of the plot bin width and the fit bin width an integer value.
 For category dimensions, the fit ranges always comprises all defined states
 and each state is always has its individual bin

 To effective achive binning of real dimensions with variable bins sizes,
 construct a RooThresholdCategory of the real dimension to be binned variably.
 Set the thresholds at the desired bin boundaries, and construct the
 data hist as function of the threshold category instead of the real variable.
RooDataHist(const char *name, const char *title, const RooArgSet& vars, const RooAbsData& data, Double_t wgt)
 Constructor of a data hist from an existing data collection (binned or unbinned)
 The RooArgSet 'vars' defines the dimensions of the histogram.
 The range and number of bins in each dimensions are taken
 from getMin()getMax(),getBins() of each RooAbsArg representing that
 dimension.

 For real dimensions, the fit range and number of bins can be set independently
 of the plot range and number of bins, but it is advisable to keep the
 ratio of the plot bin width and the fit bin width an integer value.
 For category dimensions, the fit ranges always comprises all defined states
 and each state is always has its individual bin

 To effective achive binning of real dimensions with variable bins sizes,
 construct a RooThresholdCategory of the real dimension to be binned variably.
 Set the thresholds at the desired bin boundaries, and construct the
 data hist as function of the threshold category instead of the real variable.

 If the constructed data hist has less dimensions that in source data collection,
 all missing dimensions will be projected.
RooDataHist(const char *name, const char *title, const RooArgList& vars, RooCategory& indexCat, map<string,TH1*> histMap, Double_t wgt)
 Constructor of a data hist from a map of TH1,TH2 or TH3 that are collated into a x+1 dimensional
 RooDataHist where the added dimension is a category that labels the input source as defined
 in the histMap argument. The state names used in histMap must correspond to predefined states
 'indexCat'

 The RooArgList 'vars' defines the dimensions of the histogram.
 The ranges and number of bins are taken from the input histogram and must be the same in all histograms
RooDataHist(const char *name, const char *title, const RooArgList& vars, const TH1* hist, Double_t wgt)
 Constructor of a data hist from an TH1,TH2 or TH3
 The RooArgSet 'vars' defines the dimensions of the histogram. The ranges
 and number of bins are taken from the input histogram, and the corresponding
 values are set accordingly on the arguments in 'vars'
RooDataHist(const char* name, const char* title, const RooArgList& vars, RooCmdArg arg1, RooCmdArg arg2 = RooCmdArg(), RooCmdArg arg3 = RooCmdArg(), RooCmdArg arg4 = RooCmdArg(), RooCmdArg arg5 = RooCmdArg(), RooCmdArg arg6 = RooCmdArg(), RooCmdArg arg7 = RooCmdArg(), RooCmdArg arg8 = RooCmdArg())
 Constructor of a binned dataset from a RooArgSet defining the dimensions
 of the data space. The range and number of bins in each dimensions are taken
 from getMin() getMax(),getBins() of each RooAbsArg representing that
 dimension.

 This constructor takes the following optional arguments

 Import(TH1&)              -- Import contents of the given TH1/2/3 into this binned dataset. The
                              ranges and binning of the binned dataset are automatically adjusted to
                              match those of the imported histogram

 Weight(Double_t)          -- Apply given weight factor when importing histograms

 Index(RooCategory&)       -- Prepare import of multiple TH1/1/2/3 into a N+1 dimensional RooDataHist
                              where the extra discrete dimension labels the source of the imported histogram
                              If the index category defines states for which no histogram is be imported
                              the corresponding bins will be left empty.

 Import(const char*, TH1&) -- Import a THx to be associated with the given state name of the index category
                              specified in Index(). If the given state name is not yet defined in the index
                              category it will be added on the fly. The import command can be specified
                              multiple times.

void importTH1(const RooArgList& vars, TH1& histo, Double_t initWgt)
 Import data from given TH1/2/3 into this RooDataHist
void importTH1Set(const RooArgList& vars, RooCategory& indexCat, map<string,TH1*> hmap, Double_t wgt)
 Import data from given set of TH1/2/3 into this RooDataHist. The category indexCat labels the sources
 in the constructed RooDataHist. The stl map provides the mapping between the indexCat state labels
 and the import source
void adjustBinning(const RooArgList& vars, TH1& href, Int_t* offset = 0)
 Adjust binning specification on first and optionally second and third
 observable to binning in given reference TH1. Used by constructors
 that import data from an external TH1
void initialize(const char* binningName = 0, Bool_t fillTree = kTRUE)
 Initialization procedure: allocate weights array, calculate
 multipliers needed for N-space to 1-dim array jump table,
 and fill the internal tree with all bin center coordinates
RooDataHist(const RooDataHist& other, const char* newname = 0)
 Copy constructor
RooDataHist(const char* name, const char* title, RooDataHist* h, const RooArgSet& varSubset, const RooFormulaVar* cutVar, const char* cutRange, Int_t nStart, Int_t nStop, Bool_t copyCache)
 Constructor of a data hist from (part of) an existing data hist. The dimensions
 of the data set are defined by the 'vars' RooArgSet, which can be identical
 to 'dset' dimensions, or a subset thereof. Reduced dimensions will be projected
 in the output data hist. The optional 'cutVar' formula variable can used to
 select the subset of bins to be copied.

 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
RooAbsData* cacheClone(const RooArgSet* newCacheVars, const char* newName = 0)
 Construct a clone of this dataset that contains only the cached variables
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
~RooDataHist()
 Destructor
Int_t getIndex(const RooArgSet& coord)
Int_t calcTreeIndex() const
 Calculate the index for the weights array corresponding to
 to the bin enclosing the current coordinates of the internal argset
void dump2()
 Debug stuff, should go...
RooPlot * plotOn(RooPlot* frame, RooAbsData::PlotOpt o) const
 Back end function to plotting functionality. Plot RooDataHist on given
 frame in mode specified by plot options 'o'. The main purpose of
 this function is to match the specified binning on 'o' to the
 internal binning of the plot observable in this RooDataHist.
Double_t weight(const RooArgSet& bin, Int_t intOrder = 1, Bool_t correctForBinSize = kFALSE, Bool_t cdfBoundaries = kFALSE)
 Return the weight at given coordinates with optional
 interpolation. If intOrder is zero, the weight
 for the bin enclosing the coordinates
 contained in 'bin' is returned. For higher values,
 the result is interpolated in the real dimensions
 of the dataset
void weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const
 Return the error on current weight
Double_t interpolateDim(RooRealVar& dim, const RooAbsBinning* binning, Double_t xval, Int_t intOrder, Bool_t correctForBinSize, Bool_t cdfBoundaries)
 Perform boundary safe 'intOrder'-th interpolation of weights in dimension 'dim'
 at current value 'xval'
void add(const RooArgSet& row, Double_t wgt, Double_t sumw2)
 Increment the weight of the bin enclosing the coordinates given
 by 'row' by the specified amount. Add the sum of weights squared
 for the bin by 'sumw2' rather than wgt^2
void set(const RooArgSet& row, Double_t weight, Double_t wgtErrLo, Double_t wgtErrHi)
 Increment the weight of the bin enclosing the coordinates
 given by 'row' by the specified amount. Associate errors
 [wgtErrLo,wgtErrHi] with the event weight on this bin.
void set(Double_t weight, Double_t wgtErr = -1)
 Increment the weight of the bin enclosing the coordinates
 given by 'row' by the specified amount. Associate errors
 [wgtErrLo,wgtErrHi] with the event weight on this bin.
void set(const RooArgSet& row, Double_t weight, Double_t wgtErr = -1)
 Increment the weight of the bin enclosing the coordinates
 given by 'row' by the specified amount. Associate errors
 [wgtErrLo,wgtErrHi] with the event weight on this bin.
void add(const RooAbsData& dset, const char* cut, Double_t wgt)
 Add all data points contained in 'dset' to this data set with given weight.
 Optional cut string expression selects the data points to be added and can
 reference any variable contained in this data set
void add(const RooAbsData& dset, const RooFormulaVar* cutVar, Double_t wgt)
 Add all data points contained in 'dset' to this data set with given weight.
 Optional RooFormulaVar pointer selects the data points to be added.
Double_t sum(Bool_t correctForBinSize) const
 Return the sum of the weights of all hist bins.

 If correctForBinSize is specified, the sum of weights
 is multiplied by the N-dimensional bin volume,
 making the return value the integral over the function
 represented by this histogram
Double_t sum(const RooArgSet& sumSet, const RooArgSet& sliceSet, Bool_t correctForBinSize)
 Return the sum of the weights of a multi-dimensional slice of the histogram
 by summing only over the dimensions specified in sumSet.

 The coordinates of all other dimensions are fixed to those given in sliceSet

 If correctForBinSize is specified, the sum of weights
 is multiplied by the M-dimensional bin volume, (M = N(sumSet)),
 making the return value the integral over the function
 represented by this histogram
void calculatePartialBinVolume(const RooArgSet& dimSet) const
 Fill the transient cache with partial bin volumes with up-to-date
 values for the partial volume specified by observables 'dimSet'
Int_t numEntries() const
 Return the number of bins
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)
 Return the
void reset()
 Reset all bin weights to zero
const RooArgSet* get(Int_t masterIdx)
 Return an argset with the bin center coordinates for
 bin sequential number 'masterIdx'. For iterative use.
const RooArgSet* get(const RooArgSet& coord)
 Return a RooArgSet with center coordinates of the bin
 enclosing the point 'coord'
Double_t binVolume(const RooArgSet& bin)
 Return the volume of the bin enclosing coordinates 'coord'
void setAllWeights(Double_t value)
 Set all the event weight of all bins to the specified value
TIterator* sliceIterator(RooAbsArg& sliceArg, const RooArgSet& otherArgs)
 Create an iterator over all bins in a slice defined by the subset of observables
 listed in sliceArg. The position of the slice is given by otherArgs
void SetName(const char* name)
 Change the name of the RooDataHist
void SetNameTitle(const char* name, const char* title)
 Change the title of this RooDataHist
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 cacheValidEntries()
 Cache the datahist entries with bin centers that are inside/outside the
 current observable definitio
Bool_t valid() const
 Return true if currently loaded coordinate is considered valid within
 the current range definitions of all observables
Bool_t isNonPoissonWeighted() const
 Returns true if datasets contains entries with a non-integer weight
void printMultiline(ostream& os, Int_t content, Bool_t verbose = kFALSE, TString indent = "") const
 Print the details on the dataset contents
void Streamer(TBuffer& b)
 Stream an object of class RooDataHist.
TObject* Clone(const char* newname = 0) const
{ return new RooDataHist(*this,newname?newname:GetName()) ; }
RooAbsData* emptyClone(const char* newName = 0, const char* newTitle = 0, const RooArgSet* vars = 0) const
 Return empty clone of this RooDataHist
void add(const RooArgSet& row, Double_t wgt = 1.0)
 Add one ore more rows of data
const RooArgSet* get() const
 Return set with coordinates of center of current bin
Bool_t isWeighted() const
 Return true as all histograms have in principle events weight != 1
Double_t weight() const
 Return weight of current bin
Double_t binVolume() const
{ return _curVolume ; }
void weightError(Double_t& lo, Double_t& hi, RooAbsData::ErrorType etype = Poisson) const
void removeSelfFromDir()
{ removeFromDir(this) ; }