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 | Private Attributes
HResolution Class Reference

#include <Histograms.h>

Inheritance diagram for HResolution:

Public Member Functions

void Fill (double p, double pt, double eta, double phi, double rp, double rpt, double reta, double rphi, double rcharge)
 
void Fill (double p, double pt, double eta, double phi, double rp, double rpt)
 
void Fill (double rp, double rpt, double reta, double rphi, double rcharge)
 
virtual Int_t Fill (Double_t x, Double_t y)
 
 HResolution (DQMStore::IBooker &ibooker, std::string dirName_, std::string name, std::string whereIs)
 
 HResolution (DQMStore::IBooker &ibooker, std::string name, TFile *file)
 
 HResolution (const TString &name, const TString &title, const int totBins, const double &xMin, const double &xMax, const double &yMin, const double &yMax, TDirectory *dir=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
 ~HResolution ()
 
 ~HResolution ()
 

Protected Attributes

TDirectory * diffDir_
 
TProfile * diffHisto_
 
TDirectory * dir2D_
 
TDirectory * dir_
 
TH2F * histo2D_
 
TH1F * resoHisto_
 

Private Attributes

MonitorElementh2Eta
 
MonitorElementh2EtaVsPhi
 
MonitorElementh2EtaVsPt
 
MonitorElementh2P
 
MonitorElementh2Phi
 
MonitorElementh2PhiVsEta
 
MonitorElementh2PhiVsPt
 
MonitorElementh2Pt
 
MonitorElementh2PtVsEta
 
MonitorElementh2PtVsPhi
 
MonitorElementhCharge
 
MonitorElementhEta
 
MonitorElementhP
 
MonitorElementhPhi
 
MonitorElementhPt
 
std::string theName
 
std::string where
 

Detailed Description

This histogram class can be used to evaluate the resolution of a variable. It has a TProfile, a TH2F and a TH1F. The TProfile is used to compute the rms of the distribution which is filled in the TH1F (the resolution histogram) in the Write method. If a TDirectory is passed to the constructor, the different histograms are placed in subdirectories.

Definition at line 1715 of file Histograms.h.

Constructor & Destructor Documentation

HResolution::HResolution ( const TString &  name,
const TString &  title,
const int  totBins,
const double &  xMin,
const double &  xMax,
const double &  yMin,
const double &  yMax,
TDirectory *  dir = 0 
)
inline

Definition at line 1717 of file Histograms.h.

HResolution::~HResolution ( )
inline

Definition at line 1734 of file Histograms.h.

HResolution::HResolution ( DQMStore::IBooker ibooker,
std::string  dirName_,
std::string  name,
std::string  whereIs 
)
inline

Definition at line 162 of file Histograms.h.

HResolution::HResolution ( DQMStore::IBooker ibooker,
std::string  name,
TFile *  file 
)
inline

Definition at line 200 of file Histograms.h.

HResolution::~HResolution ( )
inline

Definition at line 204 of file Histograms.h.

Member Function Documentation

void HResolution::Fill ( double  p,
double  pt,
double  eta,
double  phi,
double  rp,
double  rpt,
double  reta,
double  rphi,
double  rcharge 
)
inline

Definition at line 207 of file Histograms.h.

void HResolution::Fill ( double  p,
double  pt,
double  eta,
double  phi,
double  rp,
double  rpt 
)
inline

Definition at line 230 of file Histograms.h.

void HResolution::Fill ( double  rp,
double  rpt,
double  reta,
double  rphi,
double  rcharge 
)
inline

Definition at line 245 of file Histograms.h.

virtual Int_t HResolution::Fill ( Double_t  x,
Double_t  y 
)
inlinevirtual

Definition at line 1739 of file Histograms.h.

virtual Int_t HResolution::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
)
inlinevirtual

Definition at line 1744 of file Histograms.h.

Member Data Documentation

TDirectory* HResolution::diffDir_
protected

Definition at line 1769 of file Histograms.h.

TProfile* HResolution::diffHisto_
protected

Definition at line 1770 of file Histograms.h.

TDirectory* HResolution::dir2D_
protected

Definition at line 1768 of file Histograms.h.

TDirectory* HResolution::dir_
protected

Definition at line 1767 of file Histograms.h.

MonitorElement* HResolution::h2Eta
private

Definition at line 272 of file Histograms.h.

MonitorElement* HResolution::h2EtaVsPhi
private

Definition at line 282 of file Histograms.h.

MonitorElement* HResolution::h2EtaVsPt
private

Definition at line 281 of file Histograms.h.

MonitorElement* HResolution::h2P
private

Definition at line 275 of file Histograms.h.

MonitorElement* HResolution::h2Phi
private

Definition at line 273 of file Histograms.h.

MonitorElement* HResolution::h2PhiVsEta
private

Definition at line 285 of file Histograms.h.

MonitorElement* HResolution::h2PhiVsPt
private

Definition at line 284 of file Histograms.h.

MonitorElement* HResolution::h2Pt
private

Definition at line 276 of file Histograms.h.

MonitorElement* HResolution::h2PtVsEta
private

Definition at line 278 of file Histograms.h.

MonitorElement* HResolution::h2PtVsPhi
private

Definition at line 279 of file Histograms.h.

MonitorElement* HResolution::hCharge
private

Definition at line 270 of file Histograms.h.

MonitorElement* HResolution::hEta
private

Definition at line 264 of file Histograms.h.

TH2F* HResolution::histo2D_
protected

Definition at line 1771 of file Histograms.h.

MonitorElement* HResolution::hP
private

Definition at line 267 of file Histograms.h.

MonitorElement* HResolution::hPhi
private

Definition at line 265 of file Histograms.h.

MonitorElement* HResolution::hPt
private

Definition at line 268 of file Histograms.h.

TH1F* HResolution::resoHisto_
protected

Definition at line 1772 of file Histograms.h.

std::string HResolution::theName
private

Definition at line 261 of file Histograms.h.

std::string HResolution::where
private

Definition at line 262 of file Histograms.h.