54 virtual void printName(std::ostream& os)
const ;
55 virtual void printTitle(std::ostream& os)
const ;
void calcBandInterval(const std::vector< RooCurve *> &variations, Int_t i, Double_t Z, Double_t &lo, Double_t &hi, Bool_t approxGauss) const
virtual void printTitle(std::ostream &os) const
Print the title of this curve.
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, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.
A RooCurve is a one-dimensional graphical representation of a real-valued function.
Int_t findPoint(Double_t value, Double_t tolerance=1e-10) const
Find the nearest point to xvalue.
Class RooPotable is a base class for objects that can be inserted into RooPlots and take advantage of...
void shiftCurveToZero(Double_t prevYMax)
Find lowest point in curve and move all points in curve so that lowest point will go exactly through ...
virtual ~RooCurve()
Destructor.
virtual void printName(std::ostream &os) const
Print name of object.
Double_t chiSquare(const RooHist &hist, int nFitParam) const
Calculate the chi^2/NDOF of this curve with respect to the histogram 'hist' accounting nFitParam floa...
static const double x2[5]
A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class...
#define ClassDef(name, id)
RooCurve()
Default constructor.
void initialize()
Perform initialization that is common to all curves.
Double_t getFitRangeNEvt() const
Return the number of events associated with the plotable object, it is always 1 for curves...
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void printClassName(std::ostream &os) const
Print the class name of this curve.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print the details of this curve.
Double_t interpolate(Double_t x, Double_t tolerance=1e-10) const
Return linearly interpolated value of curve at xvalue.
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
void addPoint(Double_t x, Double_t y)
Add a point with the specified coordinates. Update our y-axis limits.
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
static const double x1[5]
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
double func(double *x, double *p)
virtual StyleOption defaultPrintStyle(Option_t *opt) const
void addPoints(const RooAbsFunc &func, Double_t xlo, Double_t xhi, Int_t minPoints, Double_t prec, Double_t resolution, WingMode wmode, Int_t numee=0, Bool_t doEEVal=kFALSE, Double_t eeVal=0., std::list< Double_t > *samplingHint=0)
Add points calculated with the specified function, over the range (xlo,xhi).
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Bool_t isIdentical(const RooCurve &other, Double_t tol=1e-6) const
Return true if curve is identical to other curve allowing for given absolute tolerance on each point ...
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
void addRange(const RooAbsFunc &func, Double_t x1, Double_t x2, Double_t y1, Double_t y2, Double_t minDy, Double_t minDx, Int_t numee=0, Bool_t doEEVal=kFALSE, Double_t eeVal=0.)
Fill the range (x1,x2) with points calculated using func(&x).
Double_t average(Double_t lo, Double_t hi) const
Return average curve value in [xFirst,xLast] by integrating curve between points and dividing by xLas...
A Graph is a graphics object made of two arrays X and Y with npoints each.
float type_of_call hi(const int &, const int &)
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
virtual void Print(Option_t *options=0) const
Print graph values.
Double_t getFitRangeBinW() const
Get the bin width associated with this plotable object.
RooCurve * makeErrorBand(const std::vector< RooCurve *> &variations, Double_t Z=1) const
Construct filled RooCurve represented error band that captures alpha% of the variations of the curves...