CMS 3D CMS Logo

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

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

#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 xSimSegm, float ySimSegm, float alphaSimSegm, float betaSimSegm, bool fillRecHit, int nSeg)
 
 HEff4DHit (const std::string &name, DQMStore::IBooker &booker)
 

Private Attributes

dqm::reco::MonitorElementhAlphaRecHit
 
dqm::reco::MonitorElementhAlphaSimSegm
 
dqm::reco::MonitorElementhBetaRecHit
 
dqm::reco::MonitorElementhBetaSimSegm
 
dqm::reco::MonitorElementhEtaRecHit
 
dqm::reco::MonitorElementhEtaSimSegm
 
dqm::reco::MonitorElementhNSeg
 
dqm::reco::MonitorElementhPhiRecHit
 
dqm::reco::MonitorElementhPhiSimSegm
 
dqm::reco::MonitorElementhXRecHit
 
dqm::reco::MonitorElementhXSimSegm
 
dqm::reco::MonitorElementhYRecHit
 
dqm::reco::MonitorElementhYSimSegm
 
std::string name_
 

Detailed Description

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

Definition at line 940 of file Histograms.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 942 of file Histograms.h.

◆ MonitorElement

Definition at line 943 of file Histograms.h.

Constructor & Destructor Documentation

◆ HEff4DHit()

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

Definition at line 945 of file Histograms.h.

References dqm::implementation::IBooker::book1D(), hAlphaRecHit, hAlphaSimSegm, hBetaRecHit, hBetaSimSegm, hEtaRecHit, hEtaSimSegm, hNSeg, hPhiRecHit, hPhiSimSegm, hXRecHit, hXSimSegm, hYRecHit, hYSimSegm, M_PI, Skims_PA_cff::name, name_, dqm::implementation::NavigatorBase::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

945  {
946  std::string pre = "4D_";
947  pre += name;
948  name_ = pre;
949  booker.setCurrentFolder("DT/4DSegments/");
950  hEtaSimSegm = booker.book1D(pre + "_hEtaSimSegm", "Eta of SimHit segment", 100, -1.5, 1.5);
951  hEtaRecHit =
952  booker.book1D(pre + "_hEtaRecHit", "Eta distribution of SimHit segment with 4D RecHit", 100, -1.5, 1.5);
953 
954  hPhiSimSegm = booker.book1D(pre + "_hPhiSimSegm", "Phi of SimHit segment", 100, -M_PI, M_PI);
955  hPhiRecHit =
956  booker.book1D(pre + "_hPhiRecHit", "Phi distribution of SimHit segment with 4D RecHit", 100, -M_PI, M_PI);
957 
958  hXSimSegm = booker.book1D(pre + "_hXSimSegm", "X position in Chamber of SimHit segment (cm)", 100, -200, 200);
959  hXRecHit =
960  booker.book1D(pre + "_hXRecHit", "X position in Chamber of SimHit segment with 4D RecHit (cm)", 100, -200, 200);
961 
962  hYSimSegm = booker.book1D(pre + "_hYSimSegm", "Y position in Chamber of SimHit segment (cm)", 100, -200, 200);
963  hYRecHit =
964  booker.book1D(pre + "_hYRecHit", "Y position in Chamber of SimHit segment with 4D RecHit (cm)", 100, -200, 200);
965 
966  hAlphaSimSegm = booker.book1D(pre + "_hAlphaSimSegm", "Alpha of SimHit segment (rad)", 100, -1.5, 1.5);
967  hAlphaRecHit = booker.book1D(pre + "_hAlphaRecHit", "Alpha of SimHit segment with 4D RecHit (rad)", 100, -1.5, 1.5);
968 
969  hBetaSimSegm = booker.book1D(pre + "_hBetaSimSegm", "Beta of SimHit segment (rad)", 100, -2, 2);
970  hBetaRecHit = booker.book1D(pre + "_hBetaRecHit", "Beta of SimHit segment with 4D RecHit (rad)", 100, -2, 2);
971 
972  hNSeg = booker.book1D(pre + "_hNSeg", "Number of rec segment per sim seg", 20, 0, 20);
973  }
dqm::reco::MonitorElement * hBetaSimSegm
Definition: Histograms.h:1012
dqm::reco::MonitorElement * hPhiSimSegm
Definition: Histograms.h:1004
std::string name_
Definition: Histograms.h:1017
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
dqm::reco::MonitorElement * hAlphaRecHit
Definition: Histograms.h:1011
dqm::reco::MonitorElement * hEtaRecHit
Definition: Histograms.h:1003
dqm::reco::MonitorElement * hNSeg
Definition: Histograms.h:1015
dqm::reco::MonitorElement * hXRecHit
Definition: Histograms.h:1007
dqm::reco::MonitorElement * hYSimSegm
Definition: Histograms.h:1008
dqm::reco::MonitorElement * hAlphaSimSegm
Definition: Histograms.h:1010
dqm::reco::MonitorElement * hEtaSimSegm
Definition: Histograms.h:1002
dqm::reco::MonitorElement * hBetaRecHit
Definition: Histograms.h:1013
#define M_PI
dqm::reco::MonitorElement * hPhiRecHit
Definition: Histograms.h:1005
dqm::reco::MonitorElement * hYRecHit
Definition: Histograms.h:1009
dqm::reco::MonitorElement * hXSimSegm
Definition: Histograms.h:1006
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

◆ fill()

void HEff4DHit::fill ( float  etaSimSegm,
float  phiSimSegm,
float  xSimSegm,
float  ySimSegm,
float  alphaSimSegm,
float  betaSimSegm,
bool  fillRecHit,
int  nSeg 
)
inline

Definition at line 975 of file Histograms.h.

References dqm::impl::MonitorElement::Fill(), hAlphaRecHit, hAlphaSimSegm, hBetaRecHit, hBetaSimSegm, hEtaRecHit, hEtaSimSegm, hNSeg, hPhiRecHit, hPhiSimSegm, hXRecHit, hXSimSegm, hYRecHit, and hYSimSegm.

Referenced by DTSegment4DQuality::dqmAnalyze().

982  {
983  hEtaSimSegm->Fill(etaSimSegm);
984  hPhiSimSegm->Fill(phiSimSegm);
985  hXSimSegm->Fill(xSimSegm);
986  hYSimSegm->Fill(ySimSegm);
987  hAlphaSimSegm->Fill(alphaSimSegm);
988  hBetaSimSegm->Fill(betaSimSegm);
989  hNSeg->Fill(nSeg);
990 
991  if (fillRecHit) {
992  hEtaRecHit->Fill(etaSimSegm);
993  hPhiRecHit->Fill(phiSimSegm);
994  hXRecHit->Fill(xSimSegm);
995  hYRecHit->Fill(ySimSegm);
996  hAlphaRecHit->Fill(alphaSimSegm);
997  hBetaRecHit->Fill(betaSimSegm);
998  }
999  }
dqm::reco::MonitorElement * hBetaSimSegm
Definition: Histograms.h:1012
dqm::reco::MonitorElement * hPhiSimSegm
Definition: Histograms.h:1004
dqm::reco::MonitorElement * hAlphaRecHit
Definition: Histograms.h:1011
dqm::reco::MonitorElement * hEtaRecHit
Definition: Histograms.h:1003
dqm::reco::MonitorElement * hNSeg
Definition: Histograms.h:1015
dqm::reco::MonitorElement * hXRecHit
Definition: Histograms.h:1007
dqm::reco::MonitorElement * hYSimSegm
Definition: Histograms.h:1008
dqm::reco::MonitorElement * hAlphaSimSegm
Definition: Histograms.h:1010
void Fill(long long x)
dqm::reco::MonitorElement * hEtaSimSegm
Definition: Histograms.h:1002
dqm::reco::MonitorElement * hBetaRecHit
Definition: Histograms.h:1013
dqm::reco::MonitorElement * hPhiRecHit
Definition: Histograms.h:1005
dqm::reco::MonitorElement * hYRecHit
Definition: Histograms.h:1009
dqm::reco::MonitorElement * hXSimSegm
Definition: Histograms.h:1006

Member Data Documentation

◆ hAlphaRecHit

dqm::reco::MonitorElement* HEff4DHit::hAlphaRecHit
private

Definition at line 1011 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hAlphaSimSegm

dqm::reco::MonitorElement* HEff4DHit::hAlphaSimSegm
private

Definition at line 1010 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hBetaRecHit

dqm::reco::MonitorElement* HEff4DHit::hBetaRecHit
private

Definition at line 1013 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hBetaSimSegm

dqm::reco::MonitorElement* HEff4DHit::hBetaSimSegm
private

Definition at line 1012 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hEtaRecHit

dqm::reco::MonitorElement* HEff4DHit::hEtaRecHit
private

Definition at line 1003 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hEtaSimSegm

dqm::reco::MonitorElement* HEff4DHit::hEtaSimSegm
private

Definition at line 1002 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hNSeg

dqm::reco::MonitorElement* HEff4DHit::hNSeg
private

Definition at line 1015 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hPhiRecHit

dqm::reco::MonitorElement* HEff4DHit::hPhiRecHit
private

Definition at line 1005 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hPhiSimSegm

dqm::reco::MonitorElement* HEff4DHit::hPhiSimSegm
private

Definition at line 1004 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hXRecHit

dqm::reco::MonitorElement* HEff4DHit::hXRecHit
private

Definition at line 1007 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hXSimSegm

dqm::reco::MonitorElement* HEff4DHit::hXSimSegm
private

Definition at line 1006 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hYRecHit

dqm::reco::MonitorElement* HEff4DHit::hYRecHit
private

Definition at line 1009 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ hYSimSegm

dqm::reco::MonitorElement* HEff4DHit::hYSimSegm
private

Definition at line 1008 of file Histograms.h.

Referenced by fill(), and HEff4DHit().

◆ name_

std::string HEff4DHit::name_
private

Definition at line 1017 of file Histograms.h.

Referenced by HEff4DHit().