CMS 3D CMS Logo

PFResolutionMapManager Class Reference

#include <RecoParticleFlow/PFClusterTools/interface/PFResolutionMapManager.h>

List of all members.

Public Member Functions

const PFResolutionMapGetResolutionMap (bool MapEta, bool Corr)
 PFResolutionMapManager (const char *name)

Private Attributes

PFResolutionMap M1
PFResolutionMap M2
PFResolutionMap M3
PFResolutionMap M4


Detailed Description

Definition at line 5 of file PFResolutionMapManager.h.


Constructor & Destructor Documentation

PFResolutionMapManager::PFResolutionMapManager ( const char *  name  ) 

Definition at line 7 of file PFResolutionMapManager.cc.

References f, M1, M2, M3, and M4.

00007                                                                   {
00008   TFile f(mapfile);
00009   TH2D *hSEtaC = (TH2D*)f.Get("Sigma_Eta_WithECorrection");
00010   TH2D *hSEta = (TH2D*)f.Get("Sigma_Eta");
00011   TH2D *hSPhiC = (TH2D*)f.Get("Sigma_Phi_WithECorrection");
00012   TH2D *hSPhi = (TH2D*)f.Get("Sigma_Phi");
00013 
00014   M1 = PFResolutionMap(*hSEtaC);
00015   M2 = PFResolutionMap(*hSEta);
00016   M3 = PFResolutionMap(*hSPhiC);
00017   M4 = PFResolutionMap(*hSPhi);
00018 }


Member Function Documentation

const PFResolutionMap & PFResolutionMapManager::GetResolutionMap ( bool  MapEta,
bool  Corr 
)

Definition at line 20 of file PFResolutionMapManager.cc.

References M1, M2, M3, and M4.

00020                                                                                     {
00021   if(MapEta){
00022     if(Corr) return M1;
00023     else return M2;
00024   }
00025   else{
00026     if(Corr) return M3;
00027     else return M4;
00028   }
00029 }


Member Data Documentation

PFResolutionMap PFResolutionMapManager::M1 [private]

Definition at line 11 of file PFResolutionMapManager.h.

Referenced by GetResolutionMap(), and PFResolutionMapManager().

PFResolutionMap PFResolutionMapManager::M2 [private]

Definition at line 12 of file PFResolutionMapManager.h.

Referenced by GetResolutionMap(), and PFResolutionMapManager().

PFResolutionMap PFResolutionMapManager::M3 [private]

Definition at line 13 of file PFResolutionMapManager.h.

Referenced by GetResolutionMap(), and PFResolutionMapManager().

PFResolutionMap PFResolutionMapManager::M4 [private]

Definition at line 14 of file PFResolutionMapManager.h.

Referenced by GetResolutionMap(), and PFResolutionMapManager().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:29:46 2009 for CMSSW by  doxygen 1.5.4