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>

Inheritance diagram for HTProfile:
Histograms

Public Member Functions

virtual void Clear ()
 
virtual void Fill (const double &x, const double &y)
 
 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)
 
virtual void Write ()
 
 ~HTProfile ()
 
- Public Member Functions inherited from Histograms
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const CLHEP::HepLorentzVector &p, const double &likeValue)
 
virtual void Fill (const unsigned int number)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2)
 
virtual void Fill (const double &x, const double &y, const double &a, const double &b)
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
virtual double Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName)
 
virtual TString GetName ()
 
 Histograms ()
 
 Histograms (const TString &name)
 
 Histograms (TFile *outputFile, const TString &name)
 
virtual void SetWeight (double weight)
 
virtual ~Histograms ()
 

Protected Attributes

TProfile * tProfile_
 
- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

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 ( )
inline

Definition at line 210 of file Histograms.h.

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

Member Function Documentation

virtual void HTProfile::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 220 of file Histograms.h.

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

Reimplemented from Histograms.

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
virtual void HTProfile::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 216 of file Histograms.h.

References Histograms::histoDir_.

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

Member Data Documentation

TProfile* HTProfile::tProfile_
protected

Definition at line 231 of file Histograms.h.