Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoParticleFlow
PFClusterTools
src
PFEnergyResolution.cc
Go to the documentation of this file.
1
#include "
RecoParticleFlow/PFClusterTools/interface/PFEnergyResolution.h
"
2
#include <TMath.h>
3
#include <
math.h
>
4
/*
5
PFEnergyResolution::PFEnergyResolution(const edm::ParameterSet& parameters)
6
{
7
//--- nothing to be done yet
8
}
9
*/
10
PFEnergyResolution::PFEnergyResolution
()
11
{
12
//--- nothing to be done yet
13
}
14
15
PFEnergyResolution::~PFEnergyResolution
()
16
{
17
//--- nothing to be done yet
18
}
19
20
21
double
PFEnergyResolution::getEnergyResolutionEm
(
double
CorrectedEnergy,
double
eta
)
const
{
22
23
//The parameters S,N,C has been determined with the Full Sim on CMSSW_2_1_0_pre4.
24
//The resolution must be a function of the corrected energy available in PFEnergyCalibration
25
//Jonathan Biteau July 2008
26
27
double
C
;
28
double
S;
29
double
N
;
30
if
(TMath::Abs(eta)<1.48){C=0.35/100; S=5.51/100; N=98/1000;}
31
else
{C=0; S=12.8/100; N=440/1000;}
32
double
result
= TMath::Sqrt(C*C*CorrectedEnergy*CorrectedEnergy + S*S*CorrectedEnergy + N*N);
33
return
result
;
34
}
35
36
37
double
PFEnergyResolution::getEnergyResolutionHad
(
double
energyHCAL
,
double
eta
,
double
phi
)
const
38
{
39
//--- estimate **relative** resolution of energy measurement (sigmaE/E)
40
// for hadrons in depositing energy in HCAL
41
// (eta and phi dependence not implemented yet)
42
43
return
1.49356/
sqrt
(energyHCAL) + 6.62527e-03*
sqrt
(energyHCAL) - 6.33966e-02;
44
}
45
/*
46
double PFEnergyResolution::getEnergyResolutionHad(double energyECAL, double energyHCAL, double eta, double phi) const
47
{
48
//--- estimate **relative** resolution of energy measurement (sigmaE/E)
49
// for hadrons depositing energy in ECAL and HCAL
50
// (currently, the resolution function for hadrons
51
// is assumed to be the same in ECAL and HCAL)
52
53
return getEnergyResolutionHad(energyECAL + energyHCAL, theta, phi);
54
}
55
*/
spr::energyHCAL
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, bool debug=false)
math.h
PFEnergyResolution.h
PFEnergyResolution::getEnergyResolutionHad
double getEnergyResolutionHad(double energyHCAL, double eta, double phi) const
Definition:
PFEnergyResolution.cc:37
funct::C
C
Definition:
Factorize.h:141
eta
T eta() const
Definition:
Basic3DVectorLD.h:168
MultiGaussianStateTransform::N
Definition:
MultiGaussianStateTransform.h:19
PFEnergyResolution::PFEnergyResolution
PFEnergyResolution()
Definition:
PFEnergyResolution.cc:10
PFEnergyResolution::~PFEnergyResolution
~PFEnergyResolution()
Definition:
PFEnergyResolution.cc:15
PFEnergyResolution::getEnergyResolutionEm
double getEnergyResolutionEm(double CorrectedEnergy, double eta) const
Definition:
PFEnergyResolution.cc:21
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:28
query.result
tuple result
Definition:
query.py:137
phi
Definition:
DDAxes.h:10
Generated for CMSSW Reference Manual by
1.8.5