src
RecoEcal
EgammaCoreTools
interface
CalibratedPFCluster.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaCoreTools_CalibratedPFCluster_h
2
#define RecoEcal_EgammaCoreTools_CalibratedPFCluster_h
3
4
#include "
DataFormats/ParticleFlowReco/interface/PFCluster.h
"
5
#include "
DataFormats/ParticleFlowReco/interface/PFClusterFwd.h
"
6
#include "
DataFormats/CaloRecHit/interface/CaloCluster.h
"
7
8
// simple class for associating calibrated energies
9
class
CalibratedPFCluster
{
10
public
:
11
CalibratedPFCluster
(
const
edm::Ptr<reco::PFCluster>
&
p
) :
ptr_
(
p
) {}
12
13
double
energy
()
const
{
return
ptr_
->
correctedEnergy
(); }
14
double
energy_nocalib
()
const
{
return
ptr_
->
energy
(); }
15
double
eta
()
const
{
return
ptr_
->
positionREP
().eta(); }
16
double
phi
()
const
{
return
ptr_
->
positionREP
().phi(); }
17
18
edm::Ptr<reco::PFCluster>
ptr
()
const
{
return
ptr_
; }
19
20
private
:
21
edm::Ptr<reco::PFCluster>
ptr_
;
22
};
23
24
#endif
CalibratedPFCluster::CalibratedPFCluster
CalibratedPFCluster(const edm::Ptr< reco::PFCluster > &p)
Definition:
CalibratedPFCluster.h:11
PFClusterFwd.h
PFCluster.h
CalibratedPFCluster::ptr_
edm::Ptr< reco::PFCluster > ptr_
Definition:
CalibratedPFCluster.h:21
CalibratedPFCluster::energy_nocalib
double energy_nocalib() const
Definition:
CalibratedPFCluster.h:14
reco::PFCluster::positionREP
const REPPoint & positionREP() const
cluster position: rho, eta, phi
Definition:
PFCluster.h:92
reco::CaloCluster::correctedEnergy
double correctedEnergy() const
Definition:
CaloCluster.h:150
CalibratedPFCluster::energy
double energy() const
Definition:
CalibratedPFCluster.h:13
CaloCluster.h
CalibratedPFCluster::eta
double eta() const
Definition:
CalibratedPFCluster.h:15
reco::PFCluster::energy
double energy() const
cluster energy
Definition:
PFCluster.h:74
edm::Ptr< reco::PFCluster >
CalibratedPFCluster::phi
double phi() const
Definition:
CalibratedPFCluster.h:16
CalibratedPFCluster
Definition:
CalibratedPFCluster.h:9
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
CalibratedPFCluster::ptr
edm::Ptr< reco::PFCluster > ptr() const
Definition:
CalibratedPFCluster.h:18
Generated for CMSSW Reference Manual by
1.8.14