1 #ifndef RecoEgamam_EgammaIsolationAlgos_EGHcalRecHitSelector_h 2 #define RecoEgamam_EgammaIsolationAlgos_EGHcalRecHitSelector_h 22 template<
typename CollType>
24 CollType& detIdsToStore)
const;
31 static int calDIPhi(
int iPhi1,
int iPhi2);
32 static int calDIEta(
int iEta1,
int iEta2);
45 template <
typename CollType>
48 CollType& detIdsToStore)
const 52 edm::LogError(
"EgammaIsoHcalDetIdCollectionProducerError") <<
"Somehow the supercluster has a seed which is not ECAL, something is badly wrong";
60 int seedHcalIEta =
towerId.ieta();
61 int seedHcalIPhi =
towerId.iphi();
63 for(
auto&
recHit : recHits){
static int calDIPhi(int iPhi1, int iPhi2)
edm::ESHandle< CaloTowerConstituentsMap > towerMap_
void setup(const edm::EventSetup &iSetup)
CaloTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
static int calDIEta(int iEta1, int iEta2)
float minEnergyHEDefault_
Abs< T >::type abs(const T &t)
static edm::ParameterSetDescription makePSetDescription()
EGHcalRecHitSelector(const edm::ParameterSet &config)
void addDetIds(const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, CollType &detIdsToStore) const
float getMinEnergyHCAL_(HcalDetId id) const
const CaloClusterPtr & seed() const
seed BasicCluster
constexpr Detector det() const
get the detector field from this detid