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

Constructor & Destructor Documentation

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

Definition at line 179 of file Histograms.h.

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

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

Member Function Documentation

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

Definition at line 191 of file Histograms.h.

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

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

Member Data Documentation

MonitorElement* HEff1DHitHarvest::hEffVsDist
private

Definition at line 201 of file Histograms.h.

MonitorElement* HEff1DHitHarvest::hEffVsEta
private

Definition at line 199 of file Histograms.h.

MonitorElement* HEff1DHitHarvest::hEffVsPhi
private

Definition at line 200 of file Histograms.h.

std::string HEff1DHitHarvest::name_
private

Definition at line 203 of file Histograms.h.