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

Constructor & Destructor Documentation

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

Definition at line 778 of file Histograms.h.

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

780  {
781  std::string pre ="4D_";
782  pre += name;
783  name_ = pre;
784  booker.setCurrentFolder("DT/4DSegments/");
785  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "4D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
786  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "4D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
787  hEffVsX = booker.book1D(pre + "_hEffVsX", "4D RecHit Efficiency as a function of x position in Chamber", 100, -200, 200);
788  hEffVsY = booker.book1D(pre + "_hEffVsY", "4D RecHit Efficiency as a function of y position in Chamber", 100, -200, 200);
789  hEffVsAlpha = booker.book1D(pre + "_hEffVsAlpha", "4D RecHit Efficiency as a function of alpha", 100, -1.5, 1.5);
790  hEffVsBeta = booker.book1D(pre + "_hEffVsBeta", "4D RecHit Efficiency as a function of beta", 100, -2, 2);
791 
792  computeEfficiency(getter);
793  }
MonitorElement * hEffVsEta
Definition: Histograms.h:806
MonitorElement * hEffVsPhi
Definition: Histograms.h:807
MonitorElement * hEffVsX
Definition: Histograms.h:809
MonitorElement * hEffVsY
Definition: Histograms.h:810
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
MonitorElement * hEffVsAlpha
Definition: Histograms.h:812
#define M_PI
std::string name_
Definition: Histograms.h:815
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:795
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * hEffVsBeta
Definition: Histograms.h:813

Member Function Documentation

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

Definition at line 795 of file Histograms.h.

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

795  {
796  std::string pre = "DT/4DSegments/" + name_;
797  divide(hEffVsEta, getter.get(pre + "_hEtaRecHit"), getter.get(pre + "_hEtaSimSegm"));
798  divide(hEffVsPhi, getter.get(pre + "_hPhiRecHit"), getter.get(pre + "_hPhiSimSegm"));
799  divide(hEffVsX, getter.get(pre + "_hXRecHit"), getter.get(pre + "_hXSimSegm"));
800  divide(hEffVsY, getter.get(pre + "_hYRecHit"), getter.get(pre + "_hYSimSegm"));
801  divide(hEffVsAlpha, getter.get(pre + "_hAlphaRecHit"), getter.get(pre + "_hAlphaSimSegm"));
802  divide(hEffVsBeta, getter.get(pre + "_hBetaRecHit"), getter.get(pre + "_hBetaSimSegm"));
803  }
MonitorElement * hEffVsEta
Definition: Histograms.h:806
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:302
MonitorElement * hEffVsPhi
Definition: Histograms.h:807
MonitorElement * hEffVsX
Definition: Histograms.h:809
MonitorElement * hEffVsY
Definition: Histograms.h:810
MonitorElement * hEffVsAlpha
Definition: Histograms.h:812
std::string name_
Definition: Histograms.h:815
void divide(MonitorElement *eff, const MonitorElement *numerator, const MonitorElement *denominator)
Function to fill an efficiency histograms with binomial errors.
Definition: Histograms.h:23
MonitorElement * hEffVsBeta
Definition: Histograms.h:813

Member Data Documentation

MonitorElement* HEff4DHitHarvest::hEffVsAlpha
private

Definition at line 812 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsBeta
private

Definition at line 813 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsEta
private

Definition at line 806 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsPhi
private

Definition at line 807 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsX
private

Definition at line 809 of file Histograms.h.

MonitorElement* HEff4DHitHarvest::hEffVsY
private

Definition at line 810 of file Histograms.h.

std::string HEff4DHitHarvest::name_
private

Definition at line 815 of file Histograms.h.