CMS 3D CMS Logo

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

A set of histograms of residuals and pulls for 1D RecHits. More...

#include <Histograms.h>

Public Member Functions

void fill (float distSimHit, float thetaSimHit, float distFESimHit, float distRecHit, float etaSimHit, float phiSimHit, float errRecHit, int station)
 
 HRes1DHit (const std::string &name, DQMStore::ConcurrentBooker &booker, bool doall=true, bool local=true)
 

Private Attributes

bool doall_
 
ConcurrentMonitorElement hDist
 
ConcurrentMonitorElement hPull
 
ConcurrentMonitorElement hPullSt [4]
 
ConcurrentMonitorElement hPullVsAngle
 
ConcurrentMonitorElement hPullVsDistFE
 
ConcurrentMonitorElement hPullVsPos
 
ConcurrentMonitorElement hRes
 
ConcurrentMonitorElement hResSt [4]
 
ConcurrentMonitorElement hResVsAngle
 
ConcurrentMonitorElement hResVsDistFE
 
ConcurrentMonitorElement hResVsEta
 
ConcurrentMonitorElement hResVsPhi
 
ConcurrentMonitorElement hResVsPos
 
std::string name_
 

Detailed Description

A set of histograms of residuals and pulls for 1D RecHits.

Definition at line 46 of file Histograms.h.

Constructor & Destructor Documentation

HRes1DHit::HRes1DHit ( const std::string &  name,
DQMStore::ConcurrentBooker booker,
bool  doall = true,
bool  local = true 
)
inline

Definition at line 48 of file Histograms.h.

References DQMStore::ConcurrentBooker::book1D(), DQMStore::ConcurrentBooker::book2D(), DTRecHitClients_cfi::doall, doall_, hDist, hPull, hPullSt, hPullVsAngle, hPullVsDistFE, hPullVsPos, hRes, hResSt, hResVsAngle, hResVsDistFE, hResVsEta, hResVsPhi, hResVsPos, dataset::name, DQMStore::IBooker::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

48  {
49  std::string pre ="1D_";
50  pre += name;
51  doall_ = doall;
52  booker.setCurrentFolder("DT/1DRecHits/Res/");
53  if (doall) {
54  hDist = booker.book1D(pre + "_hDist", "1D RHit distance from wire", 100, 0, 2.5);
55  hResVsAngle = booker.book2D(pre + "_hResVsAngle", "1D RHit residual vs impact angle", 100, -1.2, 1.2, 100, -0.2, 0.2);
56  hResVsDistFE = booker.book2D(pre + "_hResVsDistFE", "1D RHit residual vs FE distance", 100, 0., 400., 150, -0.5, 0.5);
57  booker.setCurrentFolder("DT/1DRecHits/Pull/");
58  hPullVsPos = booker.book2D(pre + "_hPullVsPos", "1D RHit pull vs position", 100, 0, 2.5, 100, -5, 5);
59  hPullVsAngle = booker.book2D(pre + "_hPullVsAngle", "1D RHit pull vs impact angle", 100, -1.2, 1.2, 100, -5, 5);
60  hPullVsDistFE = booker.book2D(pre + "_hPullVsDistFE", "1D RHit pull vs FE distance", 100, 0., 400., 100, -5, 5);
61  }
62  booker.setCurrentFolder("DT/1DRecHits/Res/");
63  hRes = booker.book1D(pre + "_hRes", "1D RHit residual", 300, -0.5, 0.5);
64  hResSt[0] = booker.book1D(pre + "_hResMB1", "1D RHit residual", 300, -0.5, 0.5);
65  hResSt[1] = booker.book1D(pre + "_hResMB2", "1D RHit residual", 300, -0.5, 0.5);
66  hResSt[2] = booker.book1D(pre + "_hResMB3", "1D RHit residual", 300, -0.5, 0.5);
67  hResSt[3] = booker.book1D(pre + "_hResMB4", "1D RHit residual", 300, -0.5, 0.5);
68  hResVsEta = booker.book2D(pre + "_hResVsEta", "1D RHit residual vs eta", 50, -1.25, 1.25, 150,-0.5, 0.5);
69  hResVsPhi = booker.book2D(pre + "_hResVsPhi", "1D RHit residual vs phi", 100, -3.2, 3.2, 150, -0.5, 0.5);
70  hResVsPos = booker.book2D(pre + "_hResVsPos", "1D RHit residual vs position", 100, 0, 2.5, 150, -0.5, 0.5);
71 
72  booker.setCurrentFolder("DT/1DRecHits/Pull/");
73  hPull = booker.book1D(pre + "_hPull", "1D RHit pull", 100, -5, 5);
74  hPullSt[0] = booker.book1D(pre + "_hPullMB1", "1D RHit residual", 100, -5, 5);
75  hPullSt[1] = booker.book1D(pre + "_hPullMB2", "1D RHit residual", 100, -5, 5);
76  hPullSt[2] = booker.book1D(pre + "_hPullMB3", "1D RHit residual", 100, -5, 5);
77  hPullSt[3] = booker.book1D(pre + "_hPullMB4", "1D RHit residual", 100, -5, 5);
78  }
ConcurrentMonitorElement hResVsAngle
Definition: Histograms.h:119
ConcurrentMonitorElement hPullVsAngle
Definition: Histograms.h:125
ConcurrentMonitorElement hResVsEta
Definition: Histograms.h:116
ConcurrentMonitorElement hRes
Definition: Histograms.h:114
ConcurrentMonitorElement hDist
Definition: Histograms.h:113
ConcurrentMonitorElement hResVsDistFE
Definition: Histograms.h:120
ConcurrentMonitorElement book2D(Args &&...args)
Definition: DQMStore.h:244
ConcurrentMonitorElement book1D(Args &&...args)
Definition: DQMStore.h:223
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
ConcurrentMonitorElement hResSt[4]
Definition: Histograms.h:115
ConcurrentMonitorElement hResVsPos
Definition: Histograms.h:118
ConcurrentMonitorElement hPull
Definition: Histograms.h:122
ConcurrentMonitorElement hPullSt[4]
Definition: Histograms.h:123
bool doall_
Definition: Histograms.h:127
ConcurrentMonitorElement hPullVsDistFE
Definition: Histograms.h:126
ConcurrentMonitorElement hPullVsPos
Definition: Histograms.h:124
ConcurrentMonitorElement hResVsPhi
Definition: Histograms.h:117

Member Function Documentation

void HRes1DHit::fill ( float  distSimHit,
float  thetaSimHit,
float  distFESimHit,
float  distRecHit,
float  etaSimHit,
float  phiSimHit,
float  errRecHit,
int  station 
)
inline

Definition at line 80 of file Histograms.h.

References gather_cfg::cout, doall_, ConcurrentMonitorElement::fill(), hDist, hPull, hPullSt, hPullVsAngle, hPullVsDistFE, hPullVsPos, hRes, hResSt, hResVsAngle, hResVsDistFE, hResVsEta, hResVsPhi, and hResVsPos.

Referenced by DTRecHitQuality::compute().

87  {
88  // Reso, pull
89  float res = distRecHit-distSimHit;
90  if (doall_) {
91  hDist.fill(distRecHit);
92  hResVsAngle.fill(thetaSimHit, res);
93  hResVsDistFE.fill(distFESimHit, res);
94  }
95  hRes.fill(res); hResSt[station-1].fill(res);
96  hResVsEta.fill(etaSimHit, res);
97  hResVsPhi.fill(phiSimHit, res);
98  hResVsPos.fill(distSimHit, res);
99  if (errRecHit != 0) {
100  float pull=res/errRecHit;
101  hPull.fill(pull);hPullSt[station-1].fill(pull);
102  if (doall_) {
103  hPullVsPos.fill(distSimHit, pull);
104  hPullVsAngle.fill(thetaSimHit, pull);
105  hPullVsDistFE.fill(distFESimHit, pull);
106  }
107  } else {
108  std::cout << "Error: RecHit error = 0" << std::endl;
109  }
110  }
ConcurrentMonitorElement hResVsAngle
Definition: Histograms.h:119
ConcurrentMonitorElement hPullVsAngle
Definition: Histograms.h:125
ConcurrentMonitorElement hResVsEta
Definition: Histograms.h:116
ConcurrentMonitorElement hRes
Definition: Histograms.h:114
Definition: Electron.h:6
ConcurrentMonitorElement hDist
Definition: Histograms.h:113
ConcurrentMonitorElement hResVsDistFE
Definition: Histograms.h:120
ConcurrentMonitorElement hResSt[4]
Definition: Histograms.h:115
ConcurrentMonitorElement hResVsPos
Definition: Histograms.h:118
ConcurrentMonitorElement hPull
Definition: Histograms.h:122
ConcurrentMonitorElement hPullSt[4]
Definition: Histograms.h:123
bool doall_
Definition: Histograms.h:127
void fill(Args &&...args) const
ConcurrentMonitorElement hPullVsDistFE
Definition: Histograms.h:126
ConcurrentMonitorElement hPullVsPos
Definition: Histograms.h:124
ConcurrentMonitorElement hResVsPhi
Definition: Histograms.h:117

Member Data Documentation

bool HRes1DHit::doall_
private
ConcurrentMonitorElement HRes1DHit::hDist
private

Definition at line 113 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPull
private

Definition at line 122 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullSt[4]
private

Definition at line 123 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullVsAngle
private

Definition at line 125 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullVsDistFE
private

Definition at line 126 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullVsPos
private

Definition at line 124 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hRes
private

Definition at line 114 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResSt[4]
private

Definition at line 115 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsAngle
private

Definition at line 119 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsDistFE
private

Definition at line 120 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsEta
private

Definition at line 116 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsPhi
private

Definition at line 117 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsPos
private

Definition at line 118 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

std::string HRes1DHit::name_
private