CMS 3D CMS Logo

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

A set of histograms for efficiency 4D RecHits (harvesting) More...

#include <Histograms.h>

Public Member Functions

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

Private Attributes

MonitorElementhEffVsAlpha
 
MonitorElementhEffVsBeta
 
MonitorElementhEffVsEta
 
MonitorElementhEffVsPhi
 
MonitorElementhEffVsX
 
MonitorElementhEffVsY
 
std::string name_
 

Detailed Description

A set of histograms for efficiency 4D RecHits (harvesting)

Definition at line 999 of file Histograms.h.

Constructor & Destructor Documentation

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

Definition at line 1001 of file Histograms.h.

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

1001  {
1002  std::string pre = "4D_";
1003  pre += name;
1004  name_ = pre;
1005  booker.setCurrentFolder("DT/4DSegments/");
1006  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "4D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
1007  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "4D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
1008  hEffVsX =
1009  booker.book1D(pre + "_hEffVsX", "4D RecHit Efficiency as a function of x position in Chamber", 100, -200, 200);
1010  hEffVsY =
1011  booker.book1D(pre + "_hEffVsY", "4D RecHit Efficiency as a function of y position in Chamber", 100, -200, 200);
1012  hEffVsAlpha = booker.book1D(pre + "_hEffVsAlpha", "4D RecHit Efficiency as a function of alpha", 100, -1.5, 1.5);
1013  hEffVsBeta = booker.book1D(pre + "_hEffVsBeta", "4D RecHit Efficiency as a function of beta", 100, -2, 2);
1014 
1015  computeEfficiency(getter);
1016  }
MonitorElement * hEffVsEta
Definition: Histograms.h:1029
MonitorElement * hEffVsPhi
Definition: Histograms.h:1030
MonitorElement * hEffVsX
Definition: Histograms.h:1032
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * hEffVsY
Definition: Histograms.h:1033
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * hEffVsAlpha
Definition: Histograms.h:1035
#define M_PI
std::string name_
Definition: Histograms.h:1038
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:1018
MonitorElement * hEffVsBeta
Definition: Histograms.h:1036

Member Function Documentation

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

Definition at line 1018 of file Histograms.h.

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

1018  {
1019  std::string pre = "DT/4DSegments/" + name_;
1020  divide(hEffVsEta, getter.get(pre + "_hEtaRecHit"), getter.get(pre + "_hEtaSimSegm"));
1021  divide(hEffVsPhi, getter.get(pre + "_hPhiRecHit"), getter.get(pre + "_hPhiSimSegm"));
1022  divide(hEffVsX, getter.get(pre + "_hXRecHit"), getter.get(pre + "_hXSimSegm"));
1023  divide(hEffVsY, getter.get(pre + "_hYRecHit"), getter.get(pre + "_hYSimSegm"));
1024  divide(hEffVsAlpha, getter.get(pre + "_hAlphaRecHit"), getter.get(pre + "_hAlphaSimSegm"));
1025  divide(hEffVsBeta, getter.get(pre + "_hBetaRecHit"), getter.get(pre + "_hBetaSimSegm"));
1026  }
MonitorElement * hEffVsEta
Definition: Histograms.h:1029
MonitorElement * hEffVsPhi
Definition: Histograms.h:1030
MonitorElement * hEffVsX
Definition: Histograms.h:1032
MonitorElement * hEffVsY
Definition: Histograms.h:1033
MonitorElement * hEffVsAlpha
Definition: Histograms.h:1035
MonitorElement * get(std::string const &path)
Definition: DQMStore.cc:303
std::string name_
Definition: Histograms.h:1038
void divide(MonitorElement *eff, const MonitorElement *numerator, const MonitorElement *denominator)
Function to fill an efficiency histograms with binomial errors.
Definition: Histograms.h:22
MonitorElement * hEffVsBeta
Definition: Histograms.h:1036

Member Data Documentation

MonitorElement* HEff4DHitHarvest::hEffVsAlpha
private

Definition at line 1035 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsBeta
private

Definition at line 1036 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsEta
private

Definition at line 1029 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsPhi
private

Definition at line 1030 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsX
private

Definition at line 1032 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsY
private

Definition at line 1033 of file Histograms.h.

std::string HEff4DHitHarvest::name_
private

Definition at line 1038 of file Histograms.h.