Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::PlotHelpers Namespace Reference

Classes

class  Binning
 Nested binning struct for booking plots. More...
 

Functions

TH1F * bookHisto (const char *histName, const char *histTitle, const Binning &varBinning)
 book a 1D histogram
 
TH2F * bookHisto (const char *histName, const char *histTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a 2D histogram
 
void fillHisto (TH1F *hist, float value, float weight=1.0)
 fill a 1D histogram
 
void fillHisto (TH2F *hist, float xValue, float yValue, float weight=1.0)
 fill a 2D histogram
 
void anaHisto (TH1D *inputHist, int j, TH1F *meanHist, TH1F *widthHist)
 extract details, i.e. mean and width of a 1D histogram and fill them into histograms
 
TEfficiency * bookEff (const char *effName, const char *effTitle, const Binning &varBinning)
 book a 1D efficiency plot
 
TEfficiency * bookEff (const char *effName, const char *effTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a 2D efficiency plot
 
void fillEff (TEfficiency *efficiency, float value, bool status)
 fill a 1D efficiency plot
 
void fillEff (TEfficiency *efficiency, float xValue, float yValue, bool status)
 fill a 2D efficiency plot
 
TProfile * bookProf (const char *profName, const char *profTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a TProfile plot
 
void fillProf (TProfile *profile, float xValue, float yValue, float weight=1.0)
 fill a TProfile plot
 

Function Documentation

void ActsExamples::PlotHelpers::anaHisto ( TH1D *  inputHist,
int  j,
TH1F *  meanHist,
TH1F *  widthHist 
)

extract details, i.e. mean and width of a 1D histogram and fill them into histograms

Parameters
inputHisthistogram to investigate
jwhich bin number of meanHist and widthHist to fill
meanHisthistogram to fill the mean value of inputHist
widthHisthistogram to fill the width value of inputHist

Definition at line 55 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 55 of file Helpers.cpp

References assert, and physmon_track_finding_ttbar::r.

Referenced by ActsExamples::ResPlotTool::refinement().

+ Here is the caller graph for this function:

TEfficiency * ActsExamples::PlotHelpers::bookEff ( const char *  effName,
const char *  effTitle,
const Binning &  varBinning 
)

book a 1D efficiency plot

Parameters
effNamethe name of plot
effTitlethe title of plot
varBinningthe binning info of variable
Returns
TEfficiency pointer

Definition at line 71 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 71 of file Helpers.cpp

References ActsExamples::PlotHelpers::Binning::data(), and ActsExamples::PlotHelpers::Binning::nBins().

Referenced by ActsExamples::EffPlotTool::book(), ActsExamples::DuplicationPlotTool::book(), and ActsExamples::FakeRatePlotTool::book().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TEfficiency * ActsExamples::PlotHelpers::bookEff ( const char *  effName,
const char *  effTitle,
const Binning &  varXBinning,
const Binning &  varYBinning 
)

book a 2D efficiency plot

Parameters
effNamethe name of plot
effTitlethe title of plot
varXBinningthe binning info of variable at x axis
varYBinningthe binning info of variable at y axis
Returns
TEfficiency pointer

Definition at line 78 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 78 of file Helpers.cpp

References ActsExamples::PlotHelpers::Binning::data(), and ActsExamples::PlotHelpers::Binning::nBins().

+ Here is the call graph for this function:

TH1F * ActsExamples::PlotHelpers::bookHisto ( const char *  histName,
const char *  histTitle,
const Binning &  varBinning 
)

book a 1D histogram

Parameters
histNamethe name of histogram
histTitlethe title of histogram
varBinningthe binning info of variable
Returns
histogram pointer

Definition at line 24 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 24 of file Helpers.cpp

References ActsExamples::PlotHelpers::Binning::data(), add_histos::hist, ActsExamples::PlotHelpers::Binning::nBins(), and ActsExamples::PlotHelpers::Binning::title().

Referenced by ActsExamples::FakeRatePlotTool::book(), and ActsExamples::ResPlotTool::book().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TH2F * ActsExamples::PlotHelpers::bookHisto ( const char *  histName,
const char *  histTitle,
const Binning &  varXBinning,
const Binning &  varYBinning 
)

book a 2D histogram

Parameters
histNamethe name of histogram
histTitlethe title of histogram
varXBinningthe binning info of variable at x axis
varYBinningthe binning info of variable at y axis
Returns
histogram pointer

Definition at line 34 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 34 of file Helpers.cpp

References ActsExamples::PlotHelpers::Binning::data(), add_histos::hist, ActsExamples::PlotHelpers::Binning::nBins(), and ActsExamples::PlotHelpers::Binning::title().

+ Here is the call graph for this function:

TProfile * ActsExamples::PlotHelpers::bookProf ( const char *  profName,
const char *  profTitle,
const Binning &  varXBinning,
const Binning &  varYBinning 
)

book a TProfile plot

Parameters
profNamethe name of plot
profTitlethe title of plot
varXBinningthe binning info of variable at x axis
varYBinningthe binning info of variable at y axis
Returns
TProfile pointer

Definition at line 96 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 96 of file Helpers.cpp

References ActsExamples::PlotHelpers::Binning::data(), ActsExamples::PlotHelpers::Binning::high(), ActsExamples::PlotHelpers::Binning::low(), ActsExamples::PlotHelpers::Binning::nBins(), and ActsExamples::PlotHelpers::Binning::title().

Referenced by ActsExamples::TrackSummaryPlotTool::book(), and ActsExamples::DuplicationPlotTool::book().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ActsExamples::PlotHelpers::fillEff ( TEfficiency *  efficiency,
float  value,
bool  status 
)

fill a 1D efficiency plot

Parameters
efficiencyplot to fill
valuevalue to fill
statusbool to denote passed or not

Definition at line 86 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 86 of file Helpers.cpp

References assert.

Referenced by ActsExamples::EffPlotTool::fill(), ActsExamples::DuplicationPlotTool::fill(), and ActsExamples::FakeRatePlotTool::fill().

+ Here is the caller graph for this function:

void ActsExamples::PlotHelpers::fillEff ( TEfficiency *  efficiency,
float  xValue,
float  yValue,
bool  status 
)

fill a 2D efficiency plot

Parameters
efficiencyplot to fill
xValuex value to fill
yValuey value to fill
statusbool to denote passed or not

Definition at line 91 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 91 of file Helpers.cpp

References assert.

void ActsExamples::PlotHelpers::fillHisto ( TH1F *  hist,
float  value,
float  weight = 1.0 
)

fill a 1D histogram

Parameters
histhistogram to fill
valuevalue to fill
weightweight to fill

Definition at line 45 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 45 of file Helpers.cpp

References assert.

Referenced by ActsExamples::FakeRatePlotTool::fill(), and ActsExamples::ResPlotTool::fill().

+ Here is the caller graph for this function:

void ActsExamples::PlotHelpers::fillHisto ( TH2F *  hist,
float  xValue,
float  yValue,
float  weight = 1.0 
)

fill a 2D histogram

Parameters
histhistogram to fill
xValuex value to fill
yValuey value to fill
weightweight to fill

Definition at line 50 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 50 of file Helpers.cpp

References assert.

void ActsExamples::PlotHelpers::fillProf ( TProfile *  profile,
float  xValue,
float  yValue,
float  weight = 1.0 
)

fill a TProfile plot

Parameters
profileplot to fill
xValuexvalue to fill
yValueyvalue to fill
weightweight to fill

Definition at line 106 of file Helpers.cpp.

View newest version in sPHENIX GitHub at line 106 of file Helpers.cpp

References assert.

Referenced by ActsExamples::TrackSummaryPlotTool::fill(), and ActsExamples::DuplicationPlotTool::fill().

+ Here is the caller graph for this function: