32 RooHist(
double nominalBinWidth,
double nSigma= 1,
double xErrorFrac=1.0,
double scaleFactor=1.0);
34 double xErrorFrac=1.0,
bool correctForBinWidth=
true,
double scaleFactor=1.);
36 double xErrorFrac=1.0,
bool efficiency=
false,
double scaleFactor=1.0);
42 void addBin(
Axis_t binCenter,
double n,
double binWidth= 0,
double xErrorFrac=1.0,
double scaleFactor=1.0);
45 double xErrorFrac=1.0,
bool correctForBinWidth=
true,
double scaleFactor=1.0);
48 double scaleFactor=1.0);
52 void addAsymmetryBinWithError(
Axis_t binCenter,
double n1,
double n2,
double en1,
double en2,
double binWidth= 0,
double xErrorFrac=1.0,
double scaleFactor=1.0);
57 void addEfficiencyBinWithError(
Axis_t binCenter,
double n1,
double n2,
double en1,
double en2,
double binWidth= 0,
double xErrorFrac=1.0,
double scaleFactor=1.0);
59 void printName(std::ostream& os)
const override ;
60 void printTitle(std::ostream& os)
const override ;
96 void addPoint(
Axis_t binCenter,
double y,
double yscale,
double exlow,
double exhigh,
double eylow,
double eyhigh);
#define ClassDefOverride(name, id)
static void indent(ostringstream &buf, int indent_level)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
A RooCurve is a one-dimensional graphical representation of a real-valued function.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class.
RooHist * makeResidHist(const RooCurve &curve, bool normalize=false, bool useAverage=false) const
Create and return RooHist containing residuals w.r.t to given curve.
double _nominalBinWidth
Average bin width.
double _rawEntries
Number of entries in source dataset.
void printClassName(std::ostream &os) const override
Print class name of RooHist.
void addEfficiencyBin(Axis_t binCenter, Int_t n1, Int_t n2, double binWidth=0, double xErrorFrac=1.0, double scaleFactor=1.0)
Add a bin to this histogram with the value n1/(n1+n2) using an error bar calculated with Binomial sta...
void fillResidHist(RooHist &residHist, const RooCurve &curve, bool normalize=false, bool useAverage=false) const
void initialize()
Perform common initialization for all constructors.
void addBinWithError(Axis_t binCenter, double n, double elow, double ehigh, double binWidth=0, double xErrorFrac=1.0, bool correctForBinWidth=true, double scaleFactor=1.0)
Add a bin to this histogram with the specified bin contents and error.
void addEfficiencyBinWithError(Axis_t binCenter, double n1, double n2, double en1, double en2, double binWidth=0, double xErrorFrac=1.0, double scaleFactor=1.0)
Add a bin to this histogram with the value n1/(n1+n2) using an error bar calculated with Binomial sta...
void printName(std::ostream &os) const override
Print name of RooHist.
void printMultiline(std::ostream &os, Int_t content, bool verbose=false, TString indent="") const override
Print info about this histogram to the specified output stream.
std::unique_ptr< RooHist > createEmptyResidHist(const RooCurve &curve, bool normalize=false) const
void printTitle(std::ostream &os) const override
Print title of RooHist.
double getFitRangeBinW() const override
Return (average) bin width of this RooHist.
std::vector< double > _originalWeights
The original bin weights that were passed to the RooHist::addBin functions before scaling and bin wid...
double getNominalBinWidth() const
void addAsymmetryBinWithError(Axis_t binCenter, double n1, double n2, double en1, double en2, double binWidth=0, double xErrorFrac=1.0, double scaleFactor=1.0)
Add a bin to this histogram with the value (n1-n2)/(n1+n2) using an error bar calculated with Binomia...
double _entries
Number of entries in histogram.
Int_t roundBin(double y)
Return the nearest positive integer to the input value and print a warning if an adjustment is requir...
void setRawEntries(double n)
bool isIdentical(const RooHist &other, double tol=1e-6, bool verbose=true) const
Return true if contents of this RooHist is identical within given relative tolerance to that of 'othe...
void addAsymmetryBin(Axis_t binCenter, Int_t n1, Int_t n2, double binWidth=0, double xErrorFrac=1.0, double scaleFactor=1.0)
Add a bin to this histogram with the value (n1-n2)/(n1+n2) using an error bar calculated with Binomia...
RooHist * makePullHist(const RooCurve &curve, bool useAverage=false) const
double _nSigma
Number of 'sigmas' error bars represent.
void addBin(Axis_t binCenter, double n, double binWidth=0, double xErrorFrac=1.0, double scaleFactor=1.0)
Add a bin to this histogram with the specified integer bin contents and using an error bar calculated...
void addPoint(Axis_t binCenter, double y, double yscale, double exlow, double exhigh, double eylow, double eyhigh)
bool hasIdenticalBinning(const RooHist &other) const
Return true if binning of this RooHist is identical to that of 'other'.
double getFitRangeNEvt() const override
Return the number of events of the dataset associated with this RooHist.
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
void addBinWithXYError(Axis_t binCenter, double n, double exlow, double exhigh, double eylow, double eyhigh, double scaleFactor=1.0)
Add a bin to this histogram with the specified bin contents and error.
A RooPlot is a plot frame and a container for graphics objects within that frame.
Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of...
virtual StyleOption defaultPrintStyle(Option_t *opt) const
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
static std::ostream & defaultPrintStream(std::ostream *os=nullptr)
Return a reference to the current default stream to use in Print().
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,...
TGraph with asymmetric error bars.
TH1 is the base class of all histogram classes in ROOT.