#include <Validation/RecoMuon/src/Histograms.h>
Public Member Functions | |
void | Fill (double rp, double rpt, double reta, double rphi, double rcharge) |
void | Fill (double p, double pt, double eta, double phi, double rp, double rpt) |
void | Fill (double p, double pt, double eta, double phi, double rp, double rpt, double reta, double rphi, double rcharge) |
HResolution (std::string name, TFile *file) | |
HResolution (std::string dirName_, std::string name, std::string whereIs) | |
~HResolution () | |
Private Attributes | |
DQMStore * | dbe_ |
MonitorElement * | h2Eta |
MonitorElement * | h2EtaVsPhi |
MonitorElement * | h2EtaVsPt |
MonitorElement * | h2P |
MonitorElement * | h2Phi |
MonitorElement * | h2PhiVsEta |
MonitorElement * | h2PhiVsPt |
MonitorElement * | h2Pt |
MonitorElement * | h2PtVsEta |
MonitorElement * | h2PtVsPhi |
MonitorElement * | hCharge |
MonitorElement * | hEta |
MonitorElement * | hP |
MonitorElement * | hPhi |
MonitorElement * | hPt |
std::string | theName |
std::string | where |
Definition at line 164 of file Histograms.h.
HResolution::HResolution | ( | std::string | dirName_, | |
std::string | name, | |||
std::string | whereIs | |||
) | [inline] |
Definition at line 167 of file Histograms.h.
References DQMStore::book1D(), DQMStore::book2D(), DQMStore::cd(), dbe_, test_cfg::dirName, eta, h2Eta, h2EtaVsPhi, h2EtaVsPt, h2P, h2Phi, h2PhiVsEta, h2PhiVsPt, h2Pt, h2PtVsEta, h2PtVsPhi, hCharge, hEta, hP, hPhi, hPt, phi, Geom::pi(), DQMStore::setCurrentFolder(), theName, and where.
00167 :theName(name.c_str()),where(whereIs.c_str()){ 00168 00169 dbe_ = edm::Service<DQMStore>().operator->(); 00170 dbe_->cd(); 00171 std::string dirName=dirName_; 00172 //dirName+="/"; 00173 //dirName+=name.c_str(); 00174 00175 dbe_->setCurrentFolder(dirName.c_str()); 00176 00177 double eta = 15.; int neta = 800; 00178 double phi = 12.; int nphi = 400; 00179 double pt = 60.; int npt = 2000; 00180 00181 hEta = dbe_->book1D(theName+"_Eta_"+where,"#eta "+theName,neta,-eta,eta); // 400 00182 hPhi = dbe_->book1D(theName+"_Phi_"+where,"#phi "+theName,nphi,-phi,phi); // 100 00183 00184 hP = dbe_->book1D(theName+"_P_"+where,"P "+theName,400,-4,4); // 200 00185 hPt = dbe_->book1D(theName+"_Pt_"+where,"P_{t} "+theName,npt,-pt,pt); // 200 00186 00187 hCharge = dbe_->book1D(theName+"_charge_"+where,"Charge "+theName,4,-2.,2.); 00188 00189 00190 h2Eta = dbe_->book2D(theName+"_Eta_vs_Eta"+where,"#eta "+theName+" as a function of #eta",200,-2.5,2.5,neta,-eta,eta); 00191 h2Phi = dbe_->book2D(theName+"_Phi_vs_Phi"+where,"#phi "+theName+" as a function of #phi",100,-Geom::pi(),Geom::pi(),nphi,-phi,phi); 00192 00193 h2P = dbe_->book2D(theName+"_P_vs_P"+where,"P "+theName+" as a function of P",1000,0,2000,400,-4,4); 00194 h2Pt = dbe_->book2D(theName+"_Pt_vs_Pt"+where,"P_{t} "+theName+" as a function of P_{t}",1000,0,2000,npt,-pt,pt); 00195 00196 h2PtVsEta = dbe_->book2D(theName+"_Pt_vs_Eta"+where,"P_{t} "+theName+" as a function of #eta",200,-2.5,2.5,npt,-pt,pt); 00197 h2PtVsPhi = dbe_->book2D(theName+"_Pt_vs_Phi"+where,"P_{t} "+theName+" as a function of #phi",100,-Geom::pi(),Geom::pi(),npt,-pt,pt); 00198 00199 h2EtaVsPt = dbe_->book2D(theName+"_Eta_vs_Pt"+where,"#eta "+theName+" as a function of P_{t}",1000,0,2000,neta,-eta,eta); 00200 h2EtaVsPhi = dbe_->book2D(theName+"_Eta_vs_Phi"+where,"#eta "+theName+" as a function of #phi",100,-Geom::pi(),Geom::pi(),neta,-eta,eta); 00201 00202 h2PhiVsPt = dbe_->book2D(theName+"_Phi_vs_Pt"+where,"#phi "+theName+" as a function of P_{t}",1000,0,2000,nphi,-phi,phi); 00203 h2PhiVsEta = dbe_->book2D(theName+"_Phi_vs_Eta"+where,"#phi "+theName+" as a function of #eta",200,-2.5,2.5,nphi,-phi,phi); 00204 }
HResolution::HResolution | ( | std::string | name, | |
TFile * | file | |||
) | [inline] |
HResolution::~HResolution | ( | ) | [inline] |
void HResolution::Fill | ( | double | rp, | |
double | rpt, | |||
double | reta, | |||
double | rphi, | |||
double | rcharge | |||
) | [inline] |
void HResolution::Fill | ( | double | p, | |
double | pt, | |||
double | eta, | |||
double | phi, | |||
double | rp, | |||
double | rpt | |||
) | [inline] |
Definition at line 236 of file Histograms.h.
References MonitorElement::Fill(), h2P, h2Pt, h2PtVsEta, h2PtVsPhi, hP, and hPt.
00237 { 00238 00239 hP->Fill(rp); 00240 hPt->Fill(rpt); 00241 00242 h2P->Fill(p,rp); 00243 // h2PVsEta->Fill(eta,rp); 00244 // h2PVsPhi->Fill(phi,rp); 00245 00246 h2Pt->Fill(pt,rpt); 00247 h2PtVsEta->Fill(eta,rpt); 00248 h2PtVsPhi->Fill(phi,rpt); 00249 }
void HResolution::Fill | ( | double | p, | |
double | pt, | |||
double | eta, | |||
double | phi, | |||
double | rp, | |||
double | rpt, | |||
double | reta, | |||
double | rphi, | |||
double | rcharge | |||
) | [inline] |
Definition at line 213 of file Histograms.h.
References MonitorElement::Fill(), h2Eta, h2EtaVsPhi, h2EtaVsPt, h2P, h2Phi, h2PhiVsEta, h2PhiVsPt, h2Pt, h2PtVsEta, and h2PtVsPhi.
Referenced by HTrack::computePull(), HTrack::computeResolution(), and HTrack::computeTDRResolution().
00214 { 00215 00216 Fill(rp, rpt, reta, rphi, rcharge); 00217 00218 00219 h2Eta->Fill(eta,reta); 00220 h2Phi->Fill(phi,rphi); 00221 00222 h2P->Fill(p,rp); 00223 h2Pt->Fill(pt,rpt); 00224 00225 h2PtVsEta->Fill(eta,rpt); 00226 h2PtVsPhi->Fill(phi,rpt); 00227 00228 h2EtaVsPt ->Fill(pt,reta); 00229 h2EtaVsPhi->Fill(phi,reta); 00230 00231 h2PhiVsPt ->Fill(pt,rphi); 00232 h2PhiVsEta->Fill(eta,rphi); 00233 }
DQMStore* HResolution::dbe_ [private] |
MonitorElement* HResolution::h2Eta [private] |
MonitorElement* HResolution::h2EtaVsPhi [private] |
MonitorElement* HResolution::h2EtaVsPt [private] |
MonitorElement* HResolution::h2P [private] |
MonitorElement* HResolution::h2Phi [private] |
MonitorElement* HResolution::h2PhiVsEta [private] |
MonitorElement* HResolution::h2PhiVsPt [private] |
MonitorElement* HResolution::h2Pt [private] |
MonitorElement* HResolution::h2PtVsEta [private] |
MonitorElement* HResolution::h2PtVsPhi [private] |
MonitorElement* HResolution::hCharge [private] |
MonitorElement* HResolution::hEta [private] |
MonitorElement* HResolution::hP [private] |
MonitorElement* HResolution::hPhi [private] |
MonitorElement* HResolution::hPt [private] |
std::string HResolution::theName [private] |
std::string HResolution::where [private] |