Go to the documentation of this file. 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());
void setup(const edm::EventSetup &iSetup)
float getMinEnergyHCAL_(HcalDetId id) const
float minEnergyHEDefault_
constexpr Detector det() const
get the detector field from this detid
void addDetIds(const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, CollType &detIdsToStore) const
static edm::ParameterSetDescription makePSetDescription()
EGHcalRecHitSelector(const edm::ParameterSet &config, edm::ConsumesCollector)
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > towerMapToken_
const CaloClusterPtr & seed() const
seed BasicCluster
edm::ESHandle< CaloTowerConstituentsMap > towerMap_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
CaloTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
Log< level::Error, false > LogError
unsigned towerId(DetId const &)
static int calDIEta(int iEta1, int iEta2)
Abs< T >::type abs(const T &t)
static int calDIPhi(int iPhi1, int iPhi2)