RecoEgamma
EgammaTools
interface
HGCalClusterTools.h
Go to the documentation of this file.
1
#ifndef RecoEgamma_EgammaTools_HGCalClusterTools_h
2
#define RecoEgamma_EgammaTools_HGCalClusterTools_h
3
4
#include "
DataFormats/CaloRecHit/interface/CaloClusterFwd.h
"
5
#include <vector>
6
7
class
HGCalClusterTools
{
8
public
:
9
enum class
EType
{
ET
,
ENERGY
};
10
11
static
float
energyInCone
(
const
float
eta
,
12
const
float
phi
,
13
const
std::vector<reco::CaloCluster>&
layerClusters
,
14
const
float
minDR
,
15
const
float
maxDR
,
16
const
float
minEt
,
17
const
float
minEnergy
,
18
const
std::vector<DetId::Detector>& subDets,
19
const
HGCalClusterTools::EType
& eType =
EType::ENERGY
);
20
21
static
float
hadEnergyInCone
(
const
float
eta
,
22
const
float
phi
,
23
const
std::vector<reco::CaloCluster>&
layerClusters
,
24
const
float
minDR
,
25
const
float
maxDR
,
26
const
float
minEt
,
27
const
float
minEnergy
,
28
const
HGCalClusterTools::EType
& eType =
EType::ENERGY
) {
29
return
energyInCone
(
30
eta
,
phi
,
layerClusters
,
minDR
,
maxDR
,
minEt
,
minEnergy
, {
DetId::HGCalHSi
,
DetId::HGCalHSc
}, eType);
31
}
32
static
float
emEnergyInCone
(
const
float
eta
,
33
const
float
phi
,
34
const
std::vector<reco::CaloCluster>&
layerClusters
,
35
const
float
minDR
,
36
const
float
maxDR
,
37
const
float
minEt
,
38
const
float
minEnergy
,
39
const
HGCalClusterTools::EType
& eType =
EType::ENERGY
) {
40
return
energyInCone
(
eta
,
phi
,
layerClusters
,
minDR
,
maxDR
,
minEt
,
minEnergy
, {
DetId::HGCalEE
}, eType);
41
}
42
};
43
44
#endif
particleFlowClusterECALTimeSelected_cfi.minEnergy
minEnergy
Definition:
particleFlowClusterECALTimeSelected_cfi.py:9
HGCalClusterTools::EType::ET
HGCalClusterTools::emEnergyInCone
static float emEnergyInCone(const float eta, const float phi, const std::vector< reco::CaloCluster > &layerClusters, const float minDR, const float maxDR, const float minEt, const float minEnergy, const HGCalClusterTools::EType &eType=EType::ENERGY)
Definition:
HGCalClusterTools.h:32
HGCalClusterTools::EType
EType
Definition:
HGCalClusterTools.h:9
DetId::HGCalHSi
Definition:
DetId.h:33
DetId::HGCalEE
Definition:
DetId.h:32
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
EgHLTOffEleSelection_cfi.minEt
minEt
Definition:
EgHLTOffEleSelection_cfi.py:10
CaloClusterFwd.h
hltEgammaHGCALIDVarsL1Seeded_cfi.layerClusters
layerClusters
Definition:
hltEgammaHGCALIDVarsL1Seeded_cfi.py:5
PDWG_EXOHSCP_cff.minDR
minDR
Definition:
PDWG_EXOHSCP_cff.py:109
HGCalClusterTools::energyInCone
static float energyInCone(const float eta, const float phi, const std::vector< reco::CaloCluster > &layerClusters, const float minDR, const float maxDR, const float minEt, const float minEnergy, const std::vector< DetId::Detector > &subDets, const HGCalClusterTools::EType &eType=EType::ENERGY)
Definition:
HGCalClusterTools.cc:7
hltEgammaEleL1TrkIsoL1Seeded_cfi.maxDR
maxDR
Definition:
hltEgammaEleL1TrkIsoL1Seeded_cfi.py:10
HGCalClusterTools::EType::ENERGY
DDAxes::phi
HGCalClusterTools::hadEnergyInCone
static float hadEnergyInCone(const float eta, const float phi, const std::vector< reco::CaloCluster > &layerClusters, const float minDR, const float maxDR, const float minEt, const float minEnergy, const HGCalClusterTools::EType &eType=EType::ENERGY)
Definition:
HGCalClusterTools.h:21
HGCalClusterTools
Definition:
HGCalClusterTools.h:7
DetId::HGCalHSc
Definition:
DetId.h:34
Generated for CMSSW Reference Manual by
1.8.16