Go to the documentation of this file.
15 #include <vdt/vdtMath.h>
71 showerShapes.
e2x5Left = EcalClusterTools::e2x5Left(seedClus, ecalRecHits, caloTopo);
72 showerShapes.e2x5Right = EcalClusterTools::e2x5Right(seedClus, ecalRecHits, caloTopo);
73 showerShapes.e2x5Top = EcalClusterTools::e2x5Top(seedClus, ecalRecHits, caloTopo);
74 showerShapes.e2x5Bottom = EcalClusterTools::e2x5Bottom(seedClus, ecalRecHits, caloTopo);
97 bool seedSaturated =
false;
98 const auto& hitsAndFractions = superClus.
seed()->hitsAndFractions();
99 for (
const auto& hitFractionPair : hitsAndFractions) {
100 auto ecalRecHitIt = ecalRecHits.find(hitFractionPair.first);
101 if (ecalRecHitIt != ecalRecHits.end() && ecalRecHitIt->checkFlag(EcalRecHit::Flags::kSaturated)) {
103 if (hitFractionPair.first == superClus.
seed()->seed())
104 seedSaturated =
true;
107 return {nrSatCrys, seedSaturated};
T const * product() const
std::pair< int, bool > getSaturationInfo(const reco::SuperCluster &superClus) const
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void setSaturationInfo(const SaturationInfo &s)
EG8XObjectUpdateModifier(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
Analysis-level Photon class.
~EG8XObjectUpdateModifier() override
void setEvent(const edm::Event &) final
void full5x5_setShowerShape(const ShowerShape &s)
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEBToken_
const ShowerShape & showerShape() const
void setShowerShape(const ShowerShape &s)
const ShowerShape & full5x5_showerShape() const
void setEventContent(const edm::EventSetup &) final
#define DEFINE_EDM_PLUGIN(factory, type, name)
void modifyObject(pat::Electron &ele) const final
const CaloClusterPtr & seed() const
seed BasicCluster
edm::ESHandle< CaloTopology > caloTopoHandle_
void modifyObject(reco::GsfElectron &ele) const final
edm::Handle< EcalRecHitCollection > ecalRecHitsEEHandle_
void modifyObject(pat::Photon &pho) const final
SuperClusterRef superCluster() const override
reference to a SuperCluster
void setSaturationInfo(const SaturationInfo &s)
Analysis-level electron class.
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEEToken_
edm::Handle< EcalRecHitCollection > ecalRecHitsEBHandle_