#include <Histograms.h>
Public Member Functions | |
void | Fill (float angleSimSegment, float angleRecSegment, float posSimSegment, float posRecSegment, float etaSimSegment, float phiSimSegment, float sigmaPos, float sigmaAngle) |
HRes2DHit (std::string name_) | |
HRes2DHit (TString name_, TFile *file) | |
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, MultiGaussianStateTransform::N, and name.
{ TString N = name_.c_str(); name=N; hRecAngle = new TH1F ("2D_"+N+"_hRecAngle", "Distribution of Rec segment angles;angle (rad)", 100, -3.5, 3.5); hSimAngle = new TH1F ("2D_"+N+"_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)", 100, -3.5, 3.5); hRecVsSimAngle = new TH2F ("2D_"+N+"_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)", 100, -3.5, 3.5, 100, -3.5, 3.5); hResAngle = new TH1F ("2D_"+N+"_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 150, -0.15, 0.15); hResAngleVsEta = new TH2F ("2D_"+N+"_hResAngleVsEta", "Residual on 2D segment angle vs Eta; #eta; res (rad)", 100, -2.5, 2.5, 200, -0.2, 0.2); hResAngleVsPhi = new TH2F ("2D_"+N+"_hResAngleVsPhi", "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)", 100, -3.2, 3.2, 150, -0.2, 0.2); hResPos = new TH1F ("2D_"+N+"_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)", 150, -0.2, 0.2); hResPosVsEta = new TH2F ("2D_"+N+"_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)", 100, -2.5, 2.5, 150, -0.2, 0.2); hResPosVsPhi = new TH2F ("2D_"+N+"_hResPosVsPhi", "Residual on 2D segment position vs Phi;#phi (rad);res (cm)", 100, -3.2, 3.2, 150, -0.2, 0.2); hResPosVsResAngle = new TH2F("2D_"+N+"_hResPosVsResAngle", "Residual on 2D segment position vs Residual on 2D segment angle;angle (rad);res (cm)", 100, -0.3, 0.3, 150, -0.2, 0.2); hPullAngle = new TH1F ("2D_"+N+"_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5); hPullPos = new TH1F ("2D_"+N+"_hPullPos", "Pull on 2D segment position (x at SL center);(x_{rec}-x_{sim} (cm))/#sigma", 150, -5, 5); }
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.
{ name=name_; hRecAngle = (TH1F *) file->Get("2D_"+name+"_hRecAngle"); hSimAngle = (TH1F *) file->Get("2D_"+name+"_hSimAngle"); hRecVsSimAngle = (TH2F *) file->Get("2D_"+name+"_hRecVsSimAngle"); hResAngle = (TH1F *) file->Get("2D_"+name+"_hResAngle"); hResAngleVsEta = (TH2F *) file->Get("2D_"+name+"_hResAngleVsEta"); hResAngleVsPhi = (TH2F *) file->Get("2D_"+name+"_hResAngleVsPhi"); hResPos = (TH1F *) file->Get("2D_"+name+"_hResPos"); hResPosVsEta = (TH2F *) file->Get("2D_"+name+"_hResPosVsEta"); hResPosVsPhi = (TH2F *) file->Get("2D_"+name+"_hResPosVsPhi"); hResPosVsResAngle = (TH2F *) file->Get("2D_"+name+"_hResPosVsResAngle"); hPullAngle = (TH1F *) file->Get("2D_"+name+"_hPullAngle"); hPullPos = (TH1F *) file->Get("2D_"+name+"_hPullPos"); }
HRes2DHit::~HRes2DHit | ( | ) | [inline] |
Definition at line 362 of file Histograms.h.
{ }
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().
{ hRecAngle->Fill(angleRecSegment); hSimAngle->Fill(angleSimSegment); hRecVsSimAngle->Fill(angleSimSegment, angleRecSegment); float resAngle = angleRecSegment-angleSimSegment; hResAngle->Fill(resAngle); hResAngleVsEta->Fill(etaSimSegment, resAngle); hResAngleVsPhi->Fill(phiSimSegment, resAngle); float resPos = posRecSegment-posSimSegment; hResPos->Fill(resPos); hResPosVsEta->Fill(etaSimSegment, resPos); hResPosVsPhi->Fill(phiSimSegment, resPos); hResPosVsResAngle->Fill(resAngle, resPos); hPullAngle->Fill(resAngle/sigmaAngle); hPullPos->Fill(resPos/sigmaPos); }
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.
{ hRecAngle->Write(); hSimAngle->Write(); hRecVsSimAngle->Write(); hResAngle->Write(); hResAngleVsEta->Write(); hResAngleVsPhi->Write(); hResPos->Write(); hResPosVsEta->Write(); hResPosVsPhi->Write(); hResPosVsResAngle->Write(); hPullAngle->Write(); hPullPos->Write(); }
TH1F* HRes2DHit::hPullAngle |
Definition at line 418 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH1F* HRes2DHit::hPullPos |
Definition at line 419 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH1F* HRes2DHit::hRecAngle |
Definition at line 408 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
Definition at line 410 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH1F* HRes2DHit::hResAngle |
Definition at line 411 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
Definition at line 412 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
Definition at line 413 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH1F* HRes2DHit::hResPos |
Definition at line 414 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH2F* HRes2DHit::hResPosVsEta |
Definition at line 415 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH2F* HRes2DHit::hResPosVsPhi |
Definition at line 416 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
Definition at line 417 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TH1F* HRes2DHit::hSimAngle |
Definition at line 409 of file Histograms.h.
Referenced by Fill(), HRes2DHit(), and Write().
TString HRes2DHit::name |
Definition at line 420 of file Histograms.h.
Referenced by HRes2DHit().