CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private 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 (std::string name)
 
 HResolution1DRecHit (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
 

Private Attributes

DQMStoredbe_
 

Detailed Description

Definition at line 297 of file Histograms.h.

Constructor & Destructor Documentation

HResolution1DRecHit::HResolution1DRecHit ( std::string  name)
inline

Definition at line 299 of file Histograms.h.

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

299  :theName(name.c_str()){
300 
301  // Position, sigma, residual, pull
302  hResX = dbe_->book1D (theName+"_X_Res", "X residual", 5000, -0.5,0.5);
303  hResY = dbe_->book1D (theName+"_Y_Res", "Y residual", 5000, -1.,1.);
304  hResZ = dbe_->book1D (theName+"_Z_Res", "Z residual", 5000, -1.5,1.5);
305 
306  hResXVsEta = dbe_->book2D(theName+"_XResVsEta", "X residual vs eta",
307  200, -2.5,2.5, 5000, -1.5,1.5);
308  hResYVsEta = dbe_->book2D(theName+"_YResVsEta", "Y residual vs eta",
309  200, -2.5,2.5, 5000, -1.,1.);
310  hResZVsEta = dbe_->book2D(theName+"_ZResVsEta", "Z residual vs eta",
311  200, -2.5,2.5, 5000, -1.5,1.5);
312 
313  hXResVsPhi = dbe_->book2D(theName+"_XResVsPhi", "X residual vs phi",
314  100,-Geom::pi(),Geom::pi(), 5000, -0.5,0.5);
315  hYResVsPhi = dbe_->book2D(theName+"_YResVsPhi", "Y residual vs phi",
316  100,-Geom::pi(),Geom::pi(), 5000, -1.,1.);
317  hZResVsPhi = dbe_->book2D(theName+"_ZResVsPhi", "Z residual vs phi",
318  100,-Geom::pi(),Geom::pi(), 5000, -1.5,1.5);
319 
320  hXResVsPos = dbe_->book2D(theName+"_XResVsPos", "X residual vs position",
321  10000, -750,750, 5000, -0.5,0.5);
322  hYResVsPos = dbe_->book2D(theName+"_YResVsPos", "Y residual vs position",
323  10000, -740,740, 5000, -1.,1.);
324  hZResVsPos = dbe_->book2D(theName+"_ZResVsPos", "Z residual vs position",
325  10000, -1100,1100, 5000, -1.5,1.5);
326 
327  hXPull = dbe_->book1D (theName+"_XPull", "X pull", 600, -2,2);
328  hYPull = dbe_->book1D (theName+"_YPull", "Y pull", 600, -2,2);
329  hZPull = dbe_->book1D (theName+"_ZPull", "Z pull", 600, -2,2);
330 
331  hXPullVsPos = dbe_->book2D (theName+"_XPullVsPos", "X pull vs position",10000, -750,750, 600, -2,2);
332  hYPullVsPos = dbe_->book2D (theName+"_YPullVsPos", "Y pull vs position",10000, -740,740, 600, -2,2);
333  hZPullVsPos = dbe_->book2D (theName+"_ZPullVsPos", "Z pull vs position",10000, -1100,1100, 600, -2,2);
334  }
MonitorElement * hResXVsEta
Definition: Histograms.h:393
MonitorElement * hZPull
Definition: Histograms.h:407
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * hXPullVsPos
Definition: Histograms.h:409
MonitorElement * hXPull
Definition: Histograms.h:405
MonitorElement * hYPullVsPos
Definition: Histograms.h:410
MonitorElement * hYResVsPhi
Definition: Histograms.h:398
std::string theName
Definition: Histograms.h:387
MonitorElement * hResYVsEta
Definition: Histograms.h:394
MonitorElement * hResZVsEta
Definition: Histograms.h:395
MonitorElement * hXResVsPos
Definition: Histograms.h:401
MonitorElement * hZPullVsPos
Definition: Histograms.h:411
MonitorElement * hYPull
Definition: Histograms.h:406
MonitorElement * hXResVsPhi
Definition: Histograms.h:397
MonitorElement * hZResVsPhi
Definition: Histograms.h:399
MonitorElement * hYResVsPos
Definition: Histograms.h:402
double pi()
Definition: Pi.h:31
MonitorElement * hResY
Definition: Histograms.h:390
MonitorElement * hZResVsPos
Definition: Histograms.h:403
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:845
MonitorElement * hResZ
Definition: Histograms.h:391
MonitorElement * hResX
Definition: Histograms.h:389
HResolution1DRecHit::HResolution1DRecHit ( TString  name_,
TFile *  file 
)
inline

Definition at line 336 of file Histograms.h.

336 {}
HResolution1DRecHit::~HResolution1DRecHit ( )
inline

Definition at line 338 of file Histograms.h.

338 {}

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

References gather_cfg::cout, alignCSCRings::e, MonitorElement::Fill(), hResX, hResXVsEta, hResY, hResYVsEta, hResZ, hResZVsEta, hXPull, hXPullVsPos, hXResVsPhi, hXResVsPos, hYPull, hYPullVsPos, hYResVsPhi, hYResVsPos, hZPull, hZPullVsPos, hZResVsPhi, hZResVsPos, corrVsCorr::rx, corrVsCorr::ry, vdt::x, detailsBasic3DVector::y, and detailsBasic3DVector::z.

Referenced by MuonTrackResidualAnalyzer::computeResolution().

343  {
344 
345  double rx = dx/x, ry = dy/y, rz = dz/z;
346 
347  hResX->Fill(rx);
348  hResY->Fill(ry);
349  hResZ->Fill(rz);
350 
351  hResXVsEta->Fill(eta,rx);
352  hResYVsEta->Fill(eta,ry);
353  hResZVsEta->Fill(eta,rz);
354 
355  hXResVsPhi->Fill(phi,rx);
356  hYResVsPhi->Fill(phi,ry);
357  hZResVsPhi->Fill(phi,rz);
358 
359  hXResVsPos->Fill(x,rx);
360  hYResVsPos->Fill(y,ry);
361  hZResVsPos->Fill(z,rz);
362 
363  if(errx < 1e-6)
364  std::cout << "NO proper error set for X: "<<errx<<std::endl;
365  else{
366  hXPull->Fill(dx/errx);
367  hXPullVsPos->Fill(x,dx/errx);
368  }
369 
370  if(erry < 1e-6)
371  std::cout << "NO proper error set for Y: "<<erry<<std::endl;
372  else{
373  hYPull->Fill(dy/erry);
374  hYPullVsPos->Fill(y,dy/erry);
375  }
376  if(errz < 1e-6)
377  std::cout << "NO proper error set for Z: "<<errz<<std::endl;
378  else{
379  hZPull->Fill(dz/errz);
380  hZPullVsPos->Fill(z,dz/errz);
381  }
382  }
MonitorElement * hResXVsEta
Definition: Histograms.h:393
MonitorElement * hZPull
Definition: Histograms.h:407
MonitorElement * hXPullVsPos
Definition: Histograms.h:409
T eta() const
double double double z
MonitorElement * hXPull
Definition: Histograms.h:405
void Fill(long long x)
MonitorElement * hYPullVsPos
Definition: Histograms.h:410
MonitorElement * hYResVsPhi
Definition: Histograms.h:398
MonitorElement * hResYVsEta
Definition: Histograms.h:394
MonitorElement * hResZVsEta
Definition: Histograms.h:395
MonitorElement * hXResVsPos
Definition: Histograms.h:401
MonitorElement * hZPullVsPos
Definition: Histograms.h:411
MonitorElement * hYPull
Definition: Histograms.h:406
MonitorElement * hXResVsPhi
Definition: Histograms.h:397
MonitorElement * hZResVsPhi
Definition: Histograms.h:399
MonitorElement * hYResVsPos
Definition: Histograms.h:402
tuple cout
Definition: gather_cfg.py:121
MonitorElement * hResY
Definition: Histograms.h:390
x
Definition: VDTMath.h:216
MonitorElement * hZResVsPos
Definition: Histograms.h:403
MonitorElement * hResZ
Definition: Histograms.h:391
MonitorElement * hResX
Definition: Histograms.h:389
Definition: DDAxes.h:10

Member Data Documentation

DQMStore* HResolution1DRecHit::dbe_
private

Definition at line 414 of file Histograms.h.

Referenced by HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResX

Definition at line 389 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResXVsEta

Definition at line 393 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResY

Definition at line 390 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResYVsEta

Definition at line 394 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResZ

Definition at line 391 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResZVsEta

Definition at line 395 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXPull

Definition at line 405 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXPullVsPos

Definition at line 409 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXResVsPhi

Definition at line 397 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXResVsPos

Definition at line 401 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYPull

Definition at line 406 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYPullVsPos

Definition at line 410 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYResVsPhi

Definition at line 398 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYResVsPos

Definition at line 402 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZPull

Definition at line 407 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZPullVsPos

Definition at line 411 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZResVsPhi

Definition at line 399 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZResVsPos

Definition at line 403 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

std::string HResolution1DRecHit::theName

Definition at line 387 of file Histograms.h.

Referenced by HResolution1DRecHit().