CMS 3D CMS Logo

List of all members | Public Member Functions
PFEnergyResolution Class Reference

#include <PFEnergyResolution.h>

Public Member Functions

double getEnergyResolutionEm (double CorrectedEnergy, double eta) const
 
double getEnergyResolutionHad (double energyHCAL, double eta, double phi) const
 
 PFEnergyResolution ()
 
 ~PFEnergyResolution ()
 

Detailed Description

Definition at line 30 of file PFEnergyResolution.h.

Constructor & Destructor Documentation

PFEnergyResolution::PFEnergyResolution ( )

Definition at line 10 of file PFEnergyResolution.cc.

10  {
11  //--- nothing to be done yet
12 }
PFEnergyResolution::~PFEnergyResolution ( )

Definition at line 14 of file PFEnergyResolution.cc.

14  {
15  //--- nothing to be done yet
16 }

Member Function Documentation

double PFEnergyResolution::getEnergyResolutionEm ( double  CorrectedEnergy,
double  eta 
) const

Definition at line 18 of file PFEnergyResolution.cc.

References Abs(), gen::C, N, mps_fire::result, and S().

Referenced by metsig::SignAlgoResolutions::ElectronPtResolution().

18  {
19  //The parameters S,N,C has been determined with the Full Sim on CMSSW_2_1_0_pre4.
20  //The resolution must be a function of the corrected energy available in PFEnergyCalibration
21  //Jonathan Biteau July 2008
22 
23  double C;
24  double S;
25  double N;
26  if (TMath::Abs(eta) < 1.48) {
27  C = 0.35 / 100;
28  S = 5.51 / 100;
29  N = 98. / 1000.;
30  } else {
31  C = 0;
32  S = 12.8 / 100;
33  N = 440. / 1000.;
34  }
35  double result = TMath::Sqrt(C * C * CorrectedEnergy * CorrectedEnergy + S * S * CorrectedEnergy + N * N);
36  return result;
37 }
T Abs(T a)
Definition: MathUtil.h:49
#define N
Definition: blowfish.cc:9
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:97
double PFEnergyResolution::getEnergyResolutionHad ( double  energyHCAL,
double  eta,
double  phi 
) const

Definition at line 39 of file PFEnergyResolution.cc.

References mathSSE::sqrt().

39  {
40  //--- estimate **relative** resolution of energy measurement (sigmaE/E)
41  // for hadrons in depositing energy in HCAL
42  // (eta and phi dependence not implemented yet)
43 
44  return 1.49356 / sqrt(energyHCAL) + 6.62527e-03 * sqrt(energyHCAL) - 6.33966e-02;
45 }
T sqrt(T t)
Definition: SSEVec.h:19
double energyHCAL(std::vector< DetId > &vdets, edm::Handle< T > &hits, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)