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 44 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 46 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.

46  {
47  std::string pre = "1D_";
48  pre += name;
49  doall_ = doall;
50  booker.setCurrentFolder("DT/1DRecHits/Res/");
51  if (doall) {
52  hDist = booker.book1D(pre + "_hDist", "1D RHit distance from wire", 100, 0, 2.5);
53  hResVsAngle =
54  booker.book2D(pre + "_hResVsAngle", "1D RHit residual vs impact angle", 100, -1.2, 1.2, 100, -0.2, 0.2);
55  hResVsDistFE =
56  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:121
ConcurrentMonitorElement hPullVsAngle
Definition: Histograms.h:127
ConcurrentMonitorElement hResVsEta
Definition: Histograms.h:118
ConcurrentMonitorElement hRes
Definition: Histograms.h:116
ConcurrentMonitorElement hDist
Definition: Histograms.h:115
ConcurrentMonitorElement hResVsDistFE
Definition: Histograms.h:122
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
ConcurrentMonitorElement book2D(Args &&...args)
Definition: DQMStore.h:163
ConcurrentMonitorElement book1D(Args &&...args)
Definition: DQMStore.h:160
ConcurrentMonitorElement hResSt[4]
Definition: Histograms.h:117
ConcurrentMonitorElement hResVsPos
Definition: Histograms.h:120
ConcurrentMonitorElement hPull
Definition: Histograms.h:124
ConcurrentMonitorElement hPullSt[4]
Definition: Histograms.h:125
bool doall_
Definition: Histograms.h:129
ConcurrentMonitorElement hPullVsDistFE
Definition: Histograms.h:128
ConcurrentMonitorElement hPullVsPos
Definition: Histograms.h:126
ConcurrentMonitorElement hResVsPhi
Definition: Histograms.h:119

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);
96  hResSt[station - 1].fill(res);
97  hResVsEta.fill(etaSimHit, res);
98  hResVsPhi.fill(phiSimHit, res);
99  hResVsPos.fill(distSimHit, res);
100  if (errRecHit != 0) {
101  float pull = res / errRecHit;
102  hPull.fill(pull);
103  hPullSt[station - 1].fill(pull);
104  if (doall_) {
105  hPullVsPos.fill(distSimHit, pull);
106  hPullVsAngle.fill(thetaSimHit, pull);
107  hPullVsDistFE.fill(distFESimHit, pull);
108  }
109  } else {
110  std::cout << "Error: RecHit error = 0" << std::endl;
111  }
112  }
ConcurrentMonitorElement hResVsAngle
Definition: Histograms.h:121
ConcurrentMonitorElement hPullVsAngle
Definition: Histograms.h:127
ConcurrentMonitorElement hResVsEta
Definition: Histograms.h:118
ConcurrentMonitorElement hRes
Definition: Histograms.h:116
Definition: Electron.h:6
ConcurrentMonitorElement hDist
Definition: Histograms.h:115
ConcurrentMonitorElement hResVsDistFE
Definition: Histograms.h:122
ConcurrentMonitorElement hResSt[4]
Definition: Histograms.h:117
ConcurrentMonitorElement hResVsPos
Definition: Histograms.h:120
ConcurrentMonitorElement hPull
Definition: Histograms.h:124
ConcurrentMonitorElement hPullSt[4]
Definition: Histograms.h:125
bool doall_
Definition: Histograms.h:129
void fill(Args &&...args) const
ConcurrentMonitorElement hPullVsDistFE
Definition: Histograms.h:128
ConcurrentMonitorElement hPullVsPos
Definition: Histograms.h:126
ConcurrentMonitorElement hResVsPhi
Definition: Histograms.h:119

Member Data Documentation

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

Definition at line 115 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPull
private

Definition at line 124 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullSt[4]
private

Definition at line 125 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullVsAngle
private

Definition at line 127 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullVsDistFE
private

Definition at line 128 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hPullVsPos
private

Definition at line 126 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hRes
private

Definition at line 116 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResSt[4]
private

Definition at line 117 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsAngle
private

Definition at line 121 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsDistFE
private

Definition at line 122 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsEta
private

Definition at line 118 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsPhi
private

Definition at line 119 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

ConcurrentMonitorElement HRes1DHit::hResVsPos
private

Definition at line 120 of file Histograms.h.

Referenced by fill(), and HRes1DHit().

std::string HRes1DHit::name_
private