#include <Validation/DTRecHits/plugins/Histograms.h>
Public Member Functions | |
void | Fill (float angleSimSegment, float angleRecSegment, float posSimSegment, float posRecSegment, float etaSimSegment, float phiSimSegment, float sigmaPos, float sigmaAngle) |
HRes2DHit (TString name_, TFile *file) | |
HRes2DHit (std::string name_) | |
void | Write () |
~HRes2DHit () | |
Public Attributes | |
TH1F * | hPullAngle |
TH1F * | hPullPos |
TH1F * | hRecAngle |
TH2F * | hRecVsSimAngle |
TH1F * | hResAngle |
TH2F * | hResAngleVsEta |
TH2F * | hResAngleVsPhi |
TH1F * | hResPos |
TH2F * | hResPosVsEta |
TH2F * | hResPosVsPhi |
TH2F * | hResPosVsResAngle |
TH1F * | hSimAngle |
TString | name |
Definition at line 307 of file Histograms.h.
HRes2DHit::HRes2DHit | ( | std::string | name_ | ) | [inline] |
Definition at line 309 of file Histograms.h.
References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, hSimAngle, N, and name.
00309 { 00310 TString N = name_.c_str(); 00311 name=N; 00312 00313 hRecAngle = new TH1F ("2D_"+N+"_hRecAngle", "Distribution of Rec segment angles;angle (rad)", 00314 100, -3.5, 3.5); 00315 hSimAngle = new TH1F ("2D_"+N+"_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)", 00316 100, -3.5, 3.5); 00317 hRecVsSimAngle = new TH2F ("2D_"+N+"_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)", 00318 100, -3.5, 3.5, 100, -3.5, 3.5); 00319 00320 00321 hResAngle = new TH1F ("2D_"+N+"_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 150, -0.15, 0.15); 00322 hResAngleVsEta = new TH2F ("2D_"+N+"_hResAngleVsEta", "Residual on 2D segment angle vs Eta; #eta; res (rad)", 00323 100, -2.5, 2.5, 200, -0.2, 0.2); 00324 hResAngleVsPhi = new TH2F ("2D_"+N+"_hResAngleVsPhi", "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)", 00325 100, -3.2, 3.2, 150, -0.2, 0.2); 00326 00327 hResPos = new TH1F ("2D_"+N+"_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)", 00328 150, -0.2, 0.2); 00329 hResPosVsEta = new TH2F ("2D_"+N+"_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)", 00330 100, -2.5, 2.5, 150, -0.2, 0.2); 00331 hResPosVsPhi = new TH2F ("2D_"+N+"_hResPosVsPhi", "Residual on 2D segment position vs Phi;#phi (rad);res (cm)", 00332 100, -3.2, 3.2, 150, -0.2, 0.2); 00333 00334 hResPosVsResAngle = new TH2F("2D_"+N+"_hResPosVsResAngle", 00335 "Residual on 2D segment position vs Residual on 2D segment angle;angle (rad);res (cm)", 00336 100, -0.3, 0.3, 150, -0.2, 0.2); 00337 00338 hPullAngle = new TH1F ("2D_"+N+"_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5); 00339 hPullPos = new TH1F ("2D_"+N+"_hPullPos", "Pull on 2D segment position (x at SL center);(x_{rec}-x_{sim} (cm))/#sigma", 00340 150, -5, 5); 00341 }
HRes2DHit::HRes2DHit | ( | TString | name_, | |
TFile * | file | |||
) | [inline] |
Definition at line 343 of file Histograms.h.
References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, hSimAngle, and name.
00343 { 00344 name=name_; 00345 00346 hRecAngle = (TH1F *) file->Get("2D_"+name+"_hRecAngle"); 00347 hSimAngle = (TH1F *) file->Get("2D_"+name+"_hSimAngle"); 00348 hRecVsSimAngle = (TH2F *) file->Get("2D_"+name+"_hRecVsSimAngle"); 00349 hResAngle = (TH1F *) file->Get("2D_"+name+"_hResAngle"); 00350 hResAngleVsEta = (TH2F *) file->Get("2D_"+name+"_hResAngleVsEta"); 00351 hResAngleVsPhi = (TH2F *) file->Get("2D_"+name+"_hResAngleVsPhi"); 00352 hResPos = (TH1F *) file->Get("2D_"+name+"_hResPos"); 00353 hResPosVsEta = (TH2F *) file->Get("2D_"+name+"_hResPosVsEta"); 00354 hResPosVsPhi = (TH2F *) file->Get("2D_"+name+"_hResPosVsPhi"); 00355 hResPosVsResAngle = (TH2F *) file->Get("2D_"+name+"_hResPosVsResAngle"); 00356 hPullAngle = (TH1F *) file->Get("2D_"+name+"_hPullAngle"); 00357 hPullPos = (TH1F *) file->Get("2D_"+name+"_hPullPos"); 00358 00359 }
HRes2DHit::~HRes2DHit | ( | ) | [inline] |
void HRes2DHit::Fill | ( | float | angleSimSegment, | |
float | angleRecSegment, | |||
float | posSimSegment, | |||
float | posRecSegment, | |||
float | etaSimSegment, | |||
float | phiSimSegment, | |||
float | sigmaPos, | |||
float | sigmaAngle | |||
) | [inline] |
Definition at line 365 of file Histograms.h.
References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, and hSimAngle.
Referenced by DTSegment2DQuality::analyze(), and DTSegment2DSLPhiQuality::analyze().
00372 { 00373 00374 hRecAngle->Fill(angleRecSegment); 00375 hSimAngle->Fill(angleSimSegment); 00376 hRecVsSimAngle->Fill(angleSimSegment, angleRecSegment); 00377 float resAngle = angleRecSegment-angleSimSegment; 00378 hResAngle->Fill(resAngle); 00379 hResAngleVsEta->Fill(etaSimSegment, resAngle); 00380 hResAngleVsPhi->Fill(phiSimSegment, resAngle); 00381 float resPos = posRecSegment-posSimSegment; 00382 hResPos->Fill(resPos); 00383 hResPosVsEta->Fill(etaSimSegment, resPos); 00384 hResPosVsPhi->Fill(phiSimSegment, resPos); 00385 hResPosVsResAngle->Fill(resAngle, resPos); 00386 hPullAngle->Fill(resAngle/sigmaAngle); 00387 hPullPos->Fill(resPos/sigmaPos); 00388 }
void HRes2DHit::Write | ( | ) | [inline] |
Definition at line 390 of file Histograms.h.
References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, and hSimAngle.
Referenced by DTSegment2DSLPhiQuality::endJob(), and DTSegment2DQuality::endJob().
00390 { 00391 00392 hRecAngle->Write(); 00393 hSimAngle->Write(); 00394 hRecVsSimAngle->Write(); 00395 hResAngle->Write(); 00396 hResAngleVsEta->Write(); 00397 hResAngleVsPhi->Write(); 00398 hResPos->Write(); 00399 hResPosVsEta->Write(); 00400 hResPosVsPhi->Write(); 00401 hResPosVsResAngle->Write(); 00402 hPullAngle->Write(); 00403 hPullPos->Write(); 00404 }
TH1F* HRes2DHit::hPullAngle |
TH1F* HRes2DHit::hPullPos |
TH1F* HRes2DHit::hRecAngle |
TH1F* HRes2DHit::hResAngle |
TH1F* HRes2DHit::hResPos |
TH2F* HRes2DHit::hResPosVsEta |
TH2F* HRes2DHit::hResPosVsPhi |
TH1F* HRes2DHit::hSimAngle |
TString HRes2DHit::name |