CMS 3D CMS Logo

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

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

#include <Histograms.h>

Public Types

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

Public Member Functions

void fill (float distSimHit, float etaSimHit, float phiSimHit, bool fillRecHit)
 
 HEff1DHit (const std::string &name, DQMStore::IBooker &booker)
 

Private Attributes

dqm::reco::MonitorElementhDistMuSimHit
 
dqm::reco::MonitorElementhDistRecHit
 
dqm::reco::MonitorElementhEtaMuSimHit
 
dqm::reco::MonitorElementhEtaRecHit
 
dqm::reco::MonitorElementhPhiMuSimHit
 
dqm::reco::MonitorElementhPhiRecHit
 
std::string name_
 

Detailed Description

A set of histograms fo efficiency computation for 1D RecHits (producer)

Definition at line 138 of file Histograms.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 140 of file Histograms.h.

◆ MonitorElement

Definition at line 141 of file Histograms.h.

Constructor & Destructor Documentation

◆ HEff1DHit()

HEff1DHit::HEff1DHit ( const std::string &  name,
DQMStore::IBooker booker 
)
inline

Definition at line 143 of file Histograms.h.

References dqm::implementation::IBooker::book1D(), hDistMuSimHit, hDistRecHit, hEtaMuSimHit, hEtaRecHit, hPhiMuSimHit, hPhiRecHit, M_PI, Skims_PA_cff::name, name_, dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

143  {
144  std::string pre = "1D_";
145  pre += name;
146  name_ = pre;
147  booker.setCurrentFolder("DT/1DRecHits/");
148  hEtaMuSimHit = booker.book1D(pre + "_hEtaMuSimHit", "SimHit Eta distribution", 100, -1.5, 1.5);
149  hEtaRecHit = booker.book1D(pre + "_hEtaRecHit", "SimHit Eta distribution with 1D RecHit", 100, -1.5, 1.5);
150  hPhiMuSimHit = booker.book1D(pre + "_hPhiMuSimHit", "SimHit Phi distribution", 100, -M_PI, M_PI);
151  hPhiRecHit = booker.book1D(pre + "_hPhiRecHit", "SimHit Phi distribution with 1D RecHit", 100, -M_PI, M_PI);
152  hDistMuSimHit = booker.book1D(pre + "_hDistMuSimHit", "SimHit Distance from wire distribution", 100, 0, 2.5);
153  hDistRecHit =
154  booker.book1D(pre + "_hDistRecHit", "SimHit Distance from wire distribution with 1D RecHit", 100, 0, 2.5);
155  }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
dqm::reco::MonitorElement * hDistRecHit
Definition: Histograms.h:176
dqm::reco::MonitorElement * hPhiRecHit
Definition: Histograms.h:173
dqm::reco::MonitorElement * hPhiMuSimHit
Definition: Histograms.h:172
dqm::reco::MonitorElement * hEtaMuSimHit
Definition: Histograms.h:169
dqm::reco::MonitorElement * hEtaRecHit
Definition: Histograms.h:170
#define M_PI
dqm::reco::MonitorElement * hDistMuSimHit
Definition: Histograms.h:175
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
std::string name_
Definition: Histograms.h:178

Member Function Documentation

◆ fill()

void HEff1DHit::fill ( float  distSimHit,
float  etaSimHit,
float  phiSimHit,
bool  fillRecHit 
)
inline

Definition at line 157 of file Histograms.h.

References dqm::impl::MonitorElement::Fill(), hDistMuSimHit, hDistRecHit, hEtaMuSimHit, hEtaRecHit, hPhiMuSimHit, and hPhiRecHit.

Referenced by DTRecHitQuality::compute().

157  {
158  hEtaMuSimHit->Fill(etaSimHit);
159  hPhiMuSimHit->Fill(phiSimHit);
160  hDistMuSimHit->Fill(distSimHit);
161  if (fillRecHit) {
162  hEtaRecHit->Fill(etaSimHit);
163  hPhiRecHit->Fill(phiSimHit);
164  hDistRecHit->Fill(distSimHit);
165  }
166  }
dqm::reco::MonitorElement * hDistRecHit
Definition: Histograms.h:176
dqm::reco::MonitorElement * hPhiRecHit
Definition: Histograms.h:173
dqm::reco::MonitorElement * hPhiMuSimHit
Definition: Histograms.h:172
void Fill(long long x)
dqm::reco::MonitorElement * hEtaMuSimHit
Definition: Histograms.h:169
dqm::reco::MonitorElement * hEtaRecHit
Definition: Histograms.h:170
dqm::reco::MonitorElement * hDistMuSimHit
Definition: Histograms.h:175

Member Data Documentation

◆ hDistMuSimHit

dqm::reco::MonitorElement* HEff1DHit::hDistMuSimHit
private

Definition at line 175 of file Histograms.h.

Referenced by fill(), and HEff1DHit().

◆ hDistRecHit

dqm::reco::MonitorElement* HEff1DHit::hDistRecHit
private

Definition at line 176 of file Histograms.h.

Referenced by fill(), and HEff1DHit().

◆ hEtaMuSimHit

dqm::reco::MonitorElement* HEff1DHit::hEtaMuSimHit
private

Definition at line 169 of file Histograms.h.

Referenced by fill(), and HEff1DHit().

◆ hEtaRecHit

dqm::reco::MonitorElement* HEff1DHit::hEtaRecHit
private

Definition at line 170 of file Histograms.h.

Referenced by fill(), and HEff1DHit().

◆ hPhiMuSimHit

dqm::reco::MonitorElement* HEff1DHit::hPhiMuSimHit
private

Definition at line 172 of file Histograms.h.

Referenced by fill(), and HEff1DHit().

◆ hPhiRecHit

dqm::reco::MonitorElement* HEff1DHit::hPhiRecHit
private

Definition at line 173 of file Histograms.h.

Referenced by fill(), and HEff1DHit().

◆ name_

std::string HEff1DHit::name_
private

Definition at line 178 of file Histograms.h.

Referenced by HEff1DHit().