CMS 3D CMS Logo

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

#include <Histograms.h>

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, std::string name)
 
 HResolution1DRecHit (DQMStore::IBooker &ibooker, const TString &name_, TFile *file)
 
 ~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 290 of file Histograms.h.

Constructor & Destructor Documentation

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

Definition at line 292 of file Histograms.h.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), Geom::pi(), and HTrackVariables::theName.

292  :theName(name.c_str()){
293 
294  // Position, sigma, residual, pull
295  hResX = ibooker.book1D (theName+"_X_Res", "X residual", 5000, -0.5,0.5);
296  hResY = ibooker.book1D (theName+"_Y_Res", "Y residual", 5000, -1.,1.);
297  hResZ = ibooker.book1D (theName+"_Z_Res", "Z residual", 5000, -1.5,1.5);
298 
299  hResXVsEta = ibooker.book2D(theName+"_XResVsEta", "X residual vs eta",
300  200, -2.5,2.5, 5000, -1.5,1.5);
301  hResYVsEta = ibooker.book2D(theName+"_YResVsEta", "Y residual vs eta",
302  200, -2.5,2.5, 5000, -1.,1.);
303  hResZVsEta = ibooker.book2D(theName+"_ZResVsEta", "Z residual vs eta",
304  200, -2.5,2.5, 5000, -1.5,1.5);
305 
306  hXResVsPhi = ibooker.book2D(theName+"_XResVsPhi", "X residual vs phi",
307  100,-Geom::pi(),Geom::pi(), 5000, -0.5,0.5);
308  hYResVsPhi = ibooker.book2D(theName+"_YResVsPhi", "Y residual vs phi",
309  100,-Geom::pi(),Geom::pi(), 5000, -1.,1.);
310  hZResVsPhi = ibooker.book2D(theName+"_ZResVsPhi", "Z residual vs phi",
311  100,-Geom::pi(),Geom::pi(), 5000, -1.5,1.5);
312 
313  hXResVsPos = ibooker.book2D(theName+"_XResVsPos", "X residual vs position",
314  10000, -750,750, 5000, -0.5,0.5);
315  hYResVsPos = ibooker.book2D(theName+"_YResVsPos", "Y residual vs position",
316  10000, -740,740, 5000, -1.,1.);
317  hZResVsPos = ibooker.book2D(theName+"_ZResVsPos", "Z residual vs position",
318  10000, -1100,1100, 5000, -1.5,1.5);
319 
320  hXPull = ibooker.book1D (theName+"_XPull", "X pull", 600, -2,2);
321  hYPull = ibooker.book1D (theName+"_YPull", "Y pull", 600, -2,2);
322  hZPull = ibooker.book1D (theName+"_ZPull", "Z pull", 600, -2,2);
323 
324  hXPullVsPos = ibooker.book2D (theName+"_XPullVsPos", "X pull vs position",10000, -750,750, 600, -2,2);
325  hYPullVsPos = ibooker.book2D (theName+"_YPullVsPos", "Y pull vs position",10000, -740,740, 600, -2,2);
326  hZPullVsPos = ibooker.book2D (theName+"_ZPullVsPos", "Z pull vs position",10000, -1100,1100, 600, -2,2);
327  }
MonitorElement * hResXVsEta
Definition: Histograms.h:386
MonitorElement * hZPull
Definition: Histograms.h:400
MonitorElement * hXPullVsPos
Definition: Histograms.h:402
MonitorElement * hXPull
Definition: Histograms.h:398
MonitorElement * hYPullVsPos
Definition: Histograms.h:403
MonitorElement * hYResVsPhi
Definition: Histograms.h:391
std::string theName
Definition: Histograms.h:380
MonitorElement * hResYVsEta
Definition: Histograms.h:387
MonitorElement * hResZVsEta
Definition: Histograms.h:388
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * hXResVsPos
Definition: Histograms.h:394
MonitorElement * hZPullVsPos
Definition: Histograms.h:404
MonitorElement * hYPull
Definition: Histograms.h:399
MonitorElement * hXResVsPhi
Definition: Histograms.h:390
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
MonitorElement * hZResVsPhi
Definition: Histograms.h:392
MonitorElement * hYResVsPos
Definition: Histograms.h:395
MonitorElement * hResY
Definition: Histograms.h:383
constexpr double pi()
Definition: Pi.h:31
MonitorElement * hZResVsPos
Definition: Histograms.h:396
MonitorElement * hResZ
Definition: Histograms.h:384
MonitorElement * hResX
Definition: Histograms.h:382
HResolution1DRecHit::HResolution1DRecHit ( DQMStore::IBooker ibooker,
const TString &  name_,
TFile *  file 
)
inline

Definition at line 329 of file Histograms.h.

329 {}
HResolution1DRecHit::~HResolution1DRecHit ( )
inline

Definition at line 331 of file Histograms.h.

331 {}

Member Function Documentation

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 333 of file Histograms.h.

References gather_cfg::cout, MillePedeFileConverter_cfg::e, corrVsCorr::rx, corrVsCorr::ry, x, y, and z.

Referenced by MuonTrackResidualAnalyzer::computeResolution().

336  {
337 
338  double rx = dx/x, ry = dy/y, rz = dz/z;
339 
340  hResX->Fill(rx);
341  hResY->Fill(ry);
342  hResZ->Fill(rz);
343 
344  hResXVsEta->Fill(eta,rx);
345  hResYVsEta->Fill(eta,ry);
346  hResZVsEta->Fill(eta,rz);
347 
348  hXResVsPhi->Fill(phi,rx);
349  hYResVsPhi->Fill(phi,ry);
350  hZResVsPhi->Fill(phi,rz);
351 
352  hXResVsPos->Fill(x,rx);
353  hYResVsPos->Fill(y,ry);
354  hZResVsPos->Fill(z,rz);
355 
356  if(errx < 1e-6)
357  std::cout << "NO proper error set for X: "<<errx<<std::endl;
358  else{
359  hXPull->Fill(dx/errx);
360  hXPullVsPos->Fill(x,dx/errx);
361  }
362 
363  if(erry < 1e-6)
364  std::cout << "NO proper error set for Y: "<<erry<<std::endl;
365  else{
366  hYPull->Fill(dy/erry);
367  hYPullVsPos->Fill(y,dy/erry);
368  }
369  if(errz < 1e-6)
370  std::cout << "NO proper error set for Z: "<<errz<<std::endl;
371  else{
372  hZPull->Fill(dz/errz);
373  hZPullVsPos->Fill(z,dz/errz);
374  }
375  }
MonitorElement * hResXVsEta
Definition: Histograms.h:386
MonitorElement * hZPull
Definition: Histograms.h:400
MonitorElement * hXPullVsPos
Definition: Histograms.h:402
MonitorElement * hXPull
Definition: Histograms.h:398
void Fill(long long x)
MonitorElement * hYPullVsPos
Definition: Histograms.h:403
MonitorElement * hYResVsPhi
Definition: Histograms.h:391
MonitorElement * hResYVsEta
Definition: Histograms.h:387
MonitorElement * hResZVsEta
Definition: Histograms.h:388
MonitorElement * hXResVsPos
Definition: Histograms.h:394
MonitorElement * hZPullVsPos
Definition: Histograms.h:404
MonitorElement * hYPull
Definition: Histograms.h:399
MonitorElement * hXResVsPhi
Definition: Histograms.h:390
MonitorElement * hZResVsPhi
Definition: Histograms.h:392
MonitorElement * hYResVsPos
Definition: Histograms.h:395
MonitorElement * hResY
Definition: Histograms.h:383
MonitorElement * hZResVsPos
Definition: Histograms.h:396
MonitorElement * hResZ
Definition: Histograms.h:384
MonitorElement * hResX
Definition: Histograms.h:382

Member Data Documentation

MonitorElement* HResolution1DRecHit::hResX

Definition at line 382 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hResXVsEta

Definition at line 386 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hResY

Definition at line 383 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hResYVsEta

Definition at line 387 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hResZ

Definition at line 384 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hResZVsEta

Definition at line 388 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hXPull

Definition at line 398 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hXPullVsPos

Definition at line 402 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hXResVsPhi

Definition at line 390 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hXResVsPos

Definition at line 394 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hYPull

Definition at line 399 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hYPullVsPos

Definition at line 403 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hYResVsPhi

Definition at line 391 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hYResVsPos

Definition at line 395 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hZPull

Definition at line 400 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hZPullVsPos

Definition at line 404 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hZResVsPhi

Definition at line 392 of file Histograms.h.

MonitorElement* HResolution1DRecHit::hZResVsPos

Definition at line 396 of file Histograms.h.

std::string HResolution1DRecHit::theName

Definition at line 380 of file Histograms.h.