CMS 3D CMS Logo

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

A set of histograms fo efficiency computation for 1D RecHits (harvesting) More...

#include <Histograms.h>

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

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

Member Typedef Documentation

◆ DQMStore

Definition at line 185 of file Histograms.h.

◆ MonitorElement

Definition at line 186 of file Histograms.h.

Constructor & Destructor Documentation

◆ HEff1DHitHarvest()

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

Definition at line 188 of file Histograms.h.

References dqm::implementation::IBooker::book1D(), computeEfficiency(), hEffVsDist, hEffVsEta, hEffVsPhi, M_PI, Skims_PA_cff::name, name_, dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

188  {
189  std::string pre = "1D_";
190  pre += name;
191  name_ = pre;
192  booker.setCurrentFolder("DT/1DRecHits/");
193  hEffVsEta = booker.book1D(pre + "_hEffVsEta", "1D RecHit Efficiency as a function of Eta", 100, -1.5, 1.5);
194  hEffVsPhi = booker.book1D(pre + "_hEffVsPhi", "1D RecHit Efficiency as a function of Phi", 100, -M_PI, M_PI);
195  hEffVsDist = booker.book1D(pre + "_hEffVsDist", "1D RecHit Efficiency as a function of Dist", 100, 0, 2.5);
196 
197  computeEfficiency(getter);
198  }
void computeEfficiency(DQMStore::IGetter &getter)
Definition: Histograms.h:200
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * hEffVsEta
Definition: Histograms.h:208
std::string name_
Definition: Histograms.h:212
MonitorElement * hEffVsPhi
Definition: Histograms.h:209
#define M_PI
MonitorElement * hEffVsDist
Definition: Histograms.h:210
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

Member Function Documentation

◆ computeEfficiency()

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

Definition at line 200 of file Histograms.h.

References divide(), dqm::implementation::IGetter::get(), hEffVsDist, hEffVsEta, hEffVsPhi, name_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HEff1DHitHarvest().

200  {
201  std::string pre = "DT/1DRecHits/" + name_;
202  divide(hEffVsEta, getter.get(pre + "_hEtaMuRecHit"), getter.get(pre + "_hEtaMuSimHit"));
203  divide(hEffVsPhi, getter.get(pre + "_hPhiMuRecHit"), getter.get(pre + "_hPhiMuSimHit"));
204  divide(hEffVsDist, getter.get(pre + "_hDistMuRecHit"), getter.get(pre + "_hDistMuSimHit"));
205  }
MonitorElement * hEffVsEta
Definition: Histograms.h:208
void divide(dqm::legacy::MonitorElement *eff, const dqm::legacy::MonitorElement *numerator, const dqm::legacy::MonitorElement *denominator)
Function to fill an efficiency histograms with binomial errors.
Definition: Histograms.h:20
std::string name_
Definition: Histograms.h:212
MonitorElement * hEffVsPhi
Definition: Histograms.h:209
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:690
MonitorElement * hEffVsDist
Definition: Histograms.h:210

Member Data Documentation

◆ hEffVsDist

MonitorElement* HEff1DHitHarvest::hEffVsDist
private

Definition at line 210 of file Histograms.h.

Referenced by computeEfficiency(), and HEff1DHitHarvest().

◆ hEffVsEta

MonitorElement* HEff1DHitHarvest::hEffVsEta
private

Definition at line 208 of file Histograms.h.

Referenced by computeEfficiency(), and HEff1DHitHarvest().

◆ hEffVsPhi

MonitorElement* HEff1DHitHarvest::hEffVsPhi
private

Definition at line 209 of file Histograms.h.

Referenced by computeEfficiency(), and HEff1DHitHarvest().

◆ name_

std::string HEff1DHitHarvest::name_
private

Definition at line 212 of file Histograms.h.

Referenced by computeEfficiency(), and HEff1DHitHarvest().