Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGraph2DErrors.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/hist:$Id: TGraph2DErrors.h,v 1.00
0002 // Author: Olivier Couet 26/11/2003
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGraph2DErrors
0013 #define ROOT_TGraph2DErrors
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TGraph2DErrors                                                       //
0019 //                                                                      //
0020 // a 2D Graph with error bars                                           //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TGraph2D.h"
0025 
0026 class TGraph2DErrors : public TGraph2D {
0027 
0028 protected:
0029    Double_t *fEX{nullptr}; ///<[fNpoints] array of X errors
0030    Double_t *fEY{nullptr}; ///<[fNpoints] array of Y errors
0031    Double_t *fEZ{nullptr}; ///<[fNpoints] array of Z errors
0032 
0033 public:
0034    TGraph2DErrors();
0035    TGraph2DErrors(Int_t n);
0036    TGraph2DErrors(Int_t n, Double_t *x, Double_t *y, Double_t *z,
0037                   Double_t *ex = nullptr, Double_t *ey = nullptr, Double_t *ez = nullptr, Option_t *option = "");
0038    TGraph2DErrors(const TGraph2DErrors&);
0039    TGraph2DErrors& operator=(const TGraph2DErrors&);
0040    ~TGraph2DErrors() override;
0041    Double_t        GetErrorX(Int_t bin) const override;
0042    Double_t        GetErrorY(Int_t bin) const override;
0043    Double_t        GetErrorZ(Int_t bin) const override;
0044    Double_t       *GetEX() const override {return fEX;}
0045    Double_t       *GetEY() const override {return fEY;}
0046    Double_t       *GetEZ() const override {return fEZ;}
0047    Double_t        GetXmaxE() const override;
0048    Double_t        GetXminE() const override;
0049    Double_t        GetYmaxE() const override;
0050    Double_t        GetYminE() const override;
0051    Double_t        GetZmaxE() const override;
0052    Double_t        GetZminE() const override;
0053    void    Print(Option_t *chopt="") const override;
0054    Int_t           RemovePoint(Int_t ipoint); // *MENU*
0055    void    Scale(Double_t c1=1., Option_t *option="z") override; // *MENU*
0056    void    Set(Int_t n) override;
0057    void    SetPoint(Int_t i, Double_t x, Double_t y, Double_t z) override;
0058    virtual void    SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez);
0059 
0060    ClassDefOverride(TGraph2DErrors,1)  //A 2D graph with error bars
0061 };
0062 
0063 #endif
0064 
0065