CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HEff1DHitHarvest Class Reference

A set of histograms fo efficiency computation for 1D RecHits (harvesting) More...

#include <Histograms.h>

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

void computeEfficiency (DQMStore::IGetter &getter)
 
 HEff1DHitHarvest (const std::string &name, DQMStore::IBooker &booker, DQMStore::IGetter &getter)
 

Private Attributes

MonitorElementhEffVsDist
 
MonitorElementhEffVsEta
 
MonitorElementhEffVsPhi
 
std::string name_
 

Detailed Description

A set of histograms fo efficiency computation for 1D RecHits (harvesting)

Definition at line 183 of file Histograms.h.

Member Typedef Documentation

Definition at line 185 of file Histograms.h.

Definition at line 186 of file Histograms.h.

Constructor & Destructor Documentation

HEff1DHitHarvest::HEff1DHitHarvest ( const std::string &  name,
DQMStore::IBooker booker,
DQMStore::IGetter getter 
)
inline

Definition at line 188 of file Histograms.h.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), M_PI, Skims_PA_cff::name, HRes1DHit::name_, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

188  {
189  std::string pre = "1D_";
190  pre += name;
191  name_ = pre;
192  booker.setCurrentFolder("DT/1DRecHits/");
193  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "1D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
194  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "1D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
195  hEffVsDist = booker.book1D(pre + "_hEffVsDist", "1D RecHit Efficiency as a function of Dist", 100, 0, 2.5);
196 
197  computeEfficiency(getter);
198  }
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:200
MonitorElement * hEffVsEta
Definition: Histograms.h:208
std::string name_
Definition: Histograms.h:212
MonitorElement * hEffVsPhi
Definition: Histograms.h:209
#define M_PI
MonitorElement * hEffVsDist
Definition: Histograms.h:210

Member Function Documentation

void HEff1DHitHarvest::computeEfficiency ( DQMStore::IGetter getter)
inline

Definition at line 200 of file Histograms.h.

References divide(), dqm::dqmstoreimpl::DQMStore::IGetter::get(), HRes1DHit::name_, and AlCaHLTBitMon_QueryRunRegistry::string.

200  {
201  std::string pre = "DT/1DRecHits/" + name_;
202  divide(hEffVsEta, getter.get(pre + "_hEtaMuRecHit"), getter.get(pre + "_hEtaMuSimHit"));
203  divide(hEffVsPhi, getter.get(pre + "_hPhiMuRecHit"), getter.get(pre + "_hPhiMuSimHit"));
204  divide(hEffVsDist, getter.get(pre + "_hDistMuRecHit"), getter.get(pre + "_hDistMuSimHit"));
205  }
MonitorElement * hEffVsEta
Definition: Histograms.h:208
void divide(dqm::legacy::MonitorElement *eff, const dqm::legacy::MonitorElement *numerator, const dqm::legacy::MonitorElement *denominator)
Function to fill an efficiency histograms with binomial errors.
Definition: Histograms.h:20
std::string name_
Definition: Histograms.h:212
MonitorElement * hEffVsPhi
Definition: Histograms.h:209
MonitorElement * hEffVsDist
Definition: Histograms.h:210

Member Data Documentation

MonitorElement* HEff1DHitHarvest::hEffVsDist
private

Definition at line 210 of file Histograms.h.

MonitorElement* HEff1DHitHarvest::hEffVsEta
private

Definition at line 208 of file Histograms.h.

MonitorElement* HEff1DHitHarvest::hEffVsPhi
private

Definition at line 209 of file Histograms.h.

std::string HEff1DHitHarvest::name_
private

Definition at line 212 of file Histograms.h.