KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members

Extension of TGraph class with new draw option.

Created by KVClassFactory on Wed Jun 19 09:06:08 2013 Author: dgruyer

Definition at line 15 of file KVGraph.h.

Public Types

enum  CropOption { kNoCrop , kCropOnDiv , kCropOnGraph , kCropMin }
 
- Public Types inherited from TGraph
enum  EStatusBits
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 

Public Member Functions

 KVGraph ()
 Default constructor. More...
 
 KVGraph (Int_t n)
 Write your code here. More...
 
virtual ~KVGraph ()
 Destructor. More...
 
void Draw (Option_t *chopt="")
 
void SetCropMode (Int_t crop=kCropOnGraph)
 
void SetDisplayDivX (Int_t ndiv, Double_t *div=0)
 
void SetDisplayDivY (Int_t ndiv, Double_t *div=0)
 
void SetUseX (Bool_t usex=kTRUE)
 
void SetUseY (Bool_t usey=kTRUE)
 
- Public Member Functions inherited from TGraphErrors
 TGraphErrors ()
 
 TGraphErrors (const char *filename, const char *format="%lg %lg %lg %lg", Option_t *option="")
 
 TGraphErrors (const TGraphErrors &gr)
 
 TGraphErrors (const TH1 *h)
 
 TGraphErrors (const TVectorD &vx, const TVectorD &vy, const TVectorD &vex, const TVectorD &vey)
 
 TGraphErrors (const TVectorF &vx, const TVectorF &vy, const TVectorF &vex, const TVectorF &vey)
 
 TGraphErrors (Int_t n)
 
 TGraphErrors (Int_t n, const Double_t *x, const Double_t *y, const Double_t *ex=0, const Double_t *ey=0)
 
 TGraphErrors (Int_t n, const Float_t *x, const Float_t *y, const Float_t *ex=0, const Float_t *ey=0)
 
virtual ~TGraphErrors ()
 
virtual void Apply (TF1 *f)
 
virtual void ApplyX (TF1 *f)
 
virtual void ComputeRange (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
 
Double_t GetErrorX (Int_t bin) const
 
Double_t GetErrorXhigh (Int_t bin) const
 
Double_t GetErrorXlow (Int_t bin) const
 
Double_t GetErrorY (Int_t bin) const
 
Double_t GetErrorYhigh (Int_t bin) const
 
Double_t GetErrorYlow (Int_t bin) const
 
Double_tGetEX () const
 
Double_tGetEY () const
 
virtual Int_t Merge (TCollection *list)
 
TGraphErrorsoperator= (const TGraphErrors &gr)
 
virtual void Print (Option_t *chopt="") const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
virtual void SetPointError (Double_t ex, Double_t ey)
 
virtual void SetPointError (Int_t i, Double_t ex, Double_t ey)
 
- Public Member Functions inherited from TGraph
 TGraph ()
 
 TGraph (const char *filename, const char *format="%lg %lg", Option_t *option="")
 
 TGraph (const TF1 *f, Option_t *option="")
 
 TGraph (const TGraph &gr)
 
 TGraph (const TH1 *h)
 
 TGraph (const TVectorD &vx, const TVectorD &vy)
 
 TGraph (const TVectorF &vx, const TVectorF &vy)
 
 TGraph (Int_t n)
 
 TGraph (Int_t n, const Double_t *x, const Double_t *y)
 
 TGraph (Int_t n, const Float_t *x, const Float_t *y)
 
 TGraph (Int_t n, const Int_t *x, const Int_t *y)
 
virtual ~TGraph ()
 
virtual void AddPoint (Double_t x, Double_t y)
 
virtual void Browse (TBrowser *b)
 
virtual Double_t Chisquare (TF1 *f1, Option_t *option="") const
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void DrawGraph (Int_t n, const Double_t *x=nullptr, const Double_t *y=nullptr, Option_t *option="")
 
virtual void DrawGraph (Int_t n, const Float_t *x, const Float_t *y, Option_t *option="")
 
virtual void DrawGraph (Int_t n, const Int_t *x, const Int_t *y, Option_t *option="")
 
virtual void DrawPanel ()
 
virtual Double_t Eval (Double_t x, TSpline *spline=nullptr, Option_t *option="") const
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Expand (Int_t newsize)
 
virtual void Expand (Int_t newsize, Int_t step)
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual TFitResultPtr Fit (const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
 
virtual TFitResultPtr Fit (TF1 *f1, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
 
virtual void FitPanel ()
 
virtual Double_t GetCorrelationFactor () const
 
virtual Double_t GetCovariance () const
 
Bool_t GetEditable () const
 
virtual Double_tGetEXhigh () const
 
virtual Double_tGetEXhighd () const
 
virtual Double_tGetEXlow () const
 
virtual Double_tGetEXlowd () const
 
virtual Double_tGetEYhigh () const
 
virtual Double_tGetEYhighd () const
 
virtual Double_tGetEYlow () const
 
virtual Double_tGetEYlowd () const
 
TF1GetFunction (const char *name) const
 
TH1FGetHistogram () const
 
TListGetListOfFunctions () const
 
Double_t GetMaximum () const
 
Int_t GetMaxSize () const
 
virtual Double_t GetMean (Int_t axis=1) const
 
Double_t GetMinimum () const
 
Int_t GetN () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Int_t GetPoint (Int_t i, Double_t &x, Double_t &y) const
 
virtual Double_t GetPointX (Int_t i) const
 
virtual Double_t GetPointY (Int_t i) const
 
virtual Double_t GetRMS (Int_t axis=1) const
 
Double_tGetX () const
 
TAxisGetXaxis () const
 
Double_tGetY () const
 
TAxisGetYaxis () const
 
virtual void InitExpo (Double_t xmin=0, Double_t xmax=0)
 
virtual void InitGaus (Double_t xmin=0, Double_t xmax=0)
 
virtual void InitPolynom (Double_t xmin=0, Double_t xmax=0)
 
virtual Int_t InsertPoint ()
 
virtual void InsertPointBefore (Int_t ipoint, Double_t x, Double_t y)
 
virtual Double_t Integral (Int_t first=0, Int_t last=-1) const
 
virtual Bool_t IsEditable () const
 
virtual Bool_t IsHighlight () const
 
virtual Int_t IsInside (Double_t x, Double_t y) const
 
virtual void LeastSquareFit (Int_t m, Double_t *a, Double_t xmin=0, Double_t xmax=0)
 
virtual void LeastSquareLinearFit (Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin=0, Double_t xmax=0)
 
virtual void MovePoints (Double_t dx, Double_t dy, Bool_t logx=kFALSE, Bool_t logy=kFALSE)
 
TGraphoperator= (const TGraph &)
 
virtual void Paint (Option_t *chopt="")
 
void PaintGraph (Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
 
void PaintGrapHist (Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
 
virtual void PaintStats (TF1 *fit)
 
virtual void RecursiveRemove (TObject *obj)
 
virtual Int_t RemovePoint ()
 
virtual Int_t RemovePoint (Int_t ipoint)
 
virtual void Set (Int_t n)
 
virtual void SetEditable (Bool_t editable=kTRUE)
 
virtual void SetHighlight (Bool_t set=kTRUE)
 
virtual void SetHistogram (TH1F *h)
 
virtual void SetMaximum (Double_t maximum=-1111)
 
virtual void SetMinimum (Double_t minimum=-1111)
 
virtual void SetName (const char *name="")
 
virtual void SetNameTitle (const char *name="", const char *title="")
 
virtual void SetPoint (Int_t i, Double_t x, Double_t y)
 
virtual void SetPointX (Int_t i, Double_t x)
 
virtual void SetPointY (Int_t i, Double_t y)
 
virtual void SetStats (Bool_t stats=kTRUE)
 
virtual void SetTitle (const char *title="")
 
virtual void Sort (Bool_t(*greater)(const TGraph *, Int_t, Int_t)=&TGraph::CompareX, Bool_t ascending=kTRUE, Int_t low=0, Int_t high=-1111)
 
virtual void UseCurrentStyle ()
 
void Zero (Int_t &k, Double_t AZ, Double_t BZ, Double_t E2, Double_t &X, Double_t &Y, Int_t maxiterations)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void Copy (TObject &named) const
 
virtual void FillBuffer (char *&buffer)
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual ULong_t Hash () const
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 
TNamedoperator= (const TNamed &rhs)
 
virtual Int_t Sizeof () const
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 
virtual ~TAttLine ()
 
void Copy (TAttLine &attline) const
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 
virtual Color_t GetLineColor () const
 
virtual Style_t GetLineStyle () const
 
virtual Width_t GetLineWidth () const
 
virtual void Modify ()
 
virtual void ResetAttLine (Option_t *option="")
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 
virtual void SetLineAttributes ()
 
virtual void SetLineColor (Color_t lcolor)
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 
virtual void SetLineStyle (Style_t lstyle)
 
virtual void SetLineWidth (Width_t lwidth)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 
virtual ~TAttFill ()
 
void Copy (TAttFill &attfill) const
 
virtual Color_t GetFillColor () const
 
virtual Style_t GetFillStyle () const
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 
virtual void ResetAttFill (Option_t *option="")
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 
virtual void SetFillAttributes ()
 
virtual void SetFillColor (Color_t fcolor)
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 
virtual void SetFillStyle (Style_t fstyle)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 
virtual ~TAttMarker ()
 
void Copy (TAttMarker &attmarker) const
 
virtual Color_t GetMarkerColor () const
 
virtual Size_t GetMarkerSize () const
 
virtual Style_t GetMarkerStyle () const
 
virtual void Modify ()
 
virtual void ResetAttMarker (Option_t *toption="")
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 
virtual void SetMarkerAttributes ()
 
virtual void SetMarkerColor (Color_t mcolor=1)
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 
virtual void SetMarkerSize (Size_t msize=1)
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 

Protected Member Functions

Double_tGetBinArray (Int_t &nbins, Bool_t xAxis=kTRUE)
 
void HideAxis (TAxis *ax)
 
virtual void init ()
 
- Protected Member Functions inherited from TGraphErrors
virtual Double_t ** Allocate (Int_t size)
 
virtual void CopyAndRelease (Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
 
virtual Bool_t CopyPoints (Double_t **arrays, Int_t ibegin, Int_t iend, Int_t obegin)
 
Bool_t CtorAllocate ()
 
virtual Bool_t DoMerge (const TGraph *g)
 
virtual void FillZero (Int_t begin, Int_t end, Bool_t from_ctor=kTRUE)
 
virtual void SwapPoints (Int_t pos1, Int_t pos2)
 
- Protected Member Functions inherited from TGraph
Double_t ** AllocateArrays (Int_t Narrays, Int_t arraySize)
 
Bool_t CtorAllocate ()
 
Double_t ** ExpandAndCopy (Int_t size, Int_t iend)
 
Double_t ** ShrinkAndCopy (Int_t size, Int_t iend)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 

Protected Attributes

Int_t fCropMode
 
Double_tfDisplayDivX
 
Double_tfDisplayDivY
 
Int_t fNDivX
 
Int_t fNDivY
 
Bool_t fUseX
 
Bool_t fUseY
 
- Protected Attributes inherited from TGraphErrors
Double_tfEX
 
Double_tfEY
 
- Protected Attributes inherited from TGraph
TListfFunctions
 
TH1FfHistogram
 
Double_t fMaximum
 
Int_t fMaxSize
 
Double_t fMinimum
 
Int_t fNpoints
 
Double_tfX
 
Double_tfY
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 
Style_t fLineStyle
 
Width_t fLineWidth
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 
Style_t fFillStyle
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 
Size_t fMarkerSize
 
Style_t fMarkerStyle
 

Additional Inherited Members

- Static Public Member Functions inherited from TGraphErrors
static Int_t CalculateScanfFields (const char *fmt)
 
- Static Public Member Functions inherited from TGraph
static Bool_t CompareArg (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareRadius (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareX (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareY (const TGraph *gr, Int_t left, Int_t right)
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Static Public Member Functions inherited from TAttMarker
static Width_t GetMarkerLineWidth (Style_t style)
 
static Style_t GetMarkerStyleBase (Style_t style)
 
- Public Attributes inherited from TGraph
 kClipFrame
 
 kIsHighlight
 
 kIsSortedX
 
 kNoStats
 
 kNotEditable
 
 kResetHisto
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Static Protected Member Functions inherited from TGraph
static void SwapValues (Double_t *arr, Int_t pos1, Int_t pos2)
 

#include <KVGraph.h>

Inheritance diagram for KVGraph:
Inheritance graph
[legend]

Member Enumeration Documentation

◆ CropOption

Enumerator
kNoCrop 
kCropOnDiv 
kCropOnGraph 
kCropMin 

Definition at line 30 of file KVGraph.h.

Constructor & Destructor Documentation

◆ KVGraph() [1/2]

KVGraph::KVGraph ( )

Default constructor.

Definition at line 19 of file KVGraph.cpp.

◆ KVGraph() [2/2]

KVGraph::KVGraph ( Int_t  n)

Write your code here.

Definition at line 43 of file KVGraph.cpp.

◆ ~KVGraph()

KVGraph::~KVGraph ( )
virtual

Member Function Documentation

◆ Draw()

void KVGraph::Draw ( Option_t chopt = "")
virtual

Reimplemented from TGraph.

Definition at line 126 of file KVGraph.cpp.

◆ GetBinArray()

Double_t * KVGraph::GetBinArray ( Int_t nbins,
Bool_t  xAxis = kTRUE 
)
protected

Definition at line 229 of file KVGraph.cpp.

◆ HideAxis()

void KVGraph::HideAxis ( TAxis ax)
protected

Definition at line 217 of file KVGraph.cpp.

◆ init()

void KVGraph::init ( void  )
protectedvirtual

Definition at line 251 of file KVGraph.cpp.

◆ SetCropMode()

void KVGraph::SetCropMode ( Int_t  crop = kCropOnGraph)
inline

Definition at line 62 of file KVGraph.h.

◆ SetDisplayDivX()

void KVGraph::SetDisplayDivX ( Int_t  ndiv,
Double_t div = 0 
)
inline

Definition at line 51 of file KVGraph.h.

◆ SetDisplayDivY()

void KVGraph::SetDisplayDivY ( Int_t  ndiv,
Double_t div = 0 
)
inline

Definition at line 56 of file KVGraph.h.

◆ SetUseX()

void KVGraph::SetUseX ( Bool_t  usex = kTRUE)
inline

Definition at line 66 of file KVGraph.h.

◆ SetUseY()

void KVGraph::SetUseY ( Bool_t  usey = kTRUE)
inline

Definition at line 70 of file KVGraph.h.

Member Data Documentation

◆ fCropMode

Int_t KVGraph::fCropMode
protected

Definition at line 22 of file KVGraph.h.

◆ fDisplayDivX

Double_t* KVGraph::fDisplayDivX
protected

Definition at line 17 of file KVGraph.h.

◆ fDisplayDivY

Double_t* KVGraph::fDisplayDivY
protected

Definition at line 18 of file KVGraph.h.

◆ fNDivX

Int_t KVGraph::fNDivX
protected

Definition at line 19 of file KVGraph.h.

◆ fNDivY

Int_t KVGraph::fNDivY
protected

Definition at line 19 of file KVGraph.h.

◆ fUseX

Bool_t KVGraph::fUseX
protected

Definition at line 20 of file KVGraph.h.

◆ fUseY

Bool_t KVGraph::fUseY
protected

Definition at line 20 of file KVGraph.h.


The documentation for this class was generated from the following files: