Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::MultiGraph Class Reference
Inheritance diagram for Hal::MultiGraph:

Public Member Functions

 MultiGraph (Int_t graphs, Option_t *opt="")
 
void SetXRange (Double_t min, Double_t max)
 
void SetYRange (Double_t min, Double_t max)
 
void SetMarkerStyle (Style_t marker, Int_t no=-1)
 
void SetMarkerSize (Size_t size, Int_t no=-1)
 
void SetMarkerColor (Color_t color, Int_t no=-1)
 
void SetLineWidth (Width_t width, Int_t no=-1)
 
void SetLineAttributes (Style_t style, Width_t width, Color_t color, Int_t no=-1)
 
void SetMarkerAttributes (Style_t style, Size_t size, Color_t color, Int_t no=-1)
 
void SetLineColor (Color_t color, Int_t no=-1)
 
void SetLineStyle (Style_t style, Int_t no=-1)
 
void MakeGraph (Option_t *opt="P")
 
void MakeGraphs (Int_t no, Option_t *opt="P")
 
void SetPoint (Int_t graph, Int_t point, Double_t x, Double_t y)
 
void SetPoint (Int_t graph, Int_t point, Double_t x, Double_t ex, Double_t y, Double_t ey)
 
TAxis * GetXaxis ()
 
TAxis * GetYaxis ()
 
TGraphErrors * GetGraph (Int_t no) const
 
TMultiGraph * GetMutliGraph () const
 
void Draw (Option_t *opt="")
 
Int_t GetNGraphs () const
 
void AddHistogram (const TH1 &h, Int_t no=-1)
 

Detailed Description

Definition at line 23 of file MultiGraph.h.

Constructor & Destructor Documentation

◆ MultiGraph() [1/2]

Hal::MultiGraph::MultiGraph ( )

Definition at line 28 of file MultiGraph.cxx.

◆ MultiGraph() [2/2]

Hal::MultiGraph::MultiGraph ( Int_t graphs,
Option_t * opt = "" )

make multigraph with many graphs

Parameters
graphs
optionof adding graph

Definition at line 32 of file MultiGraph.cxx.

◆ ~MultiGraph()

Hal::MultiGraph::~MultiGraph ( )
virtual

Definition at line 165 of file MultiGraph.cxx.

Member Function Documentation

◆ AddHistogram()

void Hal::MultiGraph::AddHistogram ( const TH1 & h,
Int_t no = -1 )

add histogram to this multigraph

Parameters
h
no

Definition at line 189 of file MultiGraph.cxx.

◆ Draw()

void Hal::MultiGraph::Draw ( Option_t * opt = "")

draw this graph

Parameters
optdraw option

Definition at line 65 of file MultiGraph.cxx.

◆ GetGraph()

TGraphErrors * Hal::MultiGraph::GetGraph ( Int_t no) const

return graph

Parameters
nograph no
Returns

Definition at line 63 of file MultiGraph.cxx.

◆ GetMutliGraph()

TMultiGraph * Hal::MultiGraph::GetMutliGraph ( ) const

return pointer to drawn multi graph, if this object has not been drawn

  • return NULL

Definition at line 163 of file MultiGraph.cxx.

◆ GetNGraphs()

Int_t Hal::MultiGraph::GetNGraphs ( ) const
inline
Returns
number of histograms

Definition at line 168 of file MultiGraph.h.

◆ GetXaxis()

TAxis * Hal::MultiGraph::GetXaxis ( )

return pointer to temporary X-axs. Thanks to this its possible to set title's/label's font size/font color/offset. However for setting range user must call SetXRange.

Returns
pointer to axis

Definition at line 177 of file MultiGraph.cxx.

◆ GetYaxis()

TAxis * Hal::MultiGraph::GetYaxis ( )

return pointer to temporary X-axs. Thanks to this its possible to set title's/label's font size/font color/offset. However for setting range user must call SetXRange.

Returns
pointer to axis

Definition at line 183 of file MultiGraph.cxx.

◆ MakeGraph()

void Hal::MultiGraph::MakeGraph ( Option_t * opt = "P")

makes graph with given draw options

Parameters
optgdraw option

Definition at line 34 of file MultiGraph.cxx.

◆ MakeGraphs()

void Hal::MultiGraph::MakeGraphs ( Int_t no,
Option_t * opt = "P" )

makes fewgraph with given draw options

Parameters
nonumber of graphs to make
optgdraw option

Definition at line 157 of file MultiGraph.cxx.

◆ SetLineAttributes()

void Hal::MultiGraph::SetLineAttributes ( Style_t style,
Width_t width,
Color_t color,
Int_t no = -1 )

set line attributes

Parameters
styleline style
widthline width
colorline color
nograph no if -1 aply to all graphs

Definition at line 145 of file MultiGraph.cxx.

◆ SetLineColor()

void Hal::MultiGraph::SetLineColor ( Color_t color,
Int_t no = -1 )

set marker style

Parameters
colormarker color
nograph no if -1 then aply to all graphs

Definition at line 125 of file MultiGraph.cxx.

◆ SetLineStyle()

void Hal::MultiGraph::SetLineStyle ( Style_t style,
Int_t no = -1 )

set line style

Parameters
styleline style
nograph no if -1 then aply to all graphs

Definition at line 136 of file MultiGraph.cxx.

◆ SetLineWidth()

void Hal::MultiGraph::SetLineWidth ( Width_t width,
Int_t no = -1 )

set line width

Parameters
widthline width
nograph no if -1 then aply to all graphs

Definition at line 114 of file MultiGraph.cxx.

◆ SetMarkerAttributes()

void Hal::MultiGraph::SetMarkerAttributes ( Style_t style,
Size_t size,
Color_t color,
Int_t no = -1 )

set marker attributes

Parameters
stylemarker style
sizemarker size
colormarker color
nograph no, if -1 then aplly to all graphs

Definition at line 151 of file MultiGraph.cxx.

◆ SetMarkerColor()

void Hal::MultiGraph::SetMarkerColor ( Color_t color,
Int_t no = -1 )

set marker color

Parameters
colormarker color
nograph no if -1 then aply to all graphs

Definition at line 103 of file MultiGraph.cxx.

◆ SetMarkerSize()

void Hal::MultiGraph::SetMarkerSize ( Size_t size,
Int_t no = -1 )

set marker size

Parameters
sizemarker size
nograph no if -1 then aply to all graphs

Definition at line 92 of file MultiGraph.cxx.

◆ SetMarkerStyle()

void Hal::MultiGraph::SetMarkerStyle ( Style_t marker,
Int_t no = -1 )

set marker style

Parameters
markermarker style
nograph no if -1 then aply to all graphs

Definition at line 81 of file MultiGraph.cxx.

◆ SetPoint() [1/2]

void Hal::MultiGraph::SetPoint ( Int_t graph,
Int_t point,
Double_t x,
Double_t ex,
Double_t y,
Double_t ey )

set point for given graph

Parameters
graphgraph no
pointpoint no
xx-value
exx-error
yy-value
eyy-error

Definition at line 58 of file MultiGraph.cxx.

◆ SetPoint() [2/2]

void Hal::MultiGraph::SetPoint ( Int_t graph,
Int_t point,
Double_t x,
Double_t y )

set point for given graph

Parameters
graphgraph no
pointpoint no
xx-value
yy-value

Definition at line 56 of file MultiGraph.cxx.

◆ SetXRange()

void Hal::MultiGraph::SetXRange ( Double_t min,
Double_t max )

set x axis range

Parameters
min
max

Definition at line 46 of file MultiGraph.cxx.

◆ SetYRange()

void Hal::MultiGraph::SetYRange ( Double_t min,
Double_t max )

set y axis range

Parameters
min
max

Definition at line 51 of file MultiGraph.cxx.


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