CMS 3D CMS Logo

HResolution Class Reference

#include <Validation/RecoMuon/src/Histograms.h>

List of all members.

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

DQMStoredbe_
MonitorElementh2Eta
MonitorElementh2EtaVsPhi
MonitorElementh2EtaVsPt
MonitorElementh2P
MonitorElementh2Phi
MonitorElementh2PhiVsEta
MonitorElementh2PhiVsPt
MonitorElementh2Pt
MonitorElementh2PtVsEta
MonitorElementh2PtVsPhi
MonitorElementhCharge
MonitorElementhEta
MonitorElementhP
MonitorElementhPhi
MonitorElementhPt
std::string theName
std::string where


Detailed Description

Definition at line 164 of file Histograms.h.


Constructor & Destructor Documentation

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]

Definition at line 206 of file Histograms.h.

00206                                           :theName(name.c_str()){ 
00207     //    dynamic_cast<TH1F*>( file->Get(theName+"") );
00208   }

HResolution::~HResolution (  )  [inline]

Definition at line 210 of file Histograms.h.

00210 {}


Member Function Documentation

void HResolution::Fill ( double  rp,
double  rpt,
double  reta,
double  rphi,
double  rcharge 
) [inline]

Definition at line 251 of file Histograms.h.

References MonitorElement::Fill(), hCharge, hEta, hP, hPhi, and hPt.

00252                                                      {
00253     
00254     hEta->Fill(reta);
00255     hPhi->Fill(rphi);
00256     
00257     hP->Fill(rp); 
00258     hPt->Fill(rpt);
00259     
00260     hCharge->Fill(rcharge);
00261   }

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   }


Member Data Documentation

DQMStore* HResolution::dbe_ [private]

Definition at line 266 of file Histograms.h.

Referenced by HResolution().

MonitorElement* HResolution::h2Eta [private]

Definition at line 279 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2EtaVsPhi [private]

Definition at line 289 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2EtaVsPt [private]

Definition at line 288 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2P [private]

Definition at line 282 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2Phi [private]

Definition at line 280 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2PhiVsEta [private]

Definition at line 292 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2PhiVsPt [private]

Definition at line 291 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2Pt [private]

Definition at line 283 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2PtVsEta [private]

Definition at line 285 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::h2PtVsPhi [private]

Definition at line 286 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::hCharge [private]

Definition at line 277 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::hEta [private]

Definition at line 271 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::hP [private]

Definition at line 274 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::hPhi [private]

Definition at line 272 of file Histograms.h.

Referenced by Fill(), and HResolution().

MonitorElement* HResolution::hPt [private]

Definition at line 275 of file Histograms.h.

Referenced by Fill(), and HResolution().

std::string HResolution::theName [private]

Definition at line 268 of file Histograms.h.

Referenced by HResolution().

std::string HResolution::where [private]

Definition at line 269 of file Histograms.h.

Referenced by HResolution().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:24:48 2009 for CMSSW by  doxygen 1.5.4