1 #ifndef RecoEgamam_EgammaIsolationAlgos_EGHcalRecHitSelector_h 2 #define RecoEgamam_EgammaIsolationAlgos_EGHcalRecHitSelector_h 22 template <
typename CollType>
25 CollType& detIdsToStore)
const;
32 static int calDIPhi(
int iPhi1,
int iPhi2);
33 static int calDIEta(
int iEta1,
int iEta2);
45 template <
typename CollType>
48 CollType& detIdsToStore)
const {
52 <<
"Somehow the supercluster has a seed which is not ECAL, something is badly wrong";
61 int seedHcalIEta =
towerId.ieta();
62 int seedHcalIPhi =
towerId.iphi();
64 for (
auto&
recHit : recHits) {
69 detIdsToStore.insert(detIdsToStore.end(),
recHit.id().rawId());
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