Project
Loading...
Searching...
No Matches
o2::its::study::helpers Namespace Reference

Functions

std::vector< double > makeLogBinning (const int nbins, const double min, const double max)
 get a vector containing binning info for constant sized bins on a log axis
 
void setStyleHistogram1D (TH1F &histo, int color)
 Set nice style for single 1D histograms.
 
void setStyleHistogram1D (TH1F &histo, int color, TString title, TString titleYaxis, TString titleXaxis)
 
void setStyleHistogram1DMeanValues (TH1F &histo, int color)
 
void setStyleHistogram2D (TH2F &histo)
 
TCanvas * prepareSimpleCanvas2Histograms (TH1F &h1, int color1, TH1F &h2, int color2)
 prepare canvas with two TH1F plots
 
TCanvas * prepareSimpleCanvas2Histograms (TH1F &h1, int color1, TString nameHisto1, TH1F &h2, int color2, TString nameHisto2, bool logScale=true)
 
TCanvas * prepareSimpleCanvas2Histograms (TH1F &h1, int color1, TString nameHisto1, TH1F &h2, int color2, TString nameHisto2, TString intRate)
 
TCanvas * prepareSimpleCanvas2DcaMeanValues (TH1F &h1, int color1, TString nameHisto1, TH1F &h2, int color2, TString nameHisto2)
 
TCanvas * plot2DwithMeanAndSigma (TH2F &h2D, TH1F &hMean, TH1F &hSigma, int color)
 plot canvas with TH2D + TH1D(Mean and Sigma) from slice
 
void paveTextITS (TPaveText *pave, TString intRate)
 prepare TPaveText with labels
 
void ConvertTH1ToTGraphAsymmError (TH1F &hMean, TH1F &hSigma, TGraphAsymmErrors *&gr)
 Convert TH1F in TGraphAsymmetricError.
 

Function Documentation

◆ ConvertTH1ToTGraphAsymmError()

void o2::its::study::helpers::ConvertTH1ToTGraphAsymmError ( TH1F &  hMean,
TH1F &  hSigma,
TGraphAsymmErrors *&  gr 
)

Convert TH1F in TGraphAsymmetricError.

Definition at line 207 of file Helpers.cxx.

◆ makeLogBinning()

std::vector< double > o2::its::study::helpers::makeLogBinning ( const int  nbins,
const double  min,
const double  max 
)

get a vector containing binning info for constant sized bins on a log axis

Some utility functions for postprocessing ITS

Definition at line 21 of file Helpers.cxx.

◆ paveTextITS()

void o2::its::study::helpers::paveTextITS ( TPaveText *  pave,
TString  intRate 
)

prepare TPaveText with labels

Definition at line 194 of file Helpers.cxx.

◆ plot2DwithMeanAndSigma()

TCanvas * o2::its::study::helpers::plot2DwithMeanAndSigma ( TH2F &  h2D,
TH1F &  hMean,
TH1F &  hSigma,
int  color 
)

plot canvas with TH2D + TH1D(Mean and Sigma) from slice

Definition at line 178 of file Helpers.cxx.

◆ prepareSimpleCanvas2DcaMeanValues()

TCanvas * o2::its::study::helpers::prepareSimpleCanvas2DcaMeanValues ( TH1F &  h1,
int  color1,
TString  nameHisto1,
TH1F &  h2,
int  color2,
TString  nameHisto2 
)

Definition at line 160 of file Helpers.cxx.

◆ prepareSimpleCanvas2Histograms() [1/3]

TCanvas * o2::its::study::helpers::prepareSimpleCanvas2Histograms ( TH1F &  h1,
int  color1,
TH1F &  h2,
int  color2 
)

prepare canvas with two TH1F plots

Definition at line 89 of file Helpers.cxx.

◆ prepareSimpleCanvas2Histograms() [2/3]

TCanvas * o2::its::study::helpers::prepareSimpleCanvas2Histograms ( TH1F &  h1,
int  color1,
TString  nameHisto1,
TH1F &  h2,
int  color2,
TString  nameHisto2,
bool  logScale = true 
)

Definition at line 104 of file Helpers.cxx.

◆ prepareSimpleCanvas2Histograms() [3/3]

TCanvas * o2::its::study::helpers::prepareSimpleCanvas2Histograms ( TH1F &  h1,
int  color1,
TString  nameHisto1,
TH1F &  h2,
int  color2,
TString  nameHisto2,
TString  intRate 
)

Definition at line 137 of file Helpers.cxx.

◆ setStyleHistogram1D() [1/2]

void o2::its::study::helpers::setStyleHistogram1D ( TH1F &  histo,
int  color 
)

Set nice style for single 1D histograms.

Definition at line 42 of file Helpers.cxx.

◆ setStyleHistogram1D() [2/2]

void o2::its::study::helpers::setStyleHistogram1D ( TH1F &  histo,
int  color,
TString  title,
TString  titleYaxis,
TString  titleXaxis 
)

Definition at line 57 of file Helpers.cxx.

◆ setStyleHistogram1DMeanValues()

void o2::its::study::helpers::setStyleHistogram1DMeanValues ( TH1F &  histo,
int  color 
)

Definition at line 68 of file Helpers.cxx.

◆ setStyleHistogram2D()

void o2::its::study::helpers::setStyleHistogram2D ( TH2F &  histo)

Definition at line 79 of file Helpers.cxx.