![]() |
![]() |
#include <Validation/RecoMuon/src/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 (TString name_, TFile *file) | |
HResolution1DRecHit (std::string name) | |
~HResolution1DRecHit () | |
Public Attributes | |
MonitorElement * | hResX |
MonitorElement * | hResXVsEta |
MonitorElement * | hResY |
MonitorElement * | hResYVsEta |
MonitorElement * | hResZ |
MonitorElement * | hResZVsEta |
MonitorElement * | hXPull |
MonitorElement * | hXPullVsPos |
MonitorElement * | hXResVsPhi |
MonitorElement * | hXResVsPos |
MonitorElement * | hYPull |
MonitorElement * | hYPullVsPos |
MonitorElement * | hYResVsPhi |
MonitorElement * | hYResVsPos |
MonitorElement * | hZPull |
MonitorElement * | hZPullVsPos |
MonitorElement * | hZResVsPhi |
MonitorElement * | hZResVsPos |
std::string | theName |
Private Attributes | |
DQMStore * | dbe_ |
Definition at line 297 of file Histograms.h.
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] |
HResolution1DRecHit::~HResolution1DRecHit | ( | ) | [inline] |
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 }
DQMStore* HResolution1DRecHit::dbe_ [private] |
std::string HResolution1DRecHit::theName |