A wrapper for the TH2D histogram to allow it to be put inside the same map as all the other classes in this file. More...
#include <Histograms.h>
Public Member Functions | |
virtual void | Clear () |
virtual void | Fill (const double &x, const double &y) |
TProfile * | getProfile () |
HTH2D (TFile *outputFile, const TString &name, const TString &title, const TString &dirName, const int xBins, const double &xMin, const double &xMax, const int yBins, const double &yMin, const double &yMax) | |
TH2D * | operator-> () |
virtual void | SetXTitle (const TString &title) |
virtual void | SetYTitle (const TString &title) |
virtual void | Write () |
~HTH2D () | |
Protected Attributes | |
TH2D * | tH2d_ |
TProfile * | tProfile_ |
A wrapper for the TH2D histogram to allow it to be put inside the same map as all the other classes in this file.
Definition at line 132 of file Histograms.h.
HTH2D::HTH2D | ( | TFile * | outputFile, |
const TString & | name, | ||
const TString & | title, | ||
const TString & | dirName, | ||
const int | xBins, | ||
const double & | xMin, | ||
const double & | xMax, | ||
const int | yBins, | ||
const double & | yMin, | ||
const double & | yMax | ||
) | [inline] |
Definition at line 135 of file Histograms.h.
: Histograms(outputFile, dirName), tH2d_( new TH2D(name, title, xBins, xMin, xMax, yBins, yMin, yMax) ), tProfile_( new TProfile(name+"Prof", title+" profile", xBins, xMin, xMax, yMin, yMax) ) {}
HTH2D::~HTH2D | ( | ) | [inline] |
virtual void HTH2D::Clear | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 153 of file Histograms.h.
virtual void HTH2D::Fill | ( | const double & | x, |
const double & | y | ||
) | [inline, virtual] |
TProfile* HTH2D::getProfile | ( | ) | [inline] |
TH2D* HTH2D::operator-> | ( | ) | [inline] |
virtual void HTH2D::SetXTitle | ( | const TString & | title | ) | [inline, virtual] |
virtual void HTH2D::SetYTitle | ( | const TString & | title | ) | [inline, virtual] |
virtual void HTH2D::Write | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 148 of file Histograms.h.
References Histograms::histoDir_, tH2d_, and tProfile_.
TH2D* HTH2D::tH2d_ [protected] |
Definition at line 168 of file Histograms.h.
Referenced by Clear(), Fill(), operator->(), SetXTitle(), SetYTitle(), Write(), and ~HTH2D().
TProfile* HTH2D::tProfile_ [protected] |
Definition at line 169 of file Histograms.h.
Referenced by Clear(), Fill(), getProfile(), SetXTitle(), SetYTitle(), Write(), and ~HTH2D().