class TGraphAsymmErrors: public TGraph


TGraphAsymmErrors class

A TGraphAsymmErrors is a TGraph with assymetric error bars. The various format options to draw a TGraphAsymmErrors are explained in TGraphAsymmErrors::Paint.

The picture below gives an example:

output of MACRO_TGraphAsymmErrors_1_c1
{
   c1 = new TCanvas("c1","A Simple Graph with assymetric error bars",200,10,700,500);
   c1->SetFillColor(42);
   c1->SetGrid();
   c1->GetFrame()->SetFillColor(21);
   c1->GetFrame()->SetBorderSize(12);
   Int_t n = 10;
   Double_t x[n]   = {-0.22, 0.05, 0.25, 0.35, 0.5, 0.61,0.7,0.85,0.89,0.95};
   Double_t y[n]   = {1,2.9,5.6,7.4,9,9.6,8.7,6.3,4.5,1};
   Double_t exl[n] = {.05,.1,.07,.07,.04,.05,.06,.07,.08,.05};
   Double_t eyl[n] = {.8,.7,.6,.5,.4,.4,.5,.6,.7,.8};
   Double_t exh[n] = {.02,.08,.05,.05,.03,.03,.04,.05,.06,.03};
   Double_t eyh[n] = {.6,.5,.4,.3,.2,.2,.3,.4,.5,.6};
   gr = new TGraphAsymmErrors(n,x,y,exl,exh,eyl,eyh);
   gr->SetTitle("TGraphAsymmErrors Example");
   gr->SetMarkerColor(4);
   gr->SetMarkerStyle(21);
   gr->Draw("ALP");
   return c1;
}
 

Function Members (Methods)

public:
TGraphAsymmErrors()
TGraphAsymmErrors(Int_t n)
TGraphAsymmErrors(const TGraphAsymmErrors& gr)
TGraphAsymmErrors(const TH1* h)
TGraphAsymmErrors(const TH1* pass, const TH1* total, Option_t* option = "")
TGraphAsymmErrors(const TVectorF& vx, const TVectorF& vy, const TVectorF& vexl, const TVectorF& vexh, const TVectorF& veyl, const TVectorF& veyh)
TGraphAsymmErrors(const TVectorD& vx, const TVectorD& vy, const TVectorD& vexl, const TVectorD& vexh, const TVectorD& veyl, const TVectorD& veyh)
TGraphAsymmErrors(Int_t n, const Float_t* x, const Float_t* y, const Float_t* exl = 0, const Float_t* exh = 0, const Float_t* eyl = 0, const Float_t* eyh = 0)
TGraphAsymmErrors(Int_t n, const Double_t* x, const Double_t* y, const Double_t* exl = 0, const Double_t* exh = 0, const Double_t* eyl = 0, const Double_t* eyh = 0)
virtual~TGraphAsymmErrors()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidApply(TF1* f)
virtual voidBayesDivide(const TH1* pass, const TH1* total, Option_t* option = "")
virtual voidTGraph::Browse(TBrowser* b)
virtual Double_tTGraph::Chisquare(const TF1* f1) 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 voidComputeRange(Double_t& xmin, Double_t& ymin, Double_t& xmax, Double_t& ymax) const
virtual voidTNamed::Copy(TObject& named) 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 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 Int_tTGraph::Fit(const char* formula, Option_t* option = "", Option_t* goption = "", Axis_t xmin = 0, Axis_t xmax = 0)MENU
virtual Int_tTGraph::Fit(TF1* f1, Option_t* option = "", Option_t* goption = "", Axis_t xmin = 0, Axis_t xmax = 0)MENU
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_tGetErrorX(Int_t bin) const
virtual Double_tGetErrorXhigh(Int_t i) const
virtual Double_tGetErrorXlow(Int_t i) const
virtual Double_tGetErrorY(Int_t bin) const
virtual Double_tGetErrorYhigh(Int_t i) const
virtual Double_tGetErrorYlow(Int_t i) const
virtual Double_t*TGraph::GetEX() const
virtual Double_t*GetEXhigh() const
virtual Double_t*TGraph::GetEXhighd() const
virtual Double_t*GetEXlow() const
virtual Double_t*TGraph::GetEXlowd() const
virtual Double_t*TGraph::GetEY() const
virtual Double_t*GetEYhigh() const
virtual Double_t*TGraph::GetEYhighd() const
virtual Double_t*GetEYlow() const
virtual Double_t*TGraph::GetEYlowd() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() 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
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual voidTGraph::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
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::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 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
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_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
voidTObject::MayNotUse(const char* method) const
virtual Int_tTGraph::Merge(TCollection* list)
virtual voidTAttLine::Modify()
virtual Bool_tTObject::Notify()
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)
TGraphAsymmErrors&operator=(const TGraphAsymmErrors& gr)
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* chopt = "") 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)
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 voidSavePrimitive(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::SetFillStyle(Style_t fstyle)
virtual voidTGraph::SetHistogram(TH1* h)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTAttMarker::SetMarkerAttributes()MENU
virtual voidTAttMarker::SetMarkerColor(Color_t tcolor = 1)
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 voidSetPointError(Double_t exl, Double_t exh, Double_t eyl, Double_t eyh)MENU
virtual voidSetPointError(Int_t i, Double_t exl, Double_t exh, Double_t eyl, Double_t eyh)
virtual voidSetPointEXhigh(Int_t i, Double_t exh)
virtual voidSetPointEXlow(Int_t i, Double_t exl)
virtual voidSetPointEYhigh(Int_t i, Double_t eyh)
virtual voidSetPointEYlow(Int_t i, Double_t eyl)
virtual voidTGraph::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
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& b)
voidStreamerNVirtual(TBuffer& 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
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**Allocate(Int_t size)
Double_t**TGraph::AllocateArrays(Int_t Narrays, Int_t arraySize)
Double_tBeta_ab(double a, double b, int k, int N) const
Double_tBetai(double a, double b, double x) const
Double_tBrent(double ax, double bx, double cx, double tol, double* xmin) const
virtual voidCopyAndRelease(Double_t** newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
virtual Bool_tCopyPoints(Double_t** arrays, Int_t ibegin, Int_t iend, Int_t obegin)
Bool_tCtorAllocate()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidEfficiency(int k, int N, double conflevel, double& mode, double& low, double& high) const
Double_t**TGraph::ExpandAndCopy(Int_t size, Int_t iend)
virtual voidFillZero(Int_t begin, Int_t end, Bool_t from_ctor = kTRUE)
Double_tIbetai(double a, double b, double x) const
Double_tInterval(double low) const
voidTObject::MakeZombie()
Double_tSearchLower(double high, int k, int N, double c) const
Double_tSearchUpper(double low, int k, int N, double c) const
Double_t**TGraph::ShrinkAndCopy(Int_t size, Int_t iend)
virtual voidSwapPoints(Int_t pos1, Int_t pos2)
static voidTGraph::SwapValues(Double_t* arr, Int_t pos1, Int_t pos2)

Data Members

public:
enum TGraph::[unnamed] { kClipFrame
kNotEditable
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Double_t*fEXhigh[fNpoints] array of X high errors
Double_t*fEXlow[fNpoints] array of X low errors
Double_t*fEYhigh[fNpoints] array of Y high errors
Double_t*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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGraphAsymmErrors()
 TGraphAsymmErrors default constructor.
TGraphAsymmErrors(const TGraphAsymmErrors &gr)
 TGraphAsymmErrors copy constructor
TGraphAsymmErrors& operator=(const TGraphAsymmErrors& gr)
 TGraphAsymmErrors assignment operator
TGraphAsymmErrors(Int_t n)
 TGraphAsymmErrors normal constructor.

 the arrays are preset to zero
TGraphAsymmErrors(Int_t n, const Float_t *x, const Float_t *y, const Float_t *exl, const Float_t *exh, const Float_t *eyl, const Float_t *eyh)
 TGraphAsymmErrors normal constructor.

 if exl,h or eyl,h are null, the corresponding arrays are preset to zero
TGraphAsymmErrors(Int_t n, const Double_t *x, const Double_t *y, const Double_t *exl, const Double_t *exh, const Double_t *eyl, const Double_t *eyh)
 TGraphAsymmErrors normal constructor.

 if exl,h or eyl,h are null, the corresponding arrays are preset to zero
TGraphAsymmErrors(const TVectorF &vx, const TVectorF &vy, const TVectorF &vexl, const TVectorF &vexh, const TVectorF &veyl, const TVectorF &veyh)
 Constructor with six vectors of floats in input
 A grapherrors is built with the X coordinates taken from vx and Y coord from vy
 and the errors from vectors vexl/h and veyl/h.
 The number of points in the graph is the minimum of number of points
 in vx and vy.
TGraphAsymmErrors(const TVectorD &vx, const TVectorD &vy, const TVectorD &vexl, const TVectorD &vexh, const TVectorD &veyl, const TVectorD &veyh)
 Constructor with six vectors of doubles in input
 A grapherrors is built with the X coordinates taken from vx and Y coord from vy
 and the errors from vectors vexl/h and veyl/h.
 The number of points in the graph is the minimum of number of points
 in vx and vy.
TGraphAsymmErrors(const TH1 *h)
 TGraphAsymmErrors constructor importing its parameters from the TH1 object passed as argument
 the low and high errors are set to the bin error of the histogram.
TGraphAsymmErrors(const TH1* pass, const TH1* total, Option_t* option = "")
 Creates a TGraphAsymmErrors by dividing two input TH1 histograms:
 pass/total. (see TGraphAsymmErrors::BayesDivide)
~TGraphAsymmErrors()
 TGraphAsymmErrors default destructor.
void Apply(TF1* f)
 apply a function to all data points
 y = f(x,y)

 Errors are calculated as eyh = f(x,y+eyh)-f(x,y) and
 eyl = f(x,y)-f(x,y-eyl)

 Special treatment has to be applied for the functions where the
 role of "up" and "down" is reversed.
 function suggested/implemented by Miroslav Helbich <helbich@mail.desy.de>
void BayesDivide(const TH1* pass, const TH1* total, Option_t* option = "")
 Fills this TGraphAsymmErrors by dividing two input TH1 histograms pass/total.

 Andy Haas (haas@fnal.gov)
 University of Washington

 Method and code directly taken from:
 Marc Paterno (paterno@fnal.gov)
 FNAL/CD

 The input histograms must be filled with weights of 1.
 By default the function does not check this assertion.
 if option "w" is specified, the function will fail if the histograms
 have been filled with weights not equal to 1.

 The assumption is that the entries in "pass" are a
 subset of those in "total". That is, we create an "efficiency"
 graph, where each entry is between 0 and 1, inclusive.
 The resulting graph can be fit to functions, using standard methods:
 graph->Fit("erf")... for instance. (You have to define the erf
 function for yourself for now, sorry.)

 The points are assigned an x value at the center of each histogram bin.
 The y values are #pass/#total, between 0 and 1.
 The x errors span each histogram bin (lowedge->lowedge+width)
 The y errors are the fun part. :)

 The y errors are assigned based on applying Bayes theorem.
 The model is the Binomial distribution, and the "prior" is
 the flat distribution from 0 to 1.
 If there is no data in a bin of the total histogram, no information
 can be obtained for that bin, so no point is made on the graph.

 The complete method and a beautiful discussion can be found here:
 http://home.fnal.gov/~paterno/images/effic.pdf
 And more information is on these pages:
 http://home.fnal.gov/~paterno/probability/localresources.html
 A backup of the main document is here:
 http://www-clued0.fnal.gov/~haas/documents/paterno_effic.pdf

 A 68.3% Confidence Level is used to assign the errors.
 Warning! You should understand, the errors reported are the shortest
 ranges containing 68.3% of the probability distrubution. The errors are
 not exactly Gaussian! The Minuit fitting routines will assume that
 the errors are Gaussian. But this is a reasonable approximation.
 A fit using the full shape of the error distribution for each point
 would be far more difficult to perform.
double Beta_ab(double a, double b, int k, int N) const
 Calculates the fraction of the area under the
 curve x^k*(1-x)^(N-k) between x=a and x=b
double Ibetai(double a, double b, double x) const
 Calculates the incomplete beta function  I_x(a,b); this is
 the incomplete beta function divided by the complete beta function
double Betai(double a, double b, double x) const
 Calculates the incomplete beta function B_x(a,b), as defined
 in Gradshteyn and Ryzhik (4th edition) 8.391
double Brent(double ax, double bx, double cx, double tol, double* xmin) const
 Implementation file for the numerical equation solver library.
 This includes root finding and minimum finding algorithms.
 Adapted from Numerical Recipes in C, 2nd edition.
 Translated to C++ by Marc Paterno
void ComputeRange(Double_t& xmin, Double_t& ymin, Double_t& xmax, Double_t& ymax) const
 Compute Range
void CopyAndRelease(Double_t** newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
 Copy and release.
Bool_t CopyPoints(Double_t** arrays, Int_t ibegin, Int_t iend, Int_t obegin)
 Copy errors from fE*** to arrays[***]
 or to f*** Copy points.
Bool_t CtorAllocate(void)
 Should be called from ctors after fNpoints has been set
void Efficiency(int k, int N, double conflevel, double& mode, double& low, double& high) const
 Calculate the shortest central confidence interval containing the required
 probability content.
 Interval(low) returns the length of the interval starting at low
 that contains CONFLEVEL probability. We use Brent's method,
 except in two special cases: when k=0, or when k=N
 Main driver routine
 Author: Marc Paterno
void FillZero(Int_t begin, Int_t end, Bool_t from_ctor = kTRUE)
 Set zero values for point arrays in the range [begin, end)
Double_t GetErrorX(Int_t bin) const
 This function is called by GraphFitChisquare.
 It returns the error along X at point i.
Double_t GetErrorY(Int_t bin) const
 This function is called by GraphFitChisquare.
 It returns the error along Y at point i.
Double_t GetErrorXhigh(Int_t i) const
 Get high error on X.
Double_t GetErrorXlow(Int_t i) const
 Get low error on X.
Double_t GetErrorYhigh(Int_t i) const
 Get high error on Y.
Double_t GetErrorYlow(Int_t i) const
 Get low error on Y.
double Interval(double low) const
 Return the length of the interval starting at low
 that contains CONFLEVEL of the x^GLOBAL_k*(1-x)^(GLOBAL_N-GLOBAL_k)
 distribution.
 If there is no sufficient interval starting at low, we return 2.0
void Print(Option_t* chopt = "") const
 Print graph and errors values.
void SavePrimitive(ostream& out, Option_t* option = "")
 Save primitive as a C++ statement(s) on output stream out
double SearchLower(double high, int k, int N, double c) const
 Integrates the binomial distribution with
 parameters k,N, and determines what is the lower edge of the
 integration region which ends at high, and which contains
 probability content c. If a lower limit is found, the value is
 returned. If no solution is found, the -1 is returned.
 check to see if there is any solution by verifying that the integral down
 to the minimum lower limit (0) is greater than c
double SearchUpper(double low, int k, int N, double c) const
 Integrates the binomial distribution with
 parameters k,N, and determines what is the upper edge of the
 integration region which starts at low which contains probability
 content c. If an upper limit is found, the value is returned. If no
 solution is found, -1 is returned.
 check to see if there is any solution by verifying that the integral up
 to the maximum upper limit (1) is greater than c
void SetPointError(Double_t exl, Double_t exh, Double_t eyl, Double_t eyh)
 Set ex and ey values for point pointed by the mouse.
void SetPointError(Int_t i, Double_t exl, Double_t exh, Double_t eyl, Double_t eyh)
 Set ex and ey values for point number i.
void SetPointEXlow(Int_t i, Double_t exl)
 Set EXlow for point i
void SetPointEXhigh(Int_t i, Double_t exh)
 Set EXhigh for point i
void SetPointEYlow(Int_t i, Double_t eyl)
 Set EYlow for point i
void SetPointEYhigh(Int_t i, Double_t eyh)
 Set EYhigh for point i
void Streamer(TBuffer& b)
 Stream an object of class TGraphAsymmErrors.
void SwapPoints(Int_t pos1, Int_t pos2)
 Swap points.
Double_t** Allocate(Int_t size)
Double_t * GetEXlow()
{return fEXlow;}
Double_t * GetEXhigh()
{return fEXhigh;}
Double_t * GetEYlow()
{return fEYlow;}
Double_t * GetEYhigh()
{return fEYhigh;}

Author: Rene Brun 03/03/99
Last change: root/graf:$Id: TGraphAsymmErrors.h 24084 2008-06-01 15:34:01Z brun $
Last generated: 2008-06-25 08:46
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.