CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
HTH1D Class Reference

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>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const double &x, const double &y) override
 
 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)
 
void Write () override
 
 ~HTH1D () override
 

Protected Attributes

TH1D * tH1D_
 

Additional Inherited Members

- Public Attributes inherited from Histograms
dqm::reco::MonitorElementlumiVsLS
 
dqm::reco::MonitorElementnumberOfPixelClustersVsLS
 
dqm::reco::MonitorElementnumberOfPixelClustersVsLumi
 
dqm::reco::MonitorElementpixelLumiVsLS
 
dqm::reco::MonitorElementpixelLumiVsLumi
 
dqm::reco::MonitorElementpuVsLS
 

Detailed Description

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

Constructor & Destructor Documentation

HTH1D::HTH1D ( TFile *  outputFile,
const TString &  name,
const TString &  title,
const int  xBins,
const double &  xMin,
const double &  xMax 
)
inline

Definition at line 189 of file Histograms.h.

195  : Histograms(outputFile, name), tH1D_(new TH1D(name, title, xBins, xMin, xMax)) {}
TH1D * tH1D_
Definition: Histograms.h:209
HTH1D::~HTH1D ( )
inlineoverride

Definition at line 196 of file Histograms.h.

References tH1D_.

196 { delete tH1D_; }
TH1D * tH1D_
Definition: Histograms.h:209

Member Function Documentation

void HTH1D::Clear ( )
inlineoverride

Definition at line 203 of file Histograms.h.

References tH1D_.

203 { tH1D_->Clear(); }
TH1D * tH1D_
Definition: Histograms.h:209
void HTH1D::Fill ( const double &  x,
const double &  y 
)
inlineoverride

Definition at line 197 of file Histograms.h.

References tH1D_.

197 { tH1D_->Fill(x, y); }
TH1D * tH1D_
Definition: Histograms.h:209
TH1D* HTH1D::operator-> ( )
inline

Definition at line 206 of file Histograms.h.

References tH1D_.

206 { return tH1D_; }
TH1D * tH1D_
Definition: Histograms.h:209
virtual void HTH1D::SetXTitle ( const TString &  title)
inlinevirtual

Definition at line 204 of file Histograms.h.

References tH1D_.

204 { tH1D_->GetXaxis()->SetTitle(title); }
TH1D * tH1D_
Definition: Histograms.h:209
virtual void HTH1D::SetYTitle ( const TString &  title)
inlinevirtual

Definition at line 205 of file Histograms.h.

References tH1D_.

205 { tH1D_->GetYaxis()->SetTitle(title); }
TH1D * tH1D_
Definition: Histograms.h:209
void HTH1D::Write ( )
inlineoverride

Definition at line 198 of file Histograms.h.

References tH1D_.

198  {
199  if (histoDir_ != nullptr)
200  histoDir_->cd();
201  tH1D_->Write();
202  }
TH1D * tH1D_
Definition: Histograms.h:209

Member Data Documentation

TH1D* HTH1D::tH1D_
protected

Definition at line 209 of file Histograms.h.

Referenced by Clear(), Fill(), operator->(), SetXTitle(), SetYTitle(), Write(), and ~HTH1D().