Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::HistoStyle Class Reference

#include <HistoStyle.h>

Inheritance diagram for Hal::HistoStyle:
Hal::Style

Public Member Functions

void SetAxisValues (Double_t val, Char_t x='x')
 
void SetMin (Double_t val)
 
void SetMax (Double_t val)
 
void SetMinMax (Double_t minVal, Double_t maxVal)
 
void SetMarkerProperties (Color_t c, Int_t marker, Size_t size)
 
void SetLineProperties (Color_t c, Style_t style, Double_t widgth)
 
void SetColor (Color_t c)
 
void SetRangeUser (Double_t min, Double_t max, Char_t ax)
 
void SetTitles (TString histo, TString xAxis="", TString yAxis="", TString zAxis="")
 
void SetAxis (Double_t titleSize, Double_t titleOffset, Double_t labelSize, Double_t labelOffset, Char_t x='x')
 
void CenterTitle (Bool_t center=kTRUE, Char_t='x')
 
void Apply (TObject &h, Int_t no=0) const
 
void SetAntiColor (Bool_t safe=kFALSE)
 
void SetTitle (TString title)
 
AxisStyleGetAxisStyle (Char_t x)
 
FillStyleGetFillStyle ()
 
LineStyleGetLineStyle ()
 
MarkerStyleGetMarkerStyle ()
 
TString GetTitle () const
 
void ExportToXML (XMLNode *node) const
 
void ImportFromXML (XMLNode *node)
 
 ClassDef (HistoStyle, 1)
 
- Public Member Functions inherited from Hal::Style
Bool_t Find (Int_t bit) const
 
Styleoperator= (const Style &style)=default
 
void ExportToXML (XMLNode *node) const
 
void ImportFromXML (XMLNode *node)
 
 ClassDef (Style, 1)
 

Static Public Member Functions

static HistoStyle GetStyle (TString style)
 

Static Public Attributes

static const unsigned short int kTitle = 0
 
static const unsigned short int kMin = 1
 
static const unsigned short int kMax = 2
 

Additional Inherited Members

- Protected Member Functions inherited from Hal::Style
void SetF (Int_t bit, Float_t val)
 
void SetI (Int_t bit, Int_t val)
 
Float_t GetF (Int_t bit) const
 
Int_t GetI (Int_t bit) const
 

Detailed Description

contains information about histogram/graph styles

Definition at line 25 of file HistoStyle.h.

Constructor & Destructor Documentation

◆ HistoStyle()

Hal::HistoStyle::HistoStyle ( )
inline

Definition at line 41 of file HistoStyle.h.

◆ ~HistoStyle()

virtual Hal::HistoStyle::~HistoStyle ( )
inlinevirtual

Definition at line 141 of file HistoStyle.h.

Member Function Documentation

◆ Apply()

void Hal::HistoStyle::Apply ( TObject & h,
Int_t no = 0 ) const

Definition at line 135 of file HistoStyle.cxx.

◆ CenterTitle()

void Hal::HistoStyle::CenterTitle ( Bool_t center = kTRUE,
Char_t x = 'x' )

center axis title

Parameters
center

Definition at line 129 of file HistoStyle.cxx.

◆ ExportToXML()

void Hal::HistoStyle::ExportToXML ( XMLNode * node) const

Definition at line 39 of file HistoStyle.cxx.

◆ GetAxisStyle()

AxisStyle & Hal::HistoStyle::GetAxisStyle ( Char_t x)

Definition at line 33 of file HistoStyle.cxx.

◆ GetFillStyle()

FillStyle & Hal::HistoStyle::GetFillStyle ( )
inline

Definition at line 135 of file HistoStyle.h.

◆ GetLineStyle()

LineStyle & Hal::HistoStyle::GetLineStyle ( )
inline

Definition at line 136 of file HistoStyle.h.

◆ GetMarkerStyle()

MarkerStyle & Hal::HistoStyle::GetMarkerStyle ( )
inline

Definition at line 137 of file HistoStyle.h.

◆ GetStyle()

HistoStyle Hal::HistoStyle::GetStyle ( TString style)
static

return predefined style for 1d histogram

Parameters
styleoptions: 05 - set margins sizes to 0.05 (default optimal) color - set line color/marker color to red circle - set marker to full circle center center axes
Returns

Definition at line 63 of file HistoStyle.cxx.

◆ GetTitle()

TString Hal::HistoStyle::GetTitle ( ) const
inline

Definition at line 138 of file HistoStyle.h.

◆ ImportFromXML()

void Hal::HistoStyle::ImportFromXML ( XMLNode * node)

Definition at line 182 of file HistoStyle.cxx.

◆ SetAntiColor()

void Hal::HistoStyle::SetAntiColor ( Bool_t safe = kFALSE)

sets anti-color if color is set

Parameters
safe- check if color is not to bright (currenty not used)

Definition at line 157 of file HistoStyle.cxx.

◆ SetAxis()

void Hal::HistoStyle::SetAxis ( Double_t titleSize,
Double_t titleOffset,
Double_t labelSize,
Double_t labelOffset,
Char_t x = 'x' )

set axis labels and title attributes, negative values are ignored

Parameters
titleSize
titleOffset
labelSize
labelOffset
xaxis type x/y or z

Definition at line 117 of file HistoStyle.cxx.

◆ SetAxisValues()

void Hal::HistoStyle::SetAxisValues ( Double_t val,
Char_t x = 'x' )
inline

set title size, title offset, label size and label offset simultaneously

Parameters
val
x

Definition at line 57 of file HistoStyle.h.

◆ SetColor()

void Hal::HistoStyle::SetColor ( Color_t c)

set marker and line color

Parameters
c

Definition at line 99 of file HistoStyle.cxx.

◆ SetLineProperties()

void Hal::HistoStyle::SetLineProperties ( Color_t c,
Style_t style,
Double_t widgth )

set tile properties, negative values are ignored

Parameters
c
style
widgth

Definition at line 93 of file HistoStyle.cxx.

◆ SetMarkerProperties()

void Hal::HistoStyle::SetMarkerProperties ( Color_t c,
Int_t marker,
Size_t size )

set marker properties

Parameters
c
marker
size

Definition at line 87 of file HistoStyle.cxx.

◆ SetMax()

void Hal::HistoStyle::SetMax ( Double_t val)

set maximal value

Definition at line 80 of file HistoStyle.cxx.

◆ SetMin()

void Hal::HistoStyle::SetMin ( Double_t val)

set minimal value

Parameters
val

Definition at line 78 of file HistoStyle.cxx.

◆ SetMinMax()

void Hal::HistoStyle::SetMinMax ( Double_t minVal,
Double_t maxVal )

set min and max

Parameters
minVal
maxVal

Definition at line 82 of file HistoStyle.cxx.

◆ SetRangeUser()

void Hal::HistoStyle::SetRangeUser ( Double_t min,
Double_t max,
Char_t ax )

sets range on given axis

Parameters
min
max
axaxis label x,y or z

Definition at line 104 of file HistoStyle.cxx.

◆ SetTitle()

void Hal::HistoStyle::SetTitle ( TString title)

Definition at line 28 of file HistoStyle.cxx.

◆ SetTitles()

void Hal::HistoStyle::SetTitles ( TString histo,
TString xAxis = "",
TString yAxis = "",
TString zAxis = "" )

set titles of histogram and axes - NOTE: if lenght of string is zero - this attribute will not be set

Parameters
histo
xAxis
yAxis
zAxis

Definition at line 110 of file HistoStyle.cxx.

Member Data Documentation

◆ kMax

const unsigned short int Hal::HistoStyle::kMax = 2
static

Definition at line 40 of file HistoStyle.h.

◆ kMin

const unsigned short int Hal::HistoStyle::kMin = 1
static

Definition at line 39 of file HistoStyle.h.

◆ kTitle

const unsigned short int Hal::HistoStyle::kTitle = 0
static

Definition at line 38 of file HistoStyle.h.


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