CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
HTProfile Class Reference

A wrapper for the TProfile histogram to allow it to be put inside the same map as all the other classes in this file. More...

#include <Histograms.h>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const double &x, const double &y) override
 
 HTProfile (TFile *outputFile, const TString &name, const TString &title, const int xBins, const double &xMin, const double &xMax, const double &yMin, const double &yMax)
 
TProfile * operator-> ()
 
virtual void SetXTitle (const TString &title)
 
virtual void SetYTitle (const TString &title)
 
void Write () override
 
 ~HTProfile () override
 

Protected Attributes

TProfile * tProfile_
 

Detailed Description

A wrapper for the TProfile histogram to allow it to be put inside the same map as all the other classes in this file.

Definition at line 203 of file Histograms.h.

Constructor & Destructor Documentation

HTProfile::HTProfile ( TFile *  outputFile,
const TString &  name,
const TString &  title,
const int  xBins,
const double &  xMin,
const double &  xMax,
const double &  yMin,
const double &  yMax 
)
inline
HTProfile::~HTProfile ( )
inlineoverride

Definition at line 210 of file Histograms.h.

210  {
211  delete tProfile_;
212  }
TProfile * tProfile_
Definition: Histograms.h:231

Member Function Documentation

void HTProfile::Clear ( )
inlineoverride

Definition at line 220 of file Histograms.h.

220  {
221  tProfile_->Clear();
222  }
TProfile * tProfile_
Definition: Histograms.h:231
void HTProfile::Fill ( const double &  x,
const double &  y 
)
inlineoverride

Definition at line 213 of file Histograms.h.

213  {
214  tProfile_->Fill(x,y);
215  }
TProfile * tProfile_
Definition: Histograms.h:231
TProfile* HTProfile::operator-> ( )
inline

Definition at line 229 of file Histograms.h.

229 { return tProfile_; }
TProfile * tProfile_
Definition: Histograms.h:231
virtual void HTProfile::SetXTitle ( const TString &  title)
inlinevirtual

Definition at line 223 of file Histograms.h.

223  {
224  tProfile_->GetXaxis()->SetTitle(title);
225  }
TProfile * tProfile_
Definition: Histograms.h:231
virtual void HTProfile::SetYTitle ( const TString &  title)
inlinevirtual

Definition at line 226 of file Histograms.h.

226  {
227  tProfile_->GetYaxis()->SetTitle(title);
228  }
TProfile * tProfile_
Definition: Histograms.h:231
void HTProfile::Write ( )
inlineoverride

Definition at line 216 of file Histograms.h.

216  {
217  if(histoDir_ != nullptr) histoDir_->cd();
218  tProfile_->Write();
219  }
TProfile * tProfile_
Definition: Histograms.h:231

Member Data Documentation

TProfile* HTProfile::tProfile_
protected

Definition at line 231 of file Histograms.h.