ra4_macros  bede988c286599a3a84b77a4d788ac0a971e89f9
Public Member Functions | Public Attributes | List of all members
styles Class Reference

#include <styles.hpp>

Public Member Functions

 styles (TString group="Standard")
 
void readGroupStyle ()
 
void testGlobalStyle (bool fixY=true, float scale=1000.)
 
void setGlobalStyle ()
 
void setDefaultStyle ()
 
void setHistoStyle (TH1 *h)
 
void printValues ()
 
void moveYAxisLabel (TH1 *h, float maxi, bool isLog=false)
 
void styleHist (TH1 *h, Int_t color=1, Int_t fillstyle=0, Int_t symbol=8, Double_t size=0.7, Int_t width=1)
 
void setMarkers (TH1 *h, float Msize=0.6, int Mstyle=20)
 
void setTitles (TH1 *h, TString xTitle="", TString yTitle="", TString Left="", TString Right="")
 
void setTitleSizes (TH1 *h, float size, float lsize, int font=62, float xoff=1., float yoff=1., int divisions=405)
 
void parseStyleFile (TString group, TString fnames[], float *fvalues[], int nFloat, TString inames[], int *ivalues[], int nInt)
 
void setGroup (TString group)
 

Public Attributes

TString confFile
 
TString Group
 
int nFont
 
int nPads
 
int nDivisions
 
int CanvasW
 
int CanvasH
 
float LegendSize
 
float TitleSize
 
float LabelSize
 
float xTitleOffset
 
float yTitleOffset
 
float zTitleOffset
 
float PadRightMargin
 
float PadBottomMargin
 
float PadLeftMargin
 
float PadTopMargin
 

Detailed Description

Definition at line 12 of file styles.hpp.

Constructor & Destructor Documentation

styles::styles ( TString  group = "Standard")

Definition at line 25 of file styles.cpp.

References confFile, Group, nDivisions, nFont, nPads, parseStyleFile(), and readGroupStyle().

Member Function Documentation

void styles::moveYAxisLabel ( TH1 *  h,
float  maxi,
bool  isLog = false 
)

Definition at line 96 of file styles.cpp.

References Group, PadLeftMargin, parseStyleFile(), and yTitleOffset.

Referenced by main(), plot_distributions(), plotKappa(), and testGlobalStyle().

void styles::parseStyleFile ( TString  group,
TString  fnames[],
float *  fvalues[],
int  nFloat,
TString  inames[],
int *  ivalues[],
int  nInt 
)

Definition at line 215 of file styles.cpp.

References confFile, and parse_card::file.

Referenced by moveYAxisLabel(), readGroupStyle(), and styles().

void styles::printValues ( )
void styles::readGroupStyle ( )
void styles::setDefaultStyle ( )
void styles::setGlobalStyle ( )

Definition at line 72 of file styles.cpp.

Referenced by setDefaultStyle(), and testGlobalStyle().

void styles::setGroup ( TString  group)

Definition at line 79 of file styles.cpp.

References Group, and readGroupStyle().

void styles::setHistoStyle ( TH1 *  h)

Definition at line 59 of file styles.cpp.

References LabelSize, nDivisions, nFont, TitleSize, xTitleOffset, yTitleOffset, and zTitleOffset.

void styles::setMarkers ( TH1 *  h,
float  Msize = 0.6,
int  Mstyle = 20 
)

Definition at line 167 of file styles.cpp.

void styles::setTitles ( TH1 *  h,
TString  xTitle = "",
TString  yTitle = "",
TString  Left = "",
TString  Right = "" 
)

Definition at line 173 of file styles.cpp.

References PadLeftMargin, PadRightMargin, and PadTopMargin.

Referenced by DrawROC(), main(), plot_distributions(), and testGlobalStyle().

void styles::setTitleSizes ( TH1 *  h,
float  size,
float  lsize,
int  font = 62,
float  xoff = 1.,
float  yoff = 1.,
int  divisions = 405 
)

Definition at line 201 of file styles.cpp.

void styles::styleHist ( TH1 *  h,
Int_t  color = 1,
Int_t  fillstyle = 0,
Int_t  symbol = 8,
Double_t  size = 0.7,
Int_t  width = 1 
)

Definition at line 188 of file styles.cpp.

void styles::testGlobalStyle ( bool  fixY = true,
float  scale = 1000. 
)

Member Data Documentation

int styles::CanvasH

Definition at line 34 of file styles.hpp.

Referenced by printValues(), readGroupStyle(), and setDefaultStyle().

int styles::CanvasW

Definition at line 34 of file styles.hpp.

Referenced by printValues(), readGroupStyle(), and setDefaultStyle().

TString styles::confFile

Definition at line 32 of file styles.hpp.

Referenced by parseStyleFile(), and styles().

TString styles::Group

Definition at line 32 of file styles.hpp.

Referenced by moveYAxisLabel(), readGroupStyle(), setGroup(), and styles().

float styles::LabelSize
float styles::LegendSize
int styles::nDivisions
int styles::nFont
int styles::nPads

Definition at line 33 of file styles.hpp.

Referenced by printValues(), styles(), and testGlobalStyle().

float styles::PadBottomMargin

Definition at line 36 of file styles.hpp.

Referenced by main(), plot_distributions(), printValues(), readGroupStyle(), and setDefaultStyle().

float styles::PadLeftMargin
float styles::PadRightMargin
float styles::PadTopMargin
float styles::TitleSize
float styles::xTitleOffset
float styles::yTitleOffset
float styles::zTitleOffset

Definition at line 35 of file styles.hpp.

Referenced by printValues(), readGroupStyle(), setDefaultStyle(), and setHistoStyle().


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