15 #include <vdt/vdtMath.h> 49 ecalRecHitsEBToken_(cc.consumes(conf.getParameter<
edm::InputTag>(
"ecalRecHitsEB"))),
50 ecalRecHitsEEToken_(cc.consumes(conf.getParameter<
edm::InputTag>(
"ecalRecHitsEE"))) {}
73 showerShapes.
e2x5Left = EcalClusterTools::e2x5Left(seedClus, ecalRecHits,
caloTopo_);
74 showerShapes.e2x5Right = EcalClusterTools::e2x5Right(seedClus, ecalRecHits,
caloTopo_);
75 showerShapes.e2x5Top = EcalClusterTools::e2x5Top(seedClus, ecalRecHits,
caloTopo_);
76 showerShapes.e2x5Bottom = EcalClusterTools::e2x5Bottom(seedClus, ecalRecHits,
caloTopo_);
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.
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)
bool getData(T &iHolder) const
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_