15 #include <vdt/vdtMath.h> 48 caloTopoToken_{
cc.esConsumes()},
49 ecalRecHitsEBToken_(
cc.consumes(conf.getParameter<
edm::InputTag>(
"ecalRecHitsEB"))),
50 ecalRecHitsEEToken_(
cc.consumes(conf.getParameter<
edm::InputTag>(
"ecalRecHitsEE"))) {}
99 bool seedSaturated =
false;
100 const auto& hitsAndFractions = superClus.
seed()->hitsAndFractions();
101 for (
const auto& hitFractionPair : hitsAndFractions) {
102 auto ecalRecHitIt = ecalRecHits.find(hitFractionPair.first);
103 if (ecalRecHitIt != ecalRecHits.end() && ecalRecHitIt->checkFlag(EcalRecHit::Flags::kSaturated)) {
105 if (hitFractionPair.first == superClus.
seed()->seed())
106 seedSaturated =
true;
109 return {nrSatCrys, seedSaturated};
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEBToken_
Analysis-level Photon class.
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
uint32_t cc[maxCellsPerHit]
void setSaturationInfo(const SaturationInfo &s)
void setShowerShape(const ShowerShape &s)
void modifyObject(pat::Electron &ele) const final
void setSaturationInfo(const SaturationInfo &s)
~EG8XObjectUpdateModifier() override
void modifyObject(pat::Photon &pho) const final
EcalRecHitCollection const * ecalRecHitsEE_
const ShowerShape & full5x5_showerShape() const
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
EG8XObjectUpdateModifier(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
EcalRecHitCollection const * ecalRecHitsEB_
void modifyObject(reco::GsfElectron &ele) const final
std::pair< int, bool > getSaturationInfo(const reco::SuperCluster &superClus) const
Analysis-level electron class.
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopoToken_
const ShowerShape & showerShape() const
const CaloClusterPtr & seed() const
seed BasicCluster
void setEventContent(const edm::EventSetup &) final
#define DEFINE_EDM_PLUGIN(factory, type, name)
void full5x5_setShowerShape(const ShowerShape &s)
void setEvent(const edm::Event &) final
SuperClusterRef superCluster() const override
reference to a SuperCluster
CaloTopology const * caloTopo_
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEEToken_