CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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>

Inheritance diagram for HTH1D:
Histograms

Public Member Functions

virtual void Clear ()
 
virtual void Fill (const double &x, const double &y)
 
 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)
 
virtual void Write ()
 
 ~HTH1D ()
 
- Public Member Functions inherited from Histograms
void declareHistograms ()
 
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 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)
 
void fillEventInfo (int proc, int strk, int ntrkr)
 
void fillRecHistograms (const RecTrack_t &r)
 
void fillSimHistograms (const SimTrack_t &s)
 
void fillVzeroHistograms (const RecVzero_t &r, int part)
 
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)
 
 Histograms (const edm::ParameterSet &pset)
 
virtual void SetWeight (double weight)
 
void writeHistograms ()
 
virtual ~Histograms ()
 
 ~Histograms ()
 

Protected Attributes

TH1D * tH1D_
 
- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

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

161  tH1D_( new TH1D(name, title, xBins, xMin, xMax) ) {}
TH1D * tH1D_
Definition: Histograms.h:183
HTH1D::~HTH1D ( )
inline

Definition at line 162 of file Histograms.h.

References tH1D_.

162  {
163  delete tH1D_;
164  }
TH1D * tH1D_
Definition: Histograms.h:183

Member Function Documentation

virtual void HTH1D::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 172 of file Histograms.h.

References tH1D_.

172  {
173  tH1D_->Clear();
174  }
TH1D * tH1D_
Definition: Histograms.h:183
virtual void HTH1D::Fill ( const double &  x,
const double &  y 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 165 of file Histograms.h.

References tH1D_.

165  {
166  tH1D_->Fill(x, y);
167  }
TH1D * tH1D_
Definition: Histograms.h:183
Definition: DDAxes.h:10
TH1D* HTH1D::operator-> ( )
inline

Definition at line 181 of file Histograms.h.

References tH1D_.

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

Definition at line 175 of file Histograms.h.

References tH1D_.

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

Definition at line 178 of file Histograms.h.

References tH1D_.

178  {
179  tH1D_->GetYaxis()->SetTitle(title);
180  }
TH1D * tH1D_
Definition: Histograms.h:183
virtual void HTH1D::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 168 of file Histograms.h.

References Histograms::histoDir_, and tH1D_.

168  {
169  if(histoDir_ != 0) histoDir_->cd();
170  tH1D_->Write();
171  }
TH1D * tH1D_
Definition: Histograms.h:183
TDirectory * histoDir_
Definition: Histograms.h:108

Member Data Documentation

TH1D* HTH1D::tH1D_
protected

Definition at line 183 of file Histograms.h.

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