15 #include <vdt/vdtMath.h> 81 showerShapes.
e2x5Left = EcalClusterTools::e2x5Left (seedClus,ecalRecHits,caloTopo);
82 showerShapes.e2x5Right = EcalClusterTools::e2x5Right (seedClus,ecalRecHits,caloTopo);
83 showerShapes.e2x5Top = EcalClusterTools::e2x5Top (seedClus,ecalRecHits,caloTopo);
84 showerShapes.e2x5Bottom = EcalClusterTools::e2x5Bottom(seedClus,ecalRecHits,caloTopo);
110 bool seedSaturated =
false;
111 const auto& hitsAndFractions = superClus.
seed()->hitsAndFractions();
112 for(
const auto& hitFractionPair : hitsAndFractions) {
113 auto ecalRecHitIt = ecalRecHits.find(hitFractionPair.first);
114 if(ecalRecHitIt != ecalRecHits.end() &&
115 ecalRecHitIt->checkFlag(EcalRecHit::Flags::kSaturated)){
117 if(hitFractionPair.first == superClus.
seed()->seed()) seedSaturated =
true;
120 return {nrSatCrys,seedSaturated};
125 "EG8XObjectUpdateModifier");
const ShowerShape & showerShape() const
edm::EDGetTokenT< EcalRecHitCollection > ecalRecHitsEBToken_
Analysis-level Photon class.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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_
EG8XObjectUpdateModifier(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
std::pair< int, bool > getSaturationInfo(const reco::SuperCluster &superClus) const
edm::Handle< EcalRecHitCollection > ecalRecHitsEEHandle_
Analysis-level electron class.
const ShowerShape & full5x5_showerShape() const
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_