test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PFResolutionMapManager Class Reference

#include <PFResolutionMapManager.h>

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.

7  {
8  TFile f(mapfile);
9  TH2D *hSEtaC = (TH2D*)f.Get("Sigma_Eta_WithECorrection");
10  TH2D *hSEta = (TH2D*)f.Get("Sigma_Eta");
11  TH2D *hSPhiC = (TH2D*)f.Get("Sigma_Phi_WithECorrection");
12  TH2D *hSPhi = (TH2D*)f.Get("Sigma_Phi");
13 
14  M1 = PFResolutionMap(*hSEtaC);
15  M2 = PFResolutionMap(*hSEta);
16  M3 = PFResolutionMap(*hSPhiC);
17  M4 = PFResolutionMap(*hSPhi);
18 }
double f[11][100]
Resolution Map (resolution as a function of eta and E)

Member Function Documentation

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

Definition at line 20 of file PFResolutionMapManager.cc.

20  {
21  if(MapEta){
22  if(Corr) return M1;
23  else return M2;
24  }
25  else{
26  if(Corr) return M3;
27  else return M4;
28  }
29 }

Member Data Documentation

PFResolutionMap PFResolutionMapManager::M1
private

Definition at line 11 of file PFResolutionMapManager.h.

PFResolutionMap PFResolutionMapManager::M2
private

Definition at line 12 of file PFResolutionMapManager.h.

PFResolutionMap PFResolutionMapManager::M3
private

Definition at line 13 of file PFResolutionMapManager.h.

PFResolutionMap PFResolutionMapManager::M4
private

Definition at line 14 of file PFResolutionMapManager.h.