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 211 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 223 of file Histograms.h.

223 { delete tProfile_; }
TProfile * tProfile_
Definition: Histograms.h:236

Member Function Documentation

void HTProfile::Clear ( )
inlineoverride

Definition at line 230 of file Histograms.h.

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

Definition at line 224 of file Histograms.h.

224 { tProfile_->Fill(x, y); }
TProfile * tProfile_
Definition: Histograms.h:236
TProfile* HTProfile::operator-> ( )
inline

Definition at line 233 of file Histograms.h.

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

Definition at line 231 of file Histograms.h.

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

Definition at line 232 of file Histograms.h.

232 { tProfile_->GetYaxis()->SetTitle(title); }
TProfile * tProfile_
Definition: Histograms.h:236
void HTProfile::Write ( )
inlineoverride

Definition at line 225 of file Histograms.h.

225  {
226  if (histoDir_ != nullptr)
227  histoDir_->cd();
228  tProfile_->Write();
229  }
TProfile * tProfile_
Definition: Histograms.h:236

Member Data Documentation

TProfile* HTProfile::tProfile_
protected

Definition at line 236 of file Histograms.h.