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
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_
 

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 TProfile histogram to allow it to be put inside the same map as all the other classes in this file.

Definition at line 213 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

Definition at line 215 of file Histograms.h.

223  : Histograms(outputFile, name),
224  tProfile_(new TProfile(name + "Prof", title + " profile", xBins, xMin, xMax, yMin, yMax)) {}
TProfile * tProfile_
Definition: Histograms.h:238
HTProfile::~HTProfile ( )
inlineoverride

Definition at line 225 of file Histograms.h.

References tProfile_.

225 { delete tProfile_; }
TProfile * tProfile_
Definition: Histograms.h:238

Member Function Documentation

void HTProfile::Clear ( )
inlineoverride

Definition at line 232 of file Histograms.h.

References tProfile_.

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

Definition at line 226 of file Histograms.h.

References tProfile_.

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

Definition at line 235 of file Histograms.h.

References tProfile_.

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

Definition at line 233 of file Histograms.h.

References tProfile_.

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

Definition at line 234 of file Histograms.h.

References tProfile_.

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

Definition at line 227 of file Histograms.h.

References tProfile_.

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

Member Data Documentation

TProfile* HTProfile::tProfile_
protected

Definition at line 238 of file Histograms.h.

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