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 (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
 

Private Attributes

DQMStoredbe_
 

Detailed Description

Definition at line 295 of file Histograms.h.

Constructor & Destructor Documentation

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

Definition at line 297 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.

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

Definition at line 334 of file Histograms.h.

334 {}
HResolution1DRecHit::~HResolution1DRecHit ( )
inline

Definition at line 336 of file Histograms.h.

336 {}

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 338 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, x, detailsBasic3DVector::y, and detailsBasic3DVector::z.

Referenced by MuonTrackResidualAnalyzer::computeResolution().

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

Member Data Documentation

DQMStore* HResolution1DRecHit::dbe_
private

Definition at line 412 of file Histograms.h.

Referenced by HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResX

Definition at line 387 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResXVsEta

Definition at line 391 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResY

Definition at line 388 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResYVsEta

Definition at line 392 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResZ

Definition at line 389 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hResZVsEta

Definition at line 393 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXPull

Definition at line 403 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXPullVsPos

Definition at line 407 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXResVsPhi

Definition at line 395 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hXResVsPos

Definition at line 399 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYPull

Definition at line 404 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYPullVsPos

Definition at line 408 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYResVsPhi

Definition at line 396 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hYResVsPos

Definition at line 400 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZPull

Definition at line 405 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZPullVsPos

Definition at line 409 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZResVsPhi

Definition at line 397 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

MonitorElement* HResolution1DRecHit::hZResVsPos

Definition at line 401 of file Histograms.h.

Referenced by Fill(), and HResolution1DRecHit().

std::string HResolution1DRecHit::theName

Definition at line 385 of file Histograms.h.

Referenced by HResolution1DRecHit().