#include <PFEnergyResolution.h>
Public Member Functions | |
double | getEnergyResolutionEm (double CorrectedEnergy, double eta) const |
double | getEnergyResolutionHad (double energyHCAL, double eta, double phi) const |
PFEnergyResolution () | |
~PFEnergyResolution () |
Definition at line 31 of file PFEnergyResolution.h.
PFEnergyResolution::PFEnergyResolution | ( | ) |
Definition at line 10 of file PFEnergyResolution.cc.
{
//--- nothing to be done yet
}
PFEnergyResolution::~PFEnergyResolution | ( | ) |
Definition at line 15 of file PFEnergyResolution.cc.
{
//--- nothing to be done yet
}
double PFEnergyResolution::getEnergyResolutionEm | ( | double | CorrectedEnergy, |
double | eta | ||
) | const |
Definition at line 21 of file PFEnergyResolution.cc.
References funct::C, MultiGaussianStateTransform::N, and query::result.
Referenced by PFElectronAlgo::SetCandidates().
{ //The parameters S,N,C has been determined with the Full Sim on CMSSW_2_1_0_pre4. //The resolution must be a function of the corrected energy available in PFEnergyCalibration //Jonathan Biteau July 2008 double C; double S; double N; if(TMath::Abs(eta)<1.48){C=0.35/100; S=5.51/100; N=98./1000.;} else{C=0; S=12.8/100; N=440./1000.;} double result = TMath::Sqrt(C*C*CorrectedEnergy*CorrectedEnergy + S*S*CorrectedEnergy + N*N); return result; }
double PFEnergyResolution::getEnergyResolutionHad | ( | double | energyHCAL, |
double | eta, | ||
double | phi | ||
) | const |
Definition at line 37 of file PFEnergyResolution.cc.
References mathSSE::sqrt().
{ //--- estimate **relative** resolution of energy measurement (sigmaE/E) // for hadrons in depositing energy in HCAL // (eta and phi dependence not implemented yet) return 1.49356/sqrt(energyHCAL) + 6.62527e-03*sqrt(energyHCAL) - 6.33966e-02; }