15 #include <vdt/vdtMath.h> 90 showerShapes.
e2x5Left = EcalClusterTools::e2x5Left (seedClus,ecalRecHits,caloTopo);
91 showerShapes.e2x5Right = EcalClusterTools::e2x5Right (seedClus,ecalRecHits,caloTopo);
92 showerShapes.e2x5Top = EcalClusterTools::e2x5Top (seedClus,ecalRecHits,caloTopo);
93 showerShapes.e2x5Bottom = EcalClusterTools::e2x5Bottom(seedClus,ecalRecHits,caloTopo);
119 bool seedSaturated =
false;
120 const auto& hitsAndFractions = superClus.
seed()->hitsAndFractions();
121 for(
const auto& hitFractionPair : hitsAndFractions) {
122 auto ecalRecHitIt = ecalRecHits.find(hitFractionPair.first);
123 if(ecalRecHitIt != ecalRecHits.end() &&
124 ecalRecHitIt->checkFlag(EcalRecHit::Flags::kSaturated)){
126 if(hitFractionPair.first == superClus.
seed()->seed()) seedSaturated =
true;
129 return {nrSatCrys,seedSaturated};
134 "EG8XObjectUpdateModifier");
const ShowerShape & showerShape() const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEBToken_
Analysis-level Photon class.
EG8XObjectUpdateModifier(const edm::ParameterSet &conf)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag ecalRecHitsEBTag_
void setSaturationInfo(const SaturationInfo &s)
void setShowerShape(const ShowerShape &s)
void setSaturationInfo(const SaturationInfo &s)
~EG8XObjectUpdateModifier() override
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void modifyObject(reco::GsfElectron &ele) const final
edm::Handle< EcalRecHitCollection > ecalRecHitsEBHandle_
void modifyObject(pat::Electron &ele) const final
edm::ESHandle< CaloTopology > caloTopoHandle_
std::pair< int, bool > getSaturationInfo(const reco::SuperCluster &superClus) const
edm::Handle< EcalRecHitCollection > ecalRecHitsEEHandle_
edm::InputTag ecalRecHitsEETag_
Analysis-level electron class.
const ShowerShape & full5x5_showerShape() const
void setConsumes(edm::ConsumesCollector &) final
void setEventContent(const edm::EventSetup &) final
SuperClusterRef superCluster() const override
reference to a SuperCluster
void modifyObject(pat::Photon &pho) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
const CaloClusterPtr & seed() const
seed BasicCluster
void full5x5_setShowerShape(const ShowerShape &s)
T const * product() const
void setEvent(const edm::Event &) final
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEEToken_