ROOT » ROOFIT » ROOFITCORE » RooHist

class RooHist: public TGraphAsymmErrors, public RooPlotable



A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class. Error bars are calculated using either Poisson or Binomial statistics. A RooHist is used to represent histograms in a RooPlot.

Function Members (Methods)

public:
virtual~RooHist()
voidTObject::AbstractMethod(const char* method) const
voidaddAsymmetryBin(Axis_t binCenter, Int_t n1, Int_t n2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
voidaddAsymmetryBinWithError(Axis_t binCenter, Double_t n1, Double_t n2, Double_t en1, Double_t en2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
voidaddBin(Axis_t binCenter, Double_t n, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
voidaddBinWithError(Axis_t binCenter, Double_t n, Double_t elow, Double_t ehigh, Double_t binWidth = 0, Double_t xErrorFrac = 1., Bool_t correctForBinWidth = kTRUE, Double_t scaleFactor = 1.)
voidaddBinWithXYError(Axis_t binCenter, Double_t n, Double_t exlow, Double_t exhigh, Double_t eylow, Double_t eyhigh, Double_t scaleFactor = 1.)
voidaddEfficiencyBin(Axis_t binCenter, Int_t n1, Int_t n2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
voidaddEfficiencyBinWithError(Axis_t binCenter, Double_t n1, Double_t n2, Double_t en1, Double_t en2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTGraphAsymmErrors::Apply(TF1* f)
virtual voidTGraphAsymmErrors::BayesDivide(const TH1* pass, const TH1* total, Option_t* opt = "")
virtual voidTGraph::Browse(TBrowser* b)
virtual Double_tTGraph::Chisquare(TF1* f1, Option_t* option = "") const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
static Bool_tTGraph::CompareArg(const TGraph* gr, Int_t left, Int_t right)
static Bool_tTGraph::CompareRadius(const TGraph* gr, Int_t left, Int_t right)
static Bool_tTGraph::CompareX(const TGraph* gr, Int_t left, Int_t right)
static Bool_tTGraph::CompareY(const TGraph* gr, Int_t left, Int_t right)
virtual voidTGraphAsymmErrors::ComputeRange(Double_t& xmin, Double_t& ymin, Double_t& xmax, Double_t& ymax) const
virtual voidTNamed::Copy(TObject& named) const
TObject*RooPlotable::crossCast()
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
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tTGraph::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTGraphAsymmErrors::Divide(const TH1* pass, const TH1* total, Option_t* opt = "cp")
virtual voidTGraph::Draw(Option_t* chopt = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTGraph::DrawGraph(Int_t n, const Int_t* x, const Int_t* y, Option_t* option = "")
virtual voidTGraph::DrawGraph(Int_t n, const Float_t* x, const Float_t* y, Option_t* option = "")
virtual voidTGraph::DrawGraph(Int_t n, const Double_t* x = 0, const Double_t* y = 0, Option_t* option = "")
virtual voidTGraph::DrawPanel()MENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual Double_tTGraph::Eval(Double_t x, TSpline* spline = 0, Option_t* option = "") 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 voidTGraph::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTGraph::Expand(Int_t newsize)
virtual voidTGraph::Expand(Int_t newsize, Int_t step)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TGraph::FindObject(const char* name) const
virtual TObject*TGraph::FindObject(const TObject* obj) const
virtual TFitResultPtrTGraph::Fit(const char* formula, Option_t* option = "", Option_t* goption = "", Axis_t xmin = 0, Axis_t xmax = 0)MENU
virtual TFitResultPtrTGraph::Fit(TF1* f1, Option_t* option = "", Option_t* goption = "", Axis_t xmin = 0, Axis_t xmax = 0)
virtual voidTGraph::FitPanel()MENU
virtual Double_tTGraph::GetCorrelationFactor() const
virtual Double_tTGraph::GetCovariance() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Bool_tTGraph::GetEditable() const
virtual Double_tTGraphAsymmErrors::GetErrorX(Int_t bin) const
virtual Double_tTGraphAsymmErrors::GetErrorXhigh(Int_t i) const
virtual Double_tTGraphAsymmErrors::GetErrorXlow(Int_t i) const
virtual Double_tTGraphAsymmErrors::GetErrorY(Int_t bin) const
virtual Double_tTGraphAsymmErrors::GetErrorYhigh(Int_t i) const
virtual Double_tTGraphAsymmErrors::GetErrorYlow(Int_t i) const
virtual Double_t*TGraph::GetEX() const
virtual Double_t*TGraphAsymmErrors::GetEXhigh() const
virtual Double_t*TGraph::GetEXhighd() const
virtual Double_t*TGraphAsymmErrors::GetEXlow() const
virtual Double_t*TGraph::GetEXlowd() const
virtual Double_t*TGraph::GetEY() const
virtual Double_t*TGraphAsymmErrors::GetEYhigh() const
virtual Double_t*TGraph::GetEYhighd() const
virtual Double_t*TGraphAsymmErrors::GetEYlow() const
virtual Double_t*TGraph::GetEYlowd() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual Double_tgetFitRangeBinW() const
virtual Double_tgetFitRangeNEvt() const
virtual Double_tgetFitRangeNEvt(Double_t xlo, Double_t xhi) const
TF1*TGraph::GetFunction(const char* name) const
TH1F*TGraph::GetHistogram() const
virtual const char*TObject::GetIconName() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
TList*TGraph::GetListOfFunctions() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
Double_tTGraph::GetMaximum() const
Int_tTGraph::GetMaxSize() const
virtual Double_tTGraph::GetMean(Int_t axis = 1) const
Double_tTGraph::GetMinimum() const
Int_tTGraph::GetN() const
virtual const char*TNamed::GetName() const
Double_tgetNominalBinWidth() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Int_tTGraph::GetPoint(Int_t i, Double_t& x, Double_t& y) const
virtual Double_tTGraph::GetRMS(Int_t axis = 1) const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Double_t*TGraph::GetX() const
TAxis*TGraph::GetXaxis() const
Double_t*TGraph::GetY() const
TAxis*TGraph::GetYaxis() const
const char*RooPlotable::getYAxisLabel() const
Double_tRooPlotable::getYAxisMax() const
Double_tRooPlotable::getYAxisMin() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
Bool_thasIdenticalBinning(const RooHist& other) 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 voidTGraph::InitExpo(Double_t xmin = 0, Double_t xmax = 0)
virtual voidTGraph::InitGaus(Double_t xmin = 0, Double_t xmax = 0)
virtual voidTGraph::InitPolynom(Double_t xmin = 0, Double_t xmax = 0)
virtual Int_tTGraph::InsertPoint()MENU
virtual voidTObject::Inspect() constMENU
virtual Double_tTGraph::Integral(Int_t first = 0, Int_t last = -1) const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTGraph::IsEditable() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tisIdentical(const RooHist& other, Double_t tol = 9.9999999999999995E-7) const
virtual Int_tTGraph::IsInside(Double_t x, Double_t y) const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tTObject::IsZombie() const
virtual voidTGraph::LeastSquareFit(Int_t m, Double_t* a, Double_t xmin = 0, Double_t xmax = 0)
virtual voidTGraph::LeastSquareLinearFit(Int_t n, Double_t& a0, Double_t& a1, Int_t& ifail, Double_t xmin = 0, Double_t xmax = 0)
virtual voidTNamed::ls(Option_t* option = "") const
RooHist*makePullHist(const RooCurve& curve, bool useAverage = false) const
RooHist*makeResidHist(const RooCurve& curve, bool normalize = false, bool useAverage = false) const
voidTObject::MayNotUse(const char* method) const
virtual Int_tTGraphAsymmErrors::Merge(TCollection* list)
virtual voidTAttLine::Modify()
static voidRooPrintable::nameFieldLength(Int_t newLen)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
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)
RooHist&operator=(const RooHist&)
virtual voidTGraph::Paint(Option_t* chopt = "")
voidTGraph::PaintGraph(Int_t npoints, const Double_t* x, const Double_t* y, Option_t* chopt)
voidTGraph::PaintGrapHist(Int_t npoints, const Double_t* x, const Double_t* y, Option_t* chopt)
virtual voidTGraph::PaintStats(TF1* fit)
virtual voidTObject::Pop()
virtual voidPrint(Option_t* options = 0) const
virtual voidRooPrintable::printAddress(ostream& os) const
virtual voidRooPrintable::printArgs(ostream& os) const
virtual voidprintClassName(ostream& os) const
virtual voidRooPrintable::printExtras(ostream& os) const
virtual voidprintMultiline(ostream& os, Int_t content, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidprintName(ostream& os) const
virtual voidRooPrintable::printStream(ostream& os, Int_t contents, RooPrintable::StyleOption style, TString indent = "") const
virtual voidprintTitle(ostream& os) const
virtual voidRooPrintable::printTree(ostream& os, TString indent = "") const
virtual voidRooPrintable::printValue(ostream& os) const
virtual Int_tTObject::Read(const char* name)
virtual voidTGraph::RecursiveRemove(TObject* obj)
virtual Int_tTGraph::RemovePoint()MENU
virtual Int_tTGraph::RemovePoint(Int_t ipoint)
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
RooHist()
RooHist(const RooHist&)
RooHist(Double_t nominalBinWidth, Double_t nSigma = 1, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
RooHist(const RooHist& hist1, const RooHist& hist2, Double_t wgt1 = 1., Double_t wgt2 = 1., RooAbsData::ErrorType etype = RooAbsData::Poisson, Double_t xErrorFrac = 1.)
RooHist(const TH1& data, Double_t nominalBinWidth = 0, Double_t nSigma = 1, RooAbsData::ErrorType = RooAbsData::Poisson, Double_t xErrorFrac = 1., Bool_t correctForBinWidth = kTRUE, Double_t scaleFactor = 1.)
RooHist(const TH1& data1, const TH1& data2, Double_t nominalBinWidth = 0, Double_t nSigma = 1, RooAbsData::ErrorType = RooAbsData::Poisson, Double_t xErrorFrac = 1., Bool_t efficiency = kFALSE, Double_t scaleFactor = 1.)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidTGraphAsymmErrors::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTGraph::Set(Int_t n)
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 voidTGraph::SetEditable(Bool_t editable = kTRUE)TOGGLE GETTER
virtual voidTAttFill::SetFillAttributes()MENU
virtual voidTAttFill::SetFillColor(Color_t fcolor)
virtual voidTAttFill::SetFillColorAlpha(Color_t fcolor, Float_t falpha)
virtual voidTAttFill::SetFillStyle(Style_t fstyle)
virtual voidTGraph::SetHistogram(TH1F* h)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTAttMarker::SetMarkerAttributes()MENU
virtual voidTAttMarker::SetMarkerColor(Color_t mcolor = 1)
virtual voidTAttMarker::SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
virtual voidTGraph::SetMaximum(Double_t maximum = -1111)MENU
virtual voidTGraph::SetMinimum(Double_t minimum = -1111)MENU
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTGraph::SetPoint(Int_t i, Double_t x, Double_t y)
virtual voidTGraphAsymmErrors::SetPointError(Double_t exl, Double_t exh, Double_t eyl, Double_t eyh)MENU
virtual voidTGraphAsymmErrors::SetPointError(Int_t i, Double_t exl, Double_t exh, Double_t eyl, Double_t eyh)
virtual voidTGraphAsymmErrors::SetPointEXhigh(Int_t i, Double_t exh)
virtual voidTGraphAsymmErrors::SetPointEXlow(Int_t i, Double_t exl)
virtual voidTGraphAsymmErrors::SetPointEYhigh(Int_t i, Double_t eyh)
virtual voidTGraphAsymmErrors::SetPointEYlow(Int_t i, Double_t eyl)
voidsetRawEntries(Double_t n)
virtual voidTGraph::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidRooPlotable::setYAxisLabel(const char* label)
voidRooPlotable::setYAxisLimits(Double_t ymin, Double_t ymax)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidTGraph::Sort(Bool_t(*)(const TGraph*,Int_t,Int_t) greater = &TGraph::CompareX, Bool_t ascending = kTRUE, Int_t low = 0, Int_t high = -1111)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
voidRooPlotable::updateYAxisLimits(Double_t y)
virtual voidTGraph::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) 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
voidTGraph::Zero(Int_t& k, Double_t AZ, Double_t BZ, Double_t E2, Double_t& X, Double_t& Y, Int_t maxiterations)
protected:
virtual Double_t**TGraphAsymmErrors::Allocate(Int_t size)
Double_t**TGraph::AllocateArrays(Int_t Narrays, Int_t arraySize)
virtual voidTGraphAsymmErrors::CopyAndRelease(Double_t** newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
virtual Bool_tTGraphAsymmErrors::CopyPoints(Double_t** arrays, Int_t ibegin, Int_t iend, Int_t obegin)
Bool_tTGraphAsymmErrors::CtorAllocate()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual Bool_tTGraphAsymmErrors::DoMerge(const TGraph* g)
Double_t**TGraph::ExpandAndCopy(Int_t size, Int_t iend)
virtual voidTGraphAsymmErrors::FillZero(Int_t begin, Int_t end, Bool_t from_ctor = kTRUE)
voidinitialize()
voidTObject::MakeZombie()
Int_troundBin(Double_t y)
Double_t**TGraph::ShrinkAndCopy(Int_t size, Int_t iend)
virtual voidTGraphAsymmErrors::SwapPoints(Int_t pos1, Int_t pos2)
static voidTGraph::SwapValues(Double_t* arr, Int_t pos1, Int_t pos2)

Data Members

public:
static RooPrintable::ContentsOptionRooPrintable::kAddress
static RooPrintable::ContentsOptionRooPrintable::kArgs
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static RooPrintable::ContentsOptionRooPrintable::kClassName
static TGraph::(anonymous)TGraph::kClipFrame
static RooPrintable::ContentsOptionRooPrintable::kCollectionHeader
static RooPrintable::ContentsOptionRooPrintable::kExtras
static TObject::EStatusBitsTObject::kHasUUID
static RooPrintable::StyleOptionRooPrintable::kInline
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static RooPrintable::ContentsOptionRooPrintable::kName
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TGraph::(anonymous)TGraph::kNotEditable
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static RooPrintable::StyleOptionRooPrintable::kSingleLine
static RooPrintable::StyleOptionRooPrintable::kStandard
static RooPrintable::ContentsOptionRooPrintable::kTitle
static RooPrintable::StyleOptionRooPrintable::kTreeStructure
static RooPrintable::ContentsOptionRooPrintable::kValue
static RooPrintable::StyleOptionRooPrintable::kVerbose
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
static Int_tRooPrintable::_nameLength
Double_tRooPlotable::_normValue
TStringRooPlotable::_yAxisLabel
Double_tRooPlotable::_ymax
Double_tRooPlotable::_ymin
Double_t*TGraphAsymmErrors::fEXhigh[fNpoints] array of X high errors
Double_t*TGraphAsymmErrors::fEXlow[fNpoints] array of X low errors
Double_t*TGraphAsymmErrors::fEYhigh[fNpoints] array of Y high errors
Double_t*TGraphAsymmErrors::fEYlow[fNpoints] array of Y low errors
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
TList*TGraph::fFunctionsPointer to list of functions (fits and user)
TH1F*TGraph::fHistogramPointer to histogram used for drawing axis
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Color_tTAttMarker::fMarkerColorMarker color index
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
Int_tTGraph::fMaxSize!Current dimension of arrays fX and fY
Double_tTGraph::fMaximumMaximum value for plotting along y
Double_tTGraph::fMinimumMinimum value for plotting along y
TStringTNamed::fNameobject identifier
Int_tTGraph::fNpointsNumber of points <= fMaxSize
TStringTNamed::fTitleobject title
Double_t*TGraph::fX[fNpoints] array of X points
Double_t*TGraph::fY[fNpoints] array of Y points
private:
Double_t_entriesNumber of entries in histogram
Double_t_nSigmaNumber of 'sigmas' error bars represent
Double_t_nominalBinWidthAverage bin width
Double_t_rawEntriesNumber of entries in source dataset

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooHist()
 Default constructor
RooHist(Double_t nominalBinWidth, Double_t nSigma = 1, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
 Create an empty histogram that can be filled with the addBin()
 and addAsymmetryBin() methods. Use the optional parameter to
 specify the confidence level in units of sigma to use for
 calculating error bars. The nominal bin width specifies the
 default used by addBin(), and is used to set the relative
 normalization of bins with different widths.
RooHist(const TH1& data, Double_t nominalBinWidth = 0, Double_t nSigma = 1, RooAbsData::ErrorType = RooAbsData::Poisson, Double_t xErrorFrac = 1., Bool_t correctForBinWidth = kTRUE, Double_t scaleFactor = 1.)
 Create a histogram from the contents of the specified TH1 object
 which may have fixed or variable bin widths. Error bars are
 calculated using Poisson statistics. Prints a warning and rounds
 any bins with non-integer contents. Use the optional parameter to
 specify the confidence level in units of sigma to use for
 calculating error bars. The nominal bin width specifies the
 default used by addBin(), and is used to set the relative
 normalization of bins with different widths. If not set, the
 nominal bin width is calculated as range/nbins.
RooHist(const TH1& data1, const TH1& data2, Double_t nominalBinWidth = 0, Double_t nSigma = 1, RooAbsData::ErrorType = RooAbsData::Poisson, Double_t xErrorFrac = 1., Bool_t efficiency = kFALSE, Double_t scaleFactor = 1.)
 Create a histogram from the asymmetry between the specified TH1 objects
 which may have fixed or variable bin widths, but which must both have
 the same binning. The asymmetry is calculated as (1-2)/(1+2). Error bars are
 calculated using Binomial statistics. Prints a warning and rounds
 any bins with non-integer contents. Use the optional parameter to
 specify the confidence level in units of sigma to use for
 calculating error bars. The nominal bin width specifies the
 default used by addAsymmetryBin(), and is used to set the relative
 normalization of bins with different widths. If not set, the
 nominal bin width is calculated as range/nbins.
RooHist(const RooHist& hist1, const RooHist& hist2, Double_t wgt1 = 1., Double_t wgt2 = 1., RooAbsData::ErrorType etype = RooAbsData::Poisson, Double_t xErrorFrac = 1.)
 Create histogram as sum of two existing histograms. If Poisson errors are selected the histograms are
 added and Poisson confidence intervals are calculated for the summed content. If wgt1 and wgt2 are not
 1 in this mode, a warning message is printed. If SumW2 errors are selectd the histograms are added
 and the histograms errors are added in quadrature, taking the weights into account.
void initialize()
 Perform common initialization for all constructors.
Double_t getFitRangeNEvt() const
 Return the number of events of the dataset associated with this RooHist.
 This is the number of events in the RooHist itself, unless a different
 value was specified through setRawEntries()
Double_t getFitRangeNEvt(Double_t xlo, Double_t xhi) const
 Calculate integral of histogram in given range
Double_t getFitRangeBinW() const
 Return (average) bin width of this RooHist
Int_t roundBin(Double_t y)
 Return the nearest positive integer to the input value
 and print a warning if an adjustment is required.
void addBin(Axis_t binCenter, Double_t n, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
 Add a bin to this histogram with the specified integer bin contents
 and using an error bar calculated with Poisson statistics. The bin width
 is used to set the relative scale of bins with different widths.
void addBinWithError(Axis_t binCenter, Double_t n, Double_t elow, Double_t ehigh, Double_t binWidth = 0, Double_t xErrorFrac = 1., Bool_t correctForBinWidth = kTRUE, Double_t scaleFactor = 1.)
 Add a bin to this histogram with the specified bin contents
 and error. The bin width is used to set the relative scale of
 bins with different widths.
void addBinWithXYError(Axis_t binCenter, Double_t n, Double_t exlow, Double_t exhigh, Double_t eylow, Double_t eyhigh, Double_t scaleFactor = 1.)
 Add a bin to this histogram with the specified bin contents
 and error. The bin width is used to set the relative scale of
 bins with different widths.
void addAsymmetryBin(Axis_t binCenter, Int_t n1, Int_t n2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
 Add a bin to this histogram with the value (n1-n2)/(n1+n2)
 using an error bar calculated with Binomial statistics.
void addAsymmetryBinWithError(Axis_t binCenter, Double_t n1, Double_t n2, Double_t en1, Double_t en2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
 Add a bin to this histogram with the value (n1-n2)/(n1+n2)
 using an error bar calculated with Binomial statistics.
void addEfficiencyBin(Axis_t binCenter, Int_t n1, Int_t n2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
 Add a bin to this histogram with the value n1/(n1+n2)
 using an error bar calculated with Binomial statistics.
void addEfficiencyBinWithError(Axis_t binCenter, Double_t n1, Double_t n2, Double_t en1, Double_t en2, Double_t binWidth = 0, Double_t xErrorFrac = 1., Double_t scaleFactor = 1.)
 Add a bin to this histogram with the value n1/(n1+n2)
 using an error bar calculated with Binomial statistics.
~RooHist()
 Destructor
Bool_t hasIdenticalBinning(const RooHist& other) const
 Return kTRUE if binning of this RooHist is identical to that of 'other'
Bool_t isIdentical(const RooHist& other, Double_t tol = 9.9999999999999995E-7) const
 Return kTRUE if contents of this RooHIst is identical within given
 relative tolerance to that of 'other'
void printMultiline(ostream& os, Int_t content, Bool_t verbose = kFALSE, TString indent = "") const
 Print info about this histogram to the specified output stream.

   Standard: number of entries
      Shape: error CL and maximum value
    Verbose: print our bin contents and errors
void printName(ostream& os) const
 Print name of RooHist
void printTitle(ostream& os) const
 Print title of RooHist
void printClassName(ostream& os) const
 Print class name of RooHist
RooHist* makeResidHist(const RooCurve& curve, bool normalize = false, bool useAverage = false) const
 Create and return RooHist containing  residuals w.r.t to given curve.
 If normalize is true, the residuals are normalized by the histogram
 errors creating a RooHist with pull values
RooHist()
void Print(Option_t* options = 0) const
 Printing interface
Double_t getNominalBinWidth() const
{ return _nominalBinWidth; }
void setRawEntries(Double_t n)
{ _rawEntries = n ; }
RooHist* makePullHist(const RooCurve& curve, bool useAverage = false) const
{return makeResidHist(curve,true,useAverage); }