CMS 3D CMS Logo

HGCalClusterTools.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaTools_HGCalClusterTools_h
2 #define RecoEgamma_EgammaTools_HGCalClusterTools_h
3 
5 #include <vector>
6 
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,
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(
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) {
41  }
42 };
43 
44 #endif
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)
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)
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)