CMS 3D CMS Logo

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

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

#include <Histograms.h>

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

Constructor & Destructor Documentation

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

Definition at line 180 of file Histograms.h.

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

182  {
183  std::string pre ="1D_";
184  pre += name;
185  name_ = pre;
186  booker.setCurrentFolder("DT/1DRecHits/");
187  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "1D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
188  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "1D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
189  hEffVsDist = booker.book1D(pre + "_hEffVsDist", "1D RecHit Efficiency as a function of Dist", 100, 0, 2.5);
190 
191  computeEfficiency(getter);
192  }
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:194
MonitorElement * hEffVsEta
Definition: Histograms.h:202
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
std::string name_
Definition: Histograms.h:206
MonitorElement * hEffVsPhi
Definition: Histograms.h:203
#define M_PI
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * hEffVsDist
Definition: Histograms.h:204

Member Function Documentation

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

Definition at line 194 of file Histograms.h.

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

194  {
195  std::string pre = "DT/1DRecHits/" + name_;
196  divide(hEffVsEta, getter.get(pre + "_hEtaMuRecHit"), getter.get(pre + "_hEtaMuSimHit"));
197  divide(hEffVsPhi, getter.get(pre + "_hPhiMuRecHit"), getter.get(pre + "_hPhiMuSimHit"));
198  divide(hEffVsDist, getter.get(pre + "_hDistMuRecHit"), getter.get(pre + "_hDistMuSimHit"));
199  }
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:302
MonitorElement * hEffVsEta
Definition: Histograms.h:202
std::string name_
Definition: Histograms.h:206
MonitorElement * hEffVsPhi
Definition: Histograms.h:203
void divide(MonitorElement *eff, const MonitorElement *numerator, const MonitorElement *denominator)
Function to fill an efficiency histograms with binomial errors.
Definition: Histograms.h:23
MonitorElement * hEffVsDist
Definition: Histograms.h:204

Member Data Documentation

MonitorElement* HEff1DHitHarvest::hEffVsDist
private

Definition at line 204 of file Histograms.h.

MonitorElement* HEff1DHitHarvest::hEffVsEta
private

Definition at line 202 of file Histograms.h.

MonitorElement* HEff1DHitHarvest::hEffVsPhi
private

Definition at line 203 of file Histograms.h.

std::string HEff1DHitHarvest::name_
private

Definition at line 206 of file Histograms.h.