|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #ifndef TRKVALHISTUTILS_PLOTBASE_H
11 #define TRKVALHISTUTILS_PLOTBASE_H
22 #include "TProfile2D.h"
24 #include "TEfficiency.h"
31 typedef std::pair<TTree*, std::string>
TreeData;
56 TH1D*
Book1D(
const std::string &
name, TH1* refHist,
const std::string &
labels,
bool prependDir =
true);
59 TH2F*
Book2D(
const std::string &
name,
const std::string &
labels,
int nBinsX,
float startX,
float endX,
int nBinsY,
float startY,
float endY,
bool prependDir =
true);
61 TH2F*
Book2D(
const std::string &
name, TH2* refHist,
const std::string &
labels,
bool prependDir =
true);
63 TH2F*
Book2D(
const std::string &
name,
const std::string &
labels,
int nBinsX, Double_t*
binsX,
int nBinsY, Double_t startY, Double_t endY,
bool prependDir =
true);
66 TH3F*
Book3D(
const std::string &
name,
const std::string &
labels,
int nBinsX,
float startX,
float endX,
int nBinsY,
float startY,
float endY,
int nBinsZ,
float startZ,
float endZ,
bool prependDir =
true);
68 TH3F*
Book3D(
const std::string &
name, TH3* refHist,
const std::string &
labels,
bool prependDir =
true);
71 TProfile*
BookTProfile(
const std::string &
name,
const std::string &
labels,
int nBinsX,
float startX,
float endX,
float startY=-1,
float endY=-1,
bool prependDir =
true,
bool useRMS=
false);
77 TProfile2D *
BookTProfile2D(
const std::string &
name,
const std::string &
labels,
const int nBinsX,
const double xlo,
const double xhi,
const int nBinsY,
const double ylo,
const double yhi,
bool prependDir=
true,
bool useRMS=
false);
79 TProfile2D *
BookTProfile2D(
const std::string &
name,
const std::string &
labels,
const int nBinsX,
double*
binsX,
const int nBinsY,
double*
binsY,
bool prependDir=
true,
bool useRMS=
false);
81 TEfficiency *
BookTEfficiency(
const std::string &
name,
const std::string &
labels,
const int nBinsX,
const float xlo,
const float xhi,
const bool prependDir =
true);
83 TEfficiency *
BookTEfficiency(
const std::string &
name,
const std::string &
labels,
const int nBinsX,
const float xlo,
const float xhi,
const int nBinsy,
const float ylo,
const float yhi,
const bool prependDir =
true);
86 TTree*
BookTree(
const std::string &
name,
bool prependDir =
true);
static std::string constructPrefix(std::string dir, bool prependDir)
std::vector< HistData > m_vBookedHistograms
const std::string & getDirectory()
TTree * BookTree(const std::string &name, bool prependDir=true)
Book a TTree.
std::vector< TreeData > retrieveBookedTrees()
Retrieve all booked trees.
virtual void initializePlots()
std::vector< EfficiencyData > m_vBookedEfficiencies
TEfficiency * BookTEfficiency(const std::string &name, const std::string &labels, const int nBinsX, const float xlo, const float xhi, const bool prependDir=true)
Book a (1-D) TEfficiency histogram.
TH2F * Book2D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
std::vector< EfficiencyData > retrieveBookedEfficiencies()
Retrieve all booked efficiency objects.
TProfile2D * BookTProfile2D(const std::string &name, const std::string &labels, const int nBinsX, const double xlo, const double xhi, const int nBinsY, const double ylo, const double yhi, bool prependDir=true, bool useRMS=false)
Book a TProfile 2D histogram with variable binning in x-axis and limits in y-values.
PlotBase(PlotBase *parent, const std::string &sDir)
TProfile * BookTProfileRangeY(const std::string &name, const std::string &labels, int nBinsX, double *binsX, double startY, double endY, bool prependDir=true)
Book a TProfile histogram with variable binning in x-axis and limits in y-values.
void RegisterSubPlot(PlotBase *pPlotBase)
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
std::pair< TH1 *, std::string > HistData
std::vector< PlotBase * > m_vSubNodes
std::vector< HistData > retrieveBookedHistograms()
Retrieve all booked histograms.
def TProfile(*args, **kwargs)
TH3F * Book3D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, int nBinsZ, float startZ, float endZ, bool prependDir=true)
Book a TH3F histogram.
std::pair< TEfficiency *, std::string > EfficiencyData
std::pair< TTree *, std::string > TreeData
TProfile * BookTProfile(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, float startY=-1, float endY=-1, bool prependDir=true, bool useRMS=false)
Book a TProfile histogram.
virtual void finalizePlots()
std::vector< TreeData > m_vBookedTrees
void setDetailLevel(int iDetailLevel)