File indexing completed on 2024-04-06 12:24:54
0001 #ifndef EgammaIsolationProducers_HcalPFClusterIsolation_h
0002 #define EgammaIsolationProducers_HcalPFClusterIsolation_h
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
0012 #include "DataFormats/ParticleFlowReco/interface/PFClusterFwd.h"
0013
0014 #include <vector>
0015
0016 template <typename T1>
0017 class HcalPFClusterIsolation {
0018 public:
0019 typedef std::vector<T1> T1Collection;
0020 typedef edm::Ref<T1Collection> T1Ref;
0021
0022 HcalPFClusterIsolation(double drMax,
0023 double drVetoBarrel,
0024 double drVetoEndcap,
0025 double etaStripBarrel,
0026 double etaStripEndcap,
0027 double energyBarrel,
0028 double energyEndcap,
0029 bool useEt);
0030
0031 ~HcalPFClusterIsolation();
0032 double getSum(const T1Ref candRef, const std::vector<edm::Handle<reco::PFClusterCollection>>& clusterHandles);
0033 double getSum(const T1 cand, const std::vector<edm::Handle<reco::PFClusterCollection>>& clusterHandles);
0034
0035 private:
0036 const double drMax_;
0037 const double drVetoBarrel_;
0038 const double drVetoEndcap_;
0039 const double etaStripBarrel_;
0040 const double etaStripEndcap_;
0041 const double energyBarrel_;
0042 const double energyEndcap_;
0043 const bool useEt_;
0044 };
0045
0046 #endif