#include <Validation/DTRecHits/plugins/Histograms.h>
Public Member Functions | |
void | Fill (float distSimHit, float thetaSimHit, float distFESimHit, float distRecHit, float etaSimHit, float phiSimHit, float errRecHit) |
HRes1DHit (TString name_, TFile *file) | |
HRes1DHit (std::string name_) | |
void | Write () |
~HRes1DHit () | |
Public Attributes | |
TH1F * | hDist |
TH1F * | hPull |
TH2F * | hPullVsAngle |
TH2F * | hPullVsDistFE |
TH2F * | hPullVsPos |
TH1F * | hRes |
TH2F * | hResVsAngle |
TH2F * | hResVsDistFE |
TH2F * | hResVsEta |
TH2F * | hResVsPhi |
TH2F * | hResVsPos |
TString | name |
Definition at line 25 of file Histograms.h.
HRes1DHit::HRes1DHit | ( | std::string | name_ | ) | [inline] |
Definition at line 27 of file Histograms.h.
References hDist, hPull, hPullVsAngle, hPullVsDistFE, hPullVsPos, hRes, hResVsAngle, hResVsDistFE, hResVsEta, hResVsPhi, hResVsPos, N, and name.
00027 { 00028 TString N = name_.c_str(); 00029 name=N; 00030 00031 // Position, sigma, residual, pull 00032 hDist = new TH1F ("1D_"+N+"_hDist", "1D RHit distance from wire", 100, 0,2.5); 00033 hRes = new TH1F ("1D_"+N+"_hRes", "1D RHit residual", 300, -1.5,1.5); 00034 hResVsEta = new TH2F("1D_"+N+"_hResVsEta", "1D RHit residual vs eta", 00035 50, -1.25,1.25, 150, -1.5,1.5); 00036 hResVsPhi = new TH2F("1D_"+N+"_hResVsPhi", "1D RHit residual vs phi", 00037 100, -3.2, 3.2, 150, -1.5,1.5); 00038 hResVsPos = new TH2F("1D_"+N+"_hResVsPos", "1D RHit residual vs position", 00039 100, 0, 2.5, 150, -1.5,1.5); 00040 hResVsAngle = new TH2F("1D_"+N+"_hResVsAngle", "1D RHit residual vs impact angle", 00041 100, 0.,1.2, 150, -1.5,1.5); 00042 hResVsDistFE = new TH2F("1D_"+N+"_hResVsDistFE", "1D RHit residual vs FE distance", 00043 100, 0.,400., 150, -1.5,1.5); 00044 hPull = new TH1F ("1D_"+N+"_hPull", "1D RHit pull", 100, -5,5); 00045 hPullVsPos = new TH2F ("1D_"+N+"_hPullVsPos", "1D RHit pull vs position", 100, 0,2.5, 100, -5,5); 00046 hPullVsAngle = new TH2F ("1D_"+N+"_hPullVsAngle", "1D RHit pull vs impact angle", 00047 100, 0.,+1.2, 100, -5,5); 00048 hPullVsDistFE = new TH2F ("1D_"+N+"_hPullVsDistFE", "1D RHit pull vs FE distance", 00049 100, 0., 400., 100, -5,5); 00050 }
HRes1DHit::HRes1DHit | ( | TString | name_, | |
TFile * | file | |||
) | [inline] |
Definition at line 52 of file Histograms.h.
References hDist, hPull, hPullVsAngle, hPullVsDistFE, hPullVsPos, hRes, hResVsAngle, hResVsDistFE, hResVsEta, hResVsPhi, hResVsPos, and name.
00052 { 00053 name=name_; 00054 hDist = (TH1F *) file->Get("1D_"+name+"_hDist"); 00055 hRes = (TH1F *) file->Get("1D_"+name+"_hRes"); 00056 hResVsEta = (TH2F *) file->Get("1D_"+name+"_hResVsEta"); 00057 hResVsPhi = (TH2F *) file->Get("1D_"+name+"_hResVsPhi"); 00058 hResVsPos = (TH2F *) file->Get("1D_"+name+"_hResVsPos"); 00059 hResVsAngle = (TH2F *) file->Get("1D_"+name+"_hResVsAngle"); 00060 hResVsDistFE = (TH2F *) file->Get("1D_"+name+"_hResVsDistFE"); 00061 hPull = (TH1F *) file->Get("1D_"+name+"_hPull"); 00062 hPullVsPos = (TH2F *) file->Get("1D_"+name+"_hPullVsPos"); 00063 hPullVsAngle = (TH2F *) file->Get("1D_"+name+"_hPullVsAngle"); 00064 hPullVsDistFE = (TH2F *) file->Get("1D_"+name+"_hPullVsDistFE"); 00065 }
HRes1DHit::~HRes1DHit | ( | ) | [inline] |
Definition at line 68 of file Histograms.h.
00068 { 00069 // delete hDist; 00070 // delete hRes; 00071 // delete hResVsEta; 00072 // delete hResVsPhi; 00073 // delete hResVsPos; 00074 // delete hPull; 00075 }
void HRes1DHit::Fill | ( | float | distSimHit, | |
float | thetaSimHit, | |||
float | distFESimHit, | |||
float | distRecHit, | |||
float | etaSimHit, | |||
float | phiSimHit, | |||
float | errRecHit | |||
) | [inline] |
Definition at line 77 of file Histograms.h.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), hDist, hPull, hPullVsAngle, hPullVsDistFE, hPullVsPos, hRes, hResVsAngle, hResVsDistFE, hResVsEta, hResVsPhi, hResVsPos, and res.
Referenced by DTRecHitQuality::compute().
00083 { 00084 // Reso, pull 00085 hDist->Fill(distRecHit); 00086 float res = distRecHit-distSimHit; 00087 hRes->Fill(res); 00088 hResVsEta->Fill(etaSimHit,res); 00089 hResVsPhi->Fill(phiSimHit,res); 00090 hResVsPos->Fill(distSimHit,res); 00091 hResVsAngle->Fill(thetaSimHit,res); 00092 hResVsDistFE->Fill(distFESimHit,res); 00093 if(errRecHit!=0) { 00094 float pull=res/errRecHit; 00095 hPull->Fill(pull); 00096 hPullVsPos->Fill(distSimHit,pull); 00097 hPullVsAngle->Fill(thetaSimHit,pull); 00098 hPullVsDistFE->Fill(distFESimHit,pull); 00099 } 00100 else std::cout<<"Error: RecHit error = 0" << std::endl; 00101 }
void HRes1DHit::Write | ( | ) | [inline] |
Definition at line 103 of file Histograms.h.
References hDist, hPull, hPullVsAngle, hPullVsDistFE, hPullVsPos, hRes, hResVsAngle, hResVsDistFE, hResVsEta, hResVsPhi, and hResVsPos.
Referenced by DTRecHitQuality::endJob().
00103 { 00104 hDist->Write(); 00105 hRes->Write(); 00106 hResVsEta->Write(); 00107 hResVsPhi->Write(); 00108 hResVsPos->Write(); 00109 hResVsAngle->Write(); 00110 hResVsDistFE->Write(); 00111 hPull->Write(); 00112 hPullVsPos->Write(); 00113 hPullVsAngle->Write(); 00114 hPullVsDistFE->Write(); 00115 }
TH1F* HRes1DHit::hDist |
TH1F* HRes1DHit::hPull |
TH2F* HRes1DHit::hPullVsAngle |
TH2F* HRes1DHit::hPullVsDistFE |
TH2F* HRes1DHit::hPullVsPos |
TH1F* HRes1DHit::hRes |
TH2F* HRes1DHit::hResVsAngle |
TH2F* HRes1DHit::hResVsDistFE |
TH2F* HRes1DHit::hResVsEta |
TH2F* HRes1DHit::hResVsPhi |
TH2F* HRes1DHit::hResVsPos |
TString HRes1DHit::name |