CMS 3D CMS Logo

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

#include <Histograms.h>

Public Types

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

Public Member Functions

void fill (float etaSimSegm, float phiSimSegm, float posSimSegm, float angleSimSegm, bool fillRecHit)
 
 HEff2DHit (const std::string &name, DQMStore::IBooker &booker)
 

Private Attributes

dqm::reco::MonitorElementhAngleRecHit
 
dqm::reco::MonitorElementhAngleSimSegm
 
dqm::reco::MonitorElementhEtaRecHit
 
dqm::reco::MonitorElementhEtaSimSegm
 
dqm::reco::MonitorElementhPhiRecHit
 
dqm::reco::MonitorElementhPhiSimSegm
 
dqm::reco::MonitorElementhPosRecHit
 
dqm::reco::MonitorElementhPosSimSegm
 
std::string name_
 

Detailed Description

Definition at line 331 of file Histograms.h.

Member Typedef Documentation

Definition at line 333 of file Histograms.h.

Definition at line 334 of file Histograms.h.

Constructor & Destructor Documentation

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

Definition at line 336 of file Histograms.h.

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

336  {
337  std::string pre = "2D_";
338  pre += name;
339  name_ = pre;
340  booker.setCurrentFolder("DT/2DSegments/");
341  hEtaSimSegm = booker.book1D(pre + "_hEtaSimSegm", "Eta of SimHit segment", 100, -1.5, 1.5);
342  hEtaRecHit =
343  booker.book1D(pre + "_hEtaRecHit", "Eta distribution of SimHit segment with 2D RecHit", 100, -1.5, 1.5);
344  hPhiSimSegm = booker.book1D(pre + "_hPhiSimSegm", "Phi of SimHit segment", 100, -M_PI, M_PI);
345  hPhiRecHit =
346  booker.book1D(pre + "_hPhiRecHit", "Phi distribution of SimHit segment with 2D RecHit", 100, -M_PI, M_PI);
347  hPosSimSegm = booker.book1D(pre + "_hPosSimSegm", "Position in SL of SimHit segment (cm)", 100, -250, 250);
348  hPosRecHit =
349  booker.book1D(pre + "_hPosRecHit", "Position in SL of SimHit segment with 2D RecHit (cm)", 100, -250, 250);
350  hAngleSimSegm = booker.book1D(pre + "_hAngleSimSegm", "Angle of SimHit segment (rad)", 100, -2, 2);
351  hAngleRecHit = booker.book1D(pre + "_hAngleRecHit", "Angle of SimHit segment with 2D RecHit (rad)", 100, -2, 2);
352  }
dqm::reco::MonitorElement * hPosSimSegm
Definition: Histograms.h:373
dqm::reco::MonitorElement * hPhiRecHit
Definition: Histograms.h:372
dqm::reco::MonitorElement * hEtaSimSegm
Definition: Histograms.h:369
std::string name_
Definition: Histograms.h:378
dqm::reco::MonitorElement * hAngleRecHit
Definition: Histograms.h:376
dqm::reco::MonitorElement * hPhiSimSegm
Definition: Histograms.h:371
dqm::reco::MonitorElement * hEtaRecHit
Definition: Histograms.h:370
#define M_PI
dqm::reco::MonitorElement * hPosRecHit
Definition: Histograms.h:374
dqm::reco::MonitorElement * hAngleSimSegm
Definition: Histograms.h:375

Member Function Documentation

void HEff2DHit::fill ( float  etaSimSegm,
float  phiSimSegm,
float  posSimSegm,
float  angleSimSegm,
bool  fillRecHit 
)
inline

Definition at line 354 of file Histograms.h.

Referenced by DTSegment2DQuality::dqmAnalyze().

354  {
355  hEtaSimSegm->Fill(etaSimSegm);
356  hPhiSimSegm->Fill(phiSimSegm);
357  hPosSimSegm->Fill(posSimSegm);
358  hAngleSimSegm->Fill(angleSimSegm);
359 
360  if (fillRecHit) {
361  hEtaRecHit->Fill(etaSimSegm);
362  hPhiRecHit->Fill(phiSimSegm);
363  hPosRecHit->Fill(posSimSegm);
364  hAngleRecHit->Fill(angleSimSegm);
365  }
366  }
dqm::reco::MonitorElement * hPosSimSegm
Definition: Histograms.h:373
dqm::reco::MonitorElement * hPhiRecHit
Definition: Histograms.h:372
dqm::reco::MonitorElement * hEtaSimSegm
Definition: Histograms.h:369
dqm::reco::MonitorElement * hAngleRecHit
Definition: Histograms.h:376
void Fill(long long x)
dqm::reco::MonitorElement * hPhiSimSegm
Definition: Histograms.h:371
dqm::reco::MonitorElement * hEtaRecHit
Definition: Histograms.h:370
dqm::reco::MonitorElement * hPosRecHit
Definition: Histograms.h:374
dqm::reco::MonitorElement * hAngleSimSegm
Definition: Histograms.h:375

Member Data Documentation

dqm::reco::MonitorElement* HEff2DHit::hAngleRecHit
private

Definition at line 376 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hAngleSimSegm
private

Definition at line 375 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hEtaRecHit
private

Definition at line 370 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hEtaSimSegm
private

Definition at line 369 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hPhiRecHit
private

Definition at line 372 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hPhiSimSegm
private

Definition at line 371 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hPosRecHit
private

Definition at line 374 of file Histograms.h.

dqm::reco::MonitorElement* HEff2DHit::hPosSimSegm
private

Definition at line 373 of file Histograms.h.

std::string HEff2DHit::name_
private

Definition at line 378 of file Histograms.h.