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

Constructor & Destructor Documentation

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

Definition at line 370 of file Histograms.h.

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

370  {
371  std::string pre = "2D_";
372  pre += name;
373  name_ = pre;
374  booker.setCurrentFolder("DT/2DSegments/");
375  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "2D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
376  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "2D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
377  hEffVsPos =
378  booker.book1D(pre + "_hEffVsPos", "2D RecHit Efficiency as a function of position in SL", 100, -250, 250);
379  hEffVsAngle = booker.book1D(pre + "_hEffVsAngle", "2D RecHit Efficiency as a function of angle", 100, -2, 2);
380 
381  computeEfficiency(getter);
382  }
std::string name_
Definition: Histograms.h:398
MonitorElement * hEffVsPhi
Definition: Histograms.h:394
MonitorElement * hEffVsEta
Definition: Histograms.h:393
MonitorElement * hEffVsAngle
Definition: Histograms.h:396
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:395
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:384

Member Function Documentation

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

Definition at line 384 of file Histograms.h.

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

384  {
385  std::string pre = "DT/2DSegments/" + name_;
386  divide(hEffVsEta, getter.get(pre + "_hEtaRecHit"), getter.get(pre + "_hEtaSimSegm"));
387  divide(hEffVsPhi, getter.get(pre + "_hPhiRecHit"), getter.get(pre + "_hPhiSimSegm"));
388  divide(hEffVsPos, getter.get(pre + "_hPosRecHit"), getter.get(pre + "_hPosSimSegm"));
389  divide(hEffVsAngle, getter.get(pre + "_hAngleRecHit"), getter.get(pre + "_hAngleSimSegm"));
390  }
std::string name_
Definition: Histograms.h:398
MonitorElement * hEffVsPhi
Definition: Histograms.h:394
MonitorElement * hEffVsEta
Definition: Histograms.h:393
MonitorElement * hEffVsAngle
Definition: Histograms.h:396
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 * hEffVsPos
Definition: Histograms.h:395

Member Data Documentation

MonitorElement* HEff2DHitHarvest::hEffVsAngle
private

Definition at line 396 of file Histograms.h.

MonitorElement* HEff2DHitHarvest::hEffVsEta
private

Definition at line 393 of file Histograms.h.

MonitorElement* HEff2DHitHarvest::hEffVsPhi
private

Definition at line 394 of file Histograms.h.

MonitorElement* HEff2DHitHarvest::hEffVsPos
private

Definition at line 395 of file Histograms.h.

std::string HEff2DHitHarvest::name_
private

Definition at line 398 of file Histograms.h.