CMS 3D CMS Logo

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

#include <Histograms.h>

Public Types

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

Public Member Functions

void Fill (double x, double y, double z, double dx, double dy, double dz, double errx, double erry, double errz, double eta, double phi)
 
 HResolution1DRecHit (DQMStore::IBooker &ibooker, const TString &name_, TFile *file)
 
 HResolution1DRecHit (DQMStore::IBooker &ibooker, std::string name)
 
 ~HResolution1DRecHit ()
 

Public Attributes

MonitorElementhResX
 
MonitorElementhResXVsEta
 
MonitorElementhResY
 
MonitorElementhResYVsEta
 
MonitorElementhResZ
 
MonitorElementhResZVsEta
 
MonitorElementhXPull
 
MonitorElementhXPullVsPos
 
MonitorElementhXResVsPhi
 
MonitorElementhXResVsPos
 
MonitorElementhYPull
 
MonitorElementhYPullVsPos
 
MonitorElementhYResVsPhi
 
MonitorElementhYResVsPos
 
MonitorElementhZPull
 
MonitorElementhZPullVsPos
 
MonitorElementhZResVsPhi
 
MonitorElementhZResVsPos
 
std::string theName
 

Detailed Description

Definition at line 299 of file Histograms.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 301 of file Histograms.h.

◆ MonitorElement

Definition at line 302 of file Histograms.h.

Constructor & Destructor Documentation

◆ HResolution1DRecHit() [1/2]

HResolution1DRecHit::HResolution1DRecHit ( DQMStore::IBooker ibooker,
std::string  name 
)
inline

Definition at line 304 of file Histograms.h.

304  : theName(name) {
305  // Position, sigma, residual, pull
306  hResX = ibooker.book1D(theName + "_X_Res", "X residual", 5000, -0.5, 0.5);
307  hResY = ibooker.book1D(theName + "_Y_Res", "Y residual", 5000, -1., 1.);
308  hResZ = ibooker.book1D(theName + "_Z_Res", "Z residual", 5000, -1.5, 1.5);
309 
310  hResXVsEta = ibooker.book2D(theName + "_XResVsEta", "X residual vs eta", 200, -2.5, 2.5, 5000, -1.5, 1.5);
311  hResYVsEta = ibooker.book2D(theName + "_YResVsEta", "Y residual vs eta", 200, -2.5, 2.5, 5000, -1., 1.);
312  hResZVsEta = ibooker.book2D(theName + "_ZResVsEta", "Z residual vs eta", 200, -2.5, 2.5, 5000, -1.5, 1.5);
313 
314  hXResVsPhi =
315  ibooker.book2D(theName + "_XResVsPhi", "X residual vs phi", 100, -Geom::pi(), Geom::pi(), 5000, -0.5, 0.5);
316  hYResVsPhi =
317  ibooker.book2D(theName + "_YResVsPhi", "Y residual vs phi", 100, -Geom::pi(), Geom::pi(), 5000, -1., 1.);
318  hZResVsPhi =
319  ibooker.book2D(theName + "_ZResVsPhi", "Z residual vs phi", 100, -Geom::pi(), Geom::pi(), 5000, -1.5, 1.5);
320 
321  hXResVsPos = ibooker.book2D(theName + "_XResVsPos", "X residual vs position", 10000, -750, 750, 5000, -0.5, 0.5);
322  hYResVsPos = ibooker.book2D(theName + "_YResVsPos", "Y residual vs position", 10000, -740, 740, 5000, -1., 1.);
323  hZResVsPos = ibooker.book2D(theName + "_ZResVsPos", "Z residual vs position", 10000, -1100, 1100, 5000, -1.5, 1.5);
324 
325  hXPull = ibooker.book1D(theName + "_XPull", "X pull", 600, -2, 2);
326  hYPull = ibooker.book1D(theName + "_YPull", "Y pull", 600, -2, 2);
327  hZPull = ibooker.book1D(theName + "_ZPull", "Z pull", 600, -2, 2);
328 
329  hXPullVsPos = ibooker.book2D(theName + "_XPullVsPos", "X pull vs position", 10000, -750, 750, 600, -2, 2);
330  hYPullVsPos = ibooker.book2D(theName + "_YPullVsPos", "Y pull vs position", 10000, -740, 740, 600, -2, 2);
331  hZPullVsPos = ibooker.book2D(theName + "_ZPullVsPos", "Z pull vs position", 10000, -1100, 1100, 600, -2, 2);
332  }

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), hResX, hResXVsEta, hResY, hResYVsEta, hResZ, hResZVsEta, hXPull, hXPullVsPos, hXResVsPhi, hXResVsPos, hYPull, hYPullVsPos, hYResVsPhi, hYResVsPos, hZPull, hZPullVsPos, hZResVsPhi, hZResVsPos, Geom::pi(), and theName.

◆ HResolution1DRecHit() [2/2]

HResolution1DRecHit::HResolution1DRecHit ( DQMStore::IBooker ibooker,
const TString &  name_,
TFile *  file 
)
inline

Definition at line 334 of file Histograms.h.

334 {}

◆ ~HResolution1DRecHit()

HResolution1DRecHit::~HResolution1DRecHit ( )
inline

Definition at line 336 of file Histograms.h.

336 {}

Member Function Documentation

◆ Fill()

void HResolution1DRecHit::Fill ( double  x,
double  y,
double  z,
double  dx,
double  dy,
double  dz,
double  errx,
double  erry,
double  errz,
double  eta,
double  phi 
)
inline

Definition at line 338 of file Histograms.h.

348  {
349  double rx = dx / x, ry = dy / y, rz = dz / z;
350 
351  hResX->Fill(rx);
352  hResY->Fill(ry);
353  hResZ->Fill(rz);
354 
355  hResXVsEta->Fill(eta, rx);
356  hResYVsEta->Fill(eta, ry);
357  hResZVsEta->Fill(eta, rz);
358 
359  hXResVsPhi->Fill(phi, rx);
360  hYResVsPhi->Fill(phi, ry);
361  hZResVsPhi->Fill(phi, rz);
362 
363  hXResVsPos->Fill(x, rx);
364  hYResVsPos->Fill(y, ry);
365  hZResVsPos->Fill(z, rz);
366 
367  if (errx < 1e-6)
368  std::cout << "NO proper error set for X: " << errx << std::endl;
369  else {
370  hXPull->Fill(dx / errx);
371  hXPullVsPos->Fill(x, dx / errx);
372  }
373 
374  if (erry < 1e-6)
375  std::cout << "NO proper error set for Y: " << erry << std::endl;
376  else {
377  hYPull->Fill(dy / erry);
378  hYPullVsPos->Fill(y, dy / erry);
379  }
380  if (errz < 1e-6)
381  std::cout << "NO proper error set for Z: " << errz << std::endl;
382  else {
383  hZPull->Fill(dz / errz);
384  hZPullVsPos->Fill(z, dz / errz);
385  }
386  }

References gather_cfg::cout, PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, MillePedeFileConverter_cfg::e, PVValHelper::eta, dqm::impl::MonitorElement::Fill(), hResX, hResXVsEta, hResY, hResYVsEta, hResZ, hResZVsEta, hXPull, hXPullVsPos, hXResVsPhi, hXResVsPos, hYPull, hYPullVsPos, hYResVsPhi, hYResVsPos, hZPull, hZPullVsPos, hZResVsPhi, hZResVsPos, phi, corrVsCorr::rx, corrVsCorr::ry, x, y, and z.

Member Data Documentation

◆ hResX

MonitorElement* HResolution1DRecHit::hResX

Definition at line 391 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hResXVsEta

MonitorElement* HResolution1DRecHit::hResXVsEta

Definition at line 395 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hResY

MonitorElement* HResolution1DRecHit::hResY

Definition at line 392 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hResYVsEta

MonitorElement* HResolution1DRecHit::hResYVsEta

Definition at line 396 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hResZ

MonitorElement* HResolution1DRecHit::hResZ

Definition at line 393 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hResZVsEta

MonitorElement* HResolution1DRecHit::hResZVsEta

Definition at line 397 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hXPull

MonitorElement* HResolution1DRecHit::hXPull

Definition at line 407 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hXPullVsPos

MonitorElement* HResolution1DRecHit::hXPullVsPos

Definition at line 411 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hXResVsPhi

MonitorElement* HResolution1DRecHit::hXResVsPhi

Definition at line 399 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hXResVsPos

MonitorElement* HResolution1DRecHit::hXResVsPos

Definition at line 403 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hYPull

MonitorElement* HResolution1DRecHit::hYPull

Definition at line 408 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hYPullVsPos

MonitorElement* HResolution1DRecHit::hYPullVsPos

Definition at line 412 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hYResVsPhi

MonitorElement* HResolution1DRecHit::hYResVsPhi

Definition at line 400 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hYResVsPos

MonitorElement* HResolution1DRecHit::hYResVsPos

Definition at line 404 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hZPull

MonitorElement* HResolution1DRecHit::hZPull

Definition at line 409 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hZPullVsPos

MonitorElement* HResolution1DRecHit::hZPullVsPos

Definition at line 413 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hZResVsPhi

MonitorElement* HResolution1DRecHit::hZResVsPhi

Definition at line 401 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ hZResVsPos

MonitorElement* HResolution1DRecHit::hZResVsPos

Definition at line 405 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

◆ theName

std::string HResolution1DRecHit::theName

Definition at line 389 of file Histograms.h.

Referenced by HResolution1DRecHit().

DDAxes::y
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HResolution1DRecHit::hXResVsPhi
MonitorElement * hXResVsPhi
Definition: Histograms.h:399
DDAxes::x
HResolution1DRecHit::hXResVsPos
MonitorElement * hXResVsPos
Definition: Histograms.h:403
HResolution1DRecHit::hResZ
MonitorElement * hResZ
Definition: Histograms.h:393
PVValHelper::eta
Definition: PVValidationHelpers.h:70
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
DDAxes::z
Geom::pi
constexpr double pi()
Definition: Pi.h:31
HResolution1DRecHit::hXPullVsPos
MonitorElement * hXPullVsPos
Definition: Histograms.h:411
HResolution1DRecHit::hYResVsPhi
MonitorElement * hYResVsPhi
Definition: Histograms.h:400
HResolution1DRecHit::hYPull
MonitorElement * hYPull
Definition: Histograms.h:408
HResolution1DRecHit::hXPull
MonitorElement * hXPull
Definition: Histograms.h:407
HResolution1DRecHit::hYPullVsPos
MonitorElement * hYPullVsPos
Definition: Histograms.h:412
HResolution1DRecHit::hResXVsEta
MonitorElement * hResXVsEta
Definition: Histograms.h:395
HResolution1DRecHit::hZPull
MonitorElement * hZPull
Definition: Histograms.h:409
HResolution1DRecHit::hResZVsEta
MonitorElement * hResZVsEta
Definition: Histograms.h:397
HResolution1DRecHit::hResYVsEta
MonitorElement * hResYVsEta
Definition: Histograms.h:396
HResolution1DRecHit::hZResVsPhi
MonitorElement * hZResVsPhi
Definition: Histograms.h:401
PVValHelper::dy
Definition: PVValidationHelpers.h:50
corrVsCorr.rx
rx
Definition: corrVsCorr.py:103
HResolution1DRecHit::theName
std::string theName
Definition: Histograms.h:389
DDAxes::phi
PVValHelper::dz
Definition: PVValidationHelpers.h:51
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HResolution1DRecHit::hYResVsPos
MonitorElement * hYResVsPos
Definition: Histograms.h:404
HResolution1DRecHit::hResY
MonitorElement * hResY
Definition: Histograms.h:392
corrVsCorr.ry
ry
Definition: corrVsCorr.py:108
HResolution1DRecHit::hZPullVsPos
MonitorElement * hZPullVsPos
Definition: Histograms.h:413
HResolution1DRecHit::hResX
MonitorElement * hResX
Definition: Histograms.h:391
HResolution1DRecHit::hZResVsPos
MonitorElement * hZResVsPos
Definition: Histograms.h:405
PVValHelper::dx
Definition: PVValidationHelpers.h:49
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37