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();
67 for (
auto& recHit : recHits) {
72 detIdsToStore.insert(detIdsToStore.end(), recHit.id().rawId());
static int calDIPhi(int iPhi1, int iPhi2)
edm::ESHandle< CaloTowerConstituentsMap > towerMap_
void setup(const edm::EventSetup &iSetup)
EGHcalRecHitSelector(const edm::ParameterSet &config, edm::ConsumesCollector)
Log< level::Error, false > LogError
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > towerMapToken_
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
static int calDIEta(int iEta1, int iEta2)
float minEnergyHEDefault_
Abs< T >::type abs(const T &t)
static edm::ParameterSetDescription makePSetDescription()
void addDetIds(const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, CollType &detIdsToStore) const
tuple config
parse the configuration file
float getMinEnergyHCAL_(HcalDetId id) const
const CaloClusterPtr & seed() const
seed BasicCluster
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
constexpr Detector det() const
get the detector field from this detid