CMS 3D CMS Logo

Public Member Functions | Private Attributes

PFResolutionMapManager Class Reference

#include <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.

                                                                  {
  TFile f(mapfile);
  TH2D *hSEtaC = (TH2D*)f.Get("Sigma_Eta_WithECorrection");
  TH2D *hSEta = (TH2D*)f.Get("Sigma_Eta");
  TH2D *hSPhiC = (TH2D*)f.Get("Sigma_Phi_WithECorrection");
  TH2D *hSPhi = (TH2D*)f.Get("Sigma_Phi");

  M1 = PFResolutionMap(*hSEtaC);
  M2 = PFResolutionMap(*hSEta);
  M3 = PFResolutionMap(*hSPhiC);
  M4 = PFResolutionMap(*hSPhi);
}

Member Function Documentation

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

Definition at line 20 of file PFResolutionMapManager.cc.

                                                                                    {
  if(MapEta){
    if(Corr) return M1;
    else return M2;
  }
  else{
    if(Corr) return M3;
    else return M4;
  }
}

Member Data Documentation

Definition at line 11 of file PFResolutionMapManager.h.

Definition at line 12 of file PFResolutionMapManager.h.

Definition at line 13 of file PFResolutionMapManager.h.

Definition at line 14 of file PFResolutionMapManager.h.