1 #ifndef RecoEgamam_EgammaIsolationAlgos_EGHcalRecHitSelector_h 2 #define RecoEgamam_EgammaIsolationAlgos_EGHcalRecHitSelector_h 24 template <
typename CollType>
27 CollType& detIdsToStore)
const;
34 static int calDIPhi(
int iPhi1,
int iPhi2);
35 static int calDIEta(
int iEta1,
int iEta2);
48 template <
typename CollType>
51 CollType& detIdsToStore)
const {
55 <<
"Somehow the supercluster has a seed which is not ECAL, something is badly wrong";
64 int seedHcalIEta =
towerId.ieta();
65 int seedHcalIPhi =
towerId.iphi();
72 detIdsToStore.insert(detIdsToStore.end(),
recHit.id().rawId());
static int calDIPhi(int iPhi1, int iPhi2)
edm::ESHandle< CaloTowerConstituentsMap > towerMap_
CaloTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
void setup(const edm::EventSetup &iSetup)
EGHcalRecHitSelector(const edm::ParameterSet &config, edm::ConsumesCollector)
Log< level::Error, false > LogError
float getMinEnergyHCAL_(HcalDetId id) const
constexpr Detector det() const
get the detector field from this detid
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > towerMapToken_
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
static int calDIEta(int iEta1, int iEta2)
void addDetIds(const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, CollType &detIdsToStore) const
float minEnergyHEDefault_
Abs< T >::type abs(const T &t)
static edm::ParameterSetDescription makePSetDescription()
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const CaloClusterPtr & seed() const
seed BasicCluster