A wrapper for the TH1D 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) |
HTH1D (TFile *outputFile, const TString &name, const TString &title, const int xBins, const double &xMin, const double &xMax) | |
TH1D * | operator-> () |
virtual void | SetXTitle (const TString &title) |
virtual void | SetYTitle (const TString &title) |
virtual void | Write () |
~HTH1D () | |
Protected Attributes | |
TH1D * | tH1D_ |
A wrapper for the TH1D histogram to allow it to be put inside the same map as all the other classes in this file.
Definition at line 156 of file Histograms.h.
HTH1D::HTH1D | ( | TFile * | outputFile, |
const TString & | name, | ||
const TString & | title, | ||
const int | xBins, | ||
const double & | xMin, | ||
const double & | xMax | ||
) | [inline] |
Definition at line 159 of file Histograms.h.
: Histograms(outputFile, name), tH1D_( new TH1D(name, title, xBins, xMin, xMax) ) {}
HTH1D::~HTH1D | ( | ) | [inline] |
virtual void HTH1D::Clear | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 172 of file Histograms.h.
References tH1D_.
{ tH1D_->Clear(); }
virtual void HTH1D::Fill | ( | const double & | x, |
const double & | y | ||
) | [inline, virtual] |
TH1D* HTH1D::operator-> | ( | ) | [inline] |
virtual void HTH1D::SetXTitle | ( | const TString & | title | ) | [inline, virtual] |
Definition at line 175 of file Histograms.h.
References tH1D_.
virtual void HTH1D::SetYTitle | ( | const TString & | title | ) | [inline, virtual] |
Definition at line 178 of file Histograms.h.
References tH1D_.
virtual void HTH1D::Write | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 168 of file Histograms.h.
References Histograms::histoDir_, and tH1D_.
TH1D* HTH1D::tH1D_ [protected] |
Definition at line 183 of file Histograms.h.
Referenced by Clear(), Fill(), operator->(), SetXTitle(), SetYTitle(), Write(), and ~HTH1D().