CMS 3D CMS Logo

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

#include <Histograms.h>

Public Member Functions

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

Private Attributes

MonitorElementhEffVsAngle
 
MonitorElementhEffVsEta
 
MonitorElementhEffVsPhi
 
MonitorElementhEffVsPos
 
std::string name_
 

Detailed Description

Definition at line 343 of file Histograms.h.

Constructor & Destructor Documentation

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

Definition at line 345 of file Histograms.h.

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

347  {
348  std::string pre ="2D_";
349  pre += name;
350  name_ = pre;
351  booker.setCurrentFolder("DT/2DSegments/");
352  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "2D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
353  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "2D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
354  hEffVsPos = booker.book1D(pre + "_hEffVsPos", "2D RecHit Efficiency as a function of position in SL", 100, -250, 250);
355  hEffVsAngle = booker.book1D(pre + "_hEffVsAngle", "2D RecHit Efficiency as a function of angle", 100, -2, 2);
356 
357  computeEfficiency(getter);
358  }
std::string name_
Definition: Histograms.h:374
MonitorElement * hEffVsPhi
Definition: Histograms.h:370
MonitorElement * hEffVsEta
Definition: Histograms.h:369
MonitorElement * hEffVsAngle
Definition: Histograms.h:372
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
#define M_PI
MonitorElement * hEffVsPos
Definition: Histograms.h:371
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:360

Member Function Documentation

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

Definition at line 360 of file Histograms.h.

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

360  {
361  std::string pre = "DT/2DSegments/" + name_;
362  divide(hEffVsEta, getter.get(pre + "_hEtaRecHit"), getter.get(pre + "_hEtaSimSegm"));
363  divide(hEffVsPhi, getter.get(pre + "_hPhiRecHit"), getter.get(pre + "_hPhiSimSegm"));
364  divide(hEffVsPos, getter.get(pre + "_hPosRecHit"), getter.get(pre + "_hPosSimSegm"));
365  divide(hEffVsAngle, getter.get(pre + "_hAngleRecHit"), getter.get(pre + "_hAngleSimSegm"));
366  }
std::string name_
Definition: Histograms.h:374
MonitorElement * hEffVsPhi
Definition: Histograms.h:370
MonitorElement * hEffVsEta
Definition: Histograms.h:369
MonitorElement * hEffVsAngle
Definition: Histograms.h:372
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:23
MonitorElement * hEffVsPos
Definition: Histograms.h:371

Member Data Documentation

MonitorElement* HEff2DHitHarvest::hEffVsAngle
private

Definition at line 372 of file Histograms.h.

MonitorElement* HEff2DHitHarvest::hEffVsEta
private

Definition at line 369 of file Histograms.h.

MonitorElement* HEff2DHitHarvest::hEffVsPhi
private

Definition at line 370 of file Histograms.h.

MonitorElement* HEff2DHitHarvest::hEffVsPos
private

Definition at line 371 of file Histograms.h.

std::string HEff2DHitHarvest::name_
private

Definition at line 374 of file Histograms.h.