#include <RooCurve.h>
Inheritance diagram for RooCurve:
Public Types | |
enum | WingMode |
enum | WingMode |
Public Member Functions | |
RooCurve () | |
RooCurve (const RooAbsReal &func, RooAbsRealLValue &x, Double_t xlo, Double_t xhi, Int_t xbins, Double_t scaleFactor=1, const RooArgSet *normVars=0, Double_t prec=1e-3, Double_t resolution=1e-3, Bool_t shiftToZero=kFALSE, WingMode wmode=Extended, Int_t nEvalError=-1, Int_t doEEVal=kFALSE, Double_t eeVal=0, Bool_t showProgress=kFALSE) | |
RooCurve (const char *name, const char *title, const RooAbsFunc &func, Double_t xlo, Double_t xhi, UInt_t minPoints, Double_t prec=1e-3, Double_t resolution=1e-3, Bool_t shiftToZero=kFALSE, WingMode wmode=Extended, Int_t nEvalError=-1, Int_t doEEVal=kFALSE, Double_t eeVal=0) | |
virtual | ~RooCurve () |
RooCurve (const char *name, const char *title, const RooCurve &c1, const RooCurve &c2, Double_t scale1=1., Double_t scale2=1.) | |
void | addPoint (Double_t x, Double_t y) |
Double_t | getFitRangeBinW () const |
Double_t | getFitRangeNEvt (Double_t xlo, Double_t xhi) const |
Double_t | getFitRangeNEvt () const |
virtual void | printName (ostream &os) const |
virtual void | printTitle (ostream &os) const |
virtual void | printClassName (ostream &os) const |
virtual void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
virtual void | Print (Option_t *options=0) const |
Double_t | chiSquare (const RooHist &hist, int nFitParam) const |
Int_t | findPoint (Double_t value, Double_t tolerance=1e-10) const |
Double_t | average (Double_t lo, Double_t hi) const |
Double_t | interpolate (Double_t x, Double_t tolerance=1e-10) const |
Bool_t | isIdentical (const RooCurve &other, Double_t tol=1e-6) const |
RooCurve * | makeErrorBand (const std::vector< RooCurve * > &variations, Double_t Z=1) const |
RooCurve * | makeErrorBand (const std::vector< RooCurve * > &plusVar, const std::vector< RooCurve * > &minusVar, const TMatrixD &V, Double_t Z=1) const |
RooCurve () | |
RooCurve (const RooAbsReal &func, RooAbsRealLValue &x, Double_t xlo, Double_t xhi, Int_t xbins, Double_t scaleFactor=1, const RooArgSet *normVars=0, Double_t prec=1e-3, Double_t resolution=1e-3, Bool_t shiftToZero=kFALSE, WingMode wmode=Extended, Int_t nEvalError=-1, Int_t doEEVal=kFALSE, Double_t eeVal=0, Bool_t showProgress=kFALSE) | |
RooCurve (const char *name, const char *title, const RooAbsFunc &func, Double_t xlo, Double_t xhi, UInt_t minPoints, Double_t prec=1e-3, Double_t resolution=1e-3, Bool_t shiftToZero=kFALSE, WingMode wmode=Extended, Int_t nEvalError=-1, Int_t doEEVal=kFALSE, Double_t eeVal=0) | |
virtual | ~RooCurve () |
RooCurve (const char *name, const char *title, const RooCurve &c1, const RooCurve &c2, Double_t scale1=1., Double_t scale2=1.) | |
void | addPoint (Double_t x, Double_t y) |
Double_t | getFitRangeBinW () const |
Double_t | getFitRangeNEvt (Double_t xlo, Double_t xhi) const |
Double_t | getFitRangeNEvt () const |
virtual void | printName (ostream &os) const |
virtual void | printTitle (ostream &os) const |
virtual void | printClassName (ostream &os) const |
virtual void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
virtual void | Print (Option_t *options=0) const |
Double_t | chiSquare (const RooHist &hist, int nFitParam) const |
Int_t | findPoint (Double_t value, Double_t tolerance=1e-10) const |
Double_t | average (Double_t lo, Double_t hi) const |
Double_t | interpolate (Double_t x, Double_t tolerance=1e-10) const |
Bool_t | isIdentical (const RooCurve &other, Double_t tol=1e-6) const |
RooCurve * | makeErrorBand (const std::vector< RooCurve * > &variations, Double_t Z=1) const |
RooCurve * | makeErrorBand (const std::vector< RooCurve * > &plusVar, const std::vector< RooCurve * > &minusVar, const TMatrixD &V, Double_t Z=1) const |
Protected Member Functions | |
void | calcBandInterval (const std::vector< RooCurve * > &variations, Int_t i, Double_t Z, Double_t &lo, Double_t &hi, Bool_t approxGauss) const |
void | calcBandInterval (const std::vector< RooCurve * > &plusVar, const std::vector< RooCurve * > &minusVar, Int_t i, const TMatrixD &V, Double_t Z, Double_t &lo, Double_t &hi) const |
void | initialize () |
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) |
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.) |
void | shiftCurveToZero (Double_t prevYMax) |
void | calcBandInterval (const std::vector< RooCurve * > &variations, Int_t i, Double_t Z, Double_t &lo, Double_t &hi, Bool_t approxGauss) const |
void | calcBandInterval (const std::vector< RooCurve * > &plusVar, const std::vector< RooCurve * > &minusVar, Int_t i, const TMatrixD &V, Double_t Z, Double_t &lo, Double_t &hi) const |
void | initialize () |
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) |
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.) |
void | shiftCurveToZero (Double_t prevYMax) |
Protected Attributes | |
Bool_t | _showProgress |
Definition at line 32 of file RooCurve.h.
enum RooCurve::WingMode |
Definition at line 35 of file RooCurve.h.
enum RooCurve::WingMode |
Definition at line 35 of file RooCurve.h.
RooCurve::RooCurve | ( | ) |
RooCurve::RooCurve | ( | const RooAbsReal & | func, | |
RooAbsRealLValue & | x, | |||
Double_t | xlo, | |||
Double_t | xhi, | |||
Int_t | xbins, | |||
Double_t | scaleFactor = 1 , |
|||
const RooArgSet * | normVars = 0 , |
|||
Double_t | prec = 1e-3 , |
|||
Double_t | resolution = 1e-3 , |
|||
Bool_t | shiftToZero = kFALSE , |
|||
WingMode | wmode = Extended , |
|||
Int_t | nEvalError = -1 , |
|||
Int_t | doEEVal = kFALSE , |
|||
Double_t | eeVal = 0 , |
|||
Bool_t | showProgress = kFALSE | |||
) |
Definition at line 71 of file RooCurve.cxx.
References _showProgress, addPoints(), ccoutP, TGraph::GetN(), TGraph::GetPoint(), RooPlotable::getYAxisMax(), i, initialize(), kTRUE, name, RooFit::Plotting, TNamed::SetName(), TGraph::SetTitle(), RooPlotable::setYAxisLabel(), shiftCurveToZero(), title, RooPlotable::updateYAxisLimits(), x, and x2.
RooCurve::RooCurve | ( | const char * | name, | |
const char * | title, | |||
const RooAbsFunc & | func, | |||
Double_t | xlo, | |||
Double_t | xhi, | |||
UInt_t | minPoints, | |||
Double_t | prec = 1e-3 , |
|||
Double_t | resolution = 1e-3 , |
|||
Bool_t | shiftToZero = kFALSE , |
|||
WingMode | wmode = Extended , |
|||
Int_t | nEvalError = -1 , |
|||
Int_t | doEEVal = kFALSE , |
|||
Double_t | eeVal = 0 | |||
) |
Definition at line 146 of file RooCurve.cxx.
References addPoints(), func(), TGraph::GetN(), TGraph::GetPoint(), RooPlotable::getYAxisMax(), i, initialize(), TNamed::SetName(), TGraph::SetTitle(), shiftCurveToZero(), RooPlotable::updateYAxisLimits(), x, and y.
RooCurve::~RooCurve | ( | ) | [virtual] |
Definition at line 226 of file RooCurve.cxx.
RooCurve::RooCurve | ( | const char * | name, | |
const char * | title, | |||
const RooCurve & | c1, | |||
const RooCurve & | c2, | |||
Double_t | scale1 = 1. , |
|||
Double_t | scale2 = 1. | |||
) |
Definition at line 176 of file RooCurve.cxx.
References addPoint(), c1, TGraph::GetN(), TGraph::GetPoint(), RooNumber::infinity(), initialize(), interpolate(), TNamed::SetName(), TGraph::SetTitle(), sort(), x, and y.
RooCurve::RooCurve | ( | ) |
RooCurve::RooCurve | ( | const RooAbsReal & | func, | |
RooAbsRealLValue & | x, | |||
Double_t | xlo, | |||
Double_t | xhi, | |||
Int_t | xbins, | |||
Double_t | scaleFactor = 1 , |
|||
const RooArgSet * | normVars = 0 , |
|||
Double_t | prec = 1e-3 , |
|||
Double_t | resolution = 1e-3 , |
|||
Bool_t | shiftToZero = kFALSE , |
|||
WingMode | wmode = Extended , |
|||
Int_t | nEvalError = -1 , |
|||
Int_t | doEEVal = kFALSE , |
|||
Double_t | eeVal = 0 , |
|||
Bool_t | showProgress = kFALSE | |||
) |
RooCurve::RooCurve | ( | const char * | name, | |
const char * | title, | |||
const RooAbsFunc & | func, | |||
Double_t | xlo, | |||
Double_t | xhi, | |||
UInt_t | minPoints, | |||
Double_t | prec = 1e-3 , |
|||
Double_t | resolution = 1e-3 , |
|||
Bool_t | shiftToZero = kFALSE , |
|||
WingMode | wmode = Extended , |
|||
Int_t | nEvalError = -1 , |
|||
Int_t | doEEVal = kFALSE , |
|||
Double_t | eeVal = 0 | |||
) |
virtual RooCurve::~RooCurve | ( | ) | [virtual] |
RooCurve::RooCurve | ( | const char * | name, | |
const char * | title, | |||
const RooCurve & | c1, | |||
const RooCurve & | c2, | |||
Double_t | scale1 = 1. , |
|||
Double_t | scale2 = 1. | |||
) |
Definition at line 447 of file RooCurve.cxx.
References TGraph::GetN(), TGraph::SetPoint(), and RooPlotable::updateYAxisLimits().
Referenced by addRange(), and RooCurve().
Double_t RooCurve::getFitRangeBinW | ( | ) | const [virtual] |
Double_t RooCurve::getFitRangeNEvt | ( | ) | const [virtual] |
void RooCurve::printName | ( | ostream & | os | ) | const [virtual] |
void RooCurve::printTitle | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
Definition at line 494 of file RooCurve.cxx.
References TNamed::GetTitle().
void RooCurve::printClassName | ( | ostream & | os | ) | const [virtual] |
void RooCurve::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooPlotable.
Definition at line 511 of file RooCurve.cxx.
References TGraph::fX, TGraph::fY, TGraph::GetN(), i, and n.
virtual void RooCurve::Print | ( | Option_t * | options = 0 |
) | const [inline, virtual] |
Reimplemented from TGraph.
Definition at line 59 of file RooCurve.h.
References RooPrintable::defaultPrintContents(), RooPrintable::defaultPrintStream(), RooPrintable::defaultPrintStyle(), and RooPrintable::printStream().
Definition at line 526 of file RooCurve.cxx.
References average(), TGraph::GetN(), TGraph::GetPoint(), hist, i, x, and y.
Referenced by RooPlot::chiSquare().
Definition at line 644 of file RooCurve.cxx.
References ROOT::Math::fabs(), TGraph::GetN(), TGraph::GetPoint(), i, n, x, and y.
Referenced by average(), and interpolate().
Definition at line 580 of file RooCurve.cxx.
References coutE, findPoint(), TNamed::GetName(), i, RooFit::InputArguments, and interpolate().
Referenced by chiSquare().
Definition at line 665 of file RooCurve.cxx.
References ROOT::Math::fabs(), findPoint(), TGraph::GetN(), TGraph::GetPoint(), and n.
Referenced by average(), isIdentical(), RooHist::makeResidHist(), and RooCurve().
Definition at line 843 of file RooCurve.cxx.
References ROOT::Math::fabs(), TGraph::fX, TGraph::fY, TGraph::GetN(), if(), interpolate(), kFALSE, kTRUE, min, xmax, xmin, ymax, and ymin.
RooCurve* RooCurve::makeErrorBand | ( | const std::vector< RooCurve * > & | variations, | |
Double_t | Z = 1 | |||
) | const |
Referenced by RooAbsReal::plotOnWithErrorBand().
RooCurve* RooCurve::makeErrorBand | ( | const std::vector< RooCurve * > & | plusVar, | |
const std::vector< RooCurve * > & | minusVar, | |||
const TMatrixD & | V, | |||
Double_t | Z = 1 | |||
) | const |
void RooCurve::calcBandInterval | ( | const std::vector< RooCurve * > & | variations, | |
Int_t | i, | |||
Double_t | Z, | |||
Double_t & | lo, | |||
Double_t & | hi, | |||
Bool_t | approxGauss | |||
) | const [protected] |
void RooCurve::calcBandInterval | ( | const std::vector< RooCurve * > & | plusVar, | |
const std::vector< RooCurve * > & | minusVar, | |||
Int_t | i, | |||
const TMatrixD & | V, | |||
Double_t | Z, | |||
Double_t & | lo, | |||
Double_t & | hi | |||
) | const [protected] |
void RooCurve::initialize | ( | ) | [protected] |
Definition at line 234 of file RooCurve.cxx.
References kBlue, TAttLine::SetLineColor(), and TAttLine::SetLineWidth().
Referenced by RooCurve().
void RooCurve::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 | |||
) | [protected] |
Referenced by RooCurve().
void RooCurve::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. | |||
) | [protected] |
Definition at line 399 of file RooCurve.cxx.
References _showProgress, addPoint(), ccoutP, ccoutW, RooAbsReal::clearEvalErrorLog(), coutW, ROOT::Math::fabs(), func(), RooAbsReal::numEvalErrors(), RooFit::Plotting, and RooAbsReal::printEvalErrors().
void RooCurve::shiftCurveToZero | ( | Double_t | prevYMax | ) | [protected] |
Definition at line 247 of file RooCurve.cxx.
References TGraph::GetN(), TGraph::GetPoint(), RooPlotable::getYAxisMax(), RooPlotable::getYAxisMin(), i, TGraph::SetPoint(), RooPlotable::setYAxisLimits(), x, and y.
Referenced by RooCurve().
Double_t RooCurve::getFitRangeBinW | ( | ) | const [virtual] |
Implements RooPlotable.
Implements RooPlotable.
Double_t RooCurve::getFitRangeNEvt | ( | ) | const [virtual] |
Implements RooPlotable.
virtual void RooCurve::printName | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooCurve::printTitle | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooCurve::printClassName | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooCurve::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooPlotable.
virtual void RooCurve::Print | ( | Option_t * | options = 0 |
) | const [inline, virtual] |
Reimplemented from TGraph.
Definition at line 59 of file RooCurve.h.
References RooPrintable::defaultPrintContents(), RooPrintable::defaultPrintStream(), RooPrintable::defaultPrintStyle(), and RooPrintable::printStream().
RooCurve* RooCurve::makeErrorBand | ( | const std::vector< RooCurve * > & | variations, | |
Double_t | Z = 1 | |||
) | const |
RooCurve* RooCurve::makeErrorBand | ( | const std::vector< RooCurve * > & | plusVar, | |
const std::vector< RooCurve * > & | minusVar, | |||
const TMatrixD & | V, | |||
Double_t | Z = 1 | |||
) | const |
void RooCurve::calcBandInterval | ( | const std::vector< RooCurve * > & | variations, | |
Int_t | i, | |||
Double_t | Z, | |||
Double_t & | lo, | |||
Double_t & | hi, | |||
Bool_t | approxGauss | |||
) | const [protected] |
void RooCurve::calcBandInterval | ( | const std::vector< RooCurve * > & | plusVar, | |
const std::vector< RooCurve * > & | minusVar, | |||
Int_t | i, | |||
const TMatrixD & | V, | |||
Double_t | Z, | |||
Double_t & | lo, | |||
Double_t & | hi | |||
) | const [protected] |
void RooCurve::initialize | ( | ) | [protected] |
void RooCurve::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 | |||
) | [protected] |
void RooCurve::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. | |||
) | [protected] |
void RooCurve::shiftCurveToZero | ( | Double_t | prevYMax | ) | [protected] |
Bool_t RooCurve::_showProgress [protected] |