CMS 3D CMS Logo

HResolution1DRecHit Class Reference

#include <Validation/RecoMuon/src/Histograms.h>

List of all members.

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 (TString name_, TFile *file)
 HResolution1DRecHit (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

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.

00299                                      :theName(name.c_str()){
00300 
00301     // Position, sigma, residual, pull
00302     hResX        = dbe_->book1D (theName+"_X_Res", "X residual", 5000, -0.5,0.5);
00303     hResY        = dbe_->book1D (theName+"_Y_Res", "Y residual", 5000, -1.,1.);
00304     hResZ        = dbe_->book1D (theName+"_Z_Res", "Z residual", 5000, -1.5,1.5);
00305 
00306     hResXVsEta   = dbe_->book2D(theName+"_XResVsEta", "X residual vs eta",
00307                             200, -2.5,2.5, 5000, -1.5,1.5);
00308     hResYVsEta   = dbe_->book2D(theName+"_YResVsEta", "Y residual vs eta",
00309                             200, -2.5,2.5, 5000, -1.,1.);
00310     hResZVsEta   = dbe_->book2D(theName+"_ZResVsEta", "Z residual vs eta",
00311                             200, -2.5,2.5, 5000, -1.5,1.5);
00312     
00313     hXResVsPhi   = dbe_->book2D(theName+"_XResVsPhi", "X residual vs phi",
00314                             100,-Geom::pi(),Geom::pi(), 5000, -0.5,0.5);
00315     hYResVsPhi   = dbe_->book2D(theName+"_YResVsPhi", "Y residual vs phi",
00316                             100,-Geom::pi(),Geom::pi(), 5000, -1.,1.);
00317     hZResVsPhi   = dbe_->book2D(theName+"_ZResVsPhi", "Z residual vs phi",
00318                             100,-Geom::pi(),Geom::pi(), 5000, -1.5,1.5);
00319     
00320     hXResVsPos   = dbe_->book2D(theName+"_XResVsPos", "X residual vs position",
00321                             10000, -750,750, 5000, -0.5,0.5);    
00322     hYResVsPos   = dbe_->book2D(theName+"_YResVsPos", "Y residual vs position",
00323                             10000, -740,740, 5000, -1.,1.);    
00324     hZResVsPos   = dbe_->book2D(theName+"_ZResVsPos", "Z residual vs position",
00325                             10000, -1100,1100, 5000, -1.5,1.5);   
00326     
00327     hXPull       = dbe_->book1D (theName+"_XPull", "X pull", 600, -2,2);
00328     hYPull       = dbe_->book1D (theName+"_YPull", "Y pull", 600, -2,2);
00329     hZPull       = dbe_->book1D (theName+"_ZPull", "Z pull", 600, -2,2);
00330 
00331     hXPullVsPos  = dbe_->book2D (theName+"_XPullVsPos", "X pull vs position",10000, -750,750, 600, -2,2);
00332     hYPullVsPos  = dbe_->book2D (theName+"_YPullVsPos", "Y pull vs position",10000, -740,740, 600, -2,2);
00333     hZPullVsPos  = dbe_->book2D (theName+"_ZPullVsPos", "Z pull vs position",10000, -1100,1100, 600, -2,2);
00334   }

HResolution1DRecHit::HResolution1DRecHit ( TString  name_,
TFile *  file 
) [inline]

Definition at line 336 of file Histograms.h.

00336 {}

HResolution1DRecHit::~HResolution1DRecHit (  )  [inline]

Definition at line 338 of file Histograms.h.

00338 {}


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 GenMuonPlsPt100GeV_cfg::cout, e, lat::endl(), MonitorElement::Fill(), hResX, hResXVsEta, hResY, hResYVsEta, hResZ, hResZVsEta, hXPull, hXPullVsPos, hXResVsPhi, hXResVsPos, hYPull, hYPullVsPos, hYResVsPhi, hYResVsPos, hZPull, hZPullVsPos, hZResVsPhi, and hZResVsPos.

00343                                     {
00344     
00345     double rx = dx/x, ry = dy/y, rz = dz/z;
00346 
00347     hResX->Fill(rx);
00348     hResY->Fill(ry);
00349     hResZ->Fill(rz);
00350     
00351     hResXVsEta->Fill(eta,rx);
00352     hResYVsEta->Fill(eta,ry);
00353     hResZVsEta->Fill(eta,rz);
00354     
00355     hXResVsPhi->Fill(phi,rx);
00356     hYResVsPhi->Fill(phi,ry);
00357     hZResVsPhi->Fill(phi,rz);
00358     
00359     hXResVsPos->Fill(x,rx);
00360     hYResVsPos->Fill(y,ry);
00361     hZResVsPos->Fill(z,rz);
00362     
00363     if(errx < 1e-6)
00364       std::cout << "NO proper error set for X: "<<errx<<std::endl;
00365     else{
00366       hXPull->Fill(dx/errx);
00367       hXPullVsPos->Fill(x,dx/errx);
00368     }
00369     
00370     if(erry < 1e-6) 
00371       std::cout << "NO proper error set for Y: "<<erry<<std::endl;
00372     else{
00373       hYPull->Fill(dy/erry);
00374       hYPullVsPos->Fill(y,dy/erry);
00375     }
00376     if(errz < 1e-6)
00377       std::cout << "NO proper error set for Z: "<<errz<<std::endl; 
00378     else{
00379       hZPull->Fill(dz/errz);
00380       hZPullVsPos->Fill(z,dz/errz);
00381     }
00382   }


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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:24:48 2009 for CMSSW by  doxygen 1.5.4