|
|
Go to the documentation of this file.
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"))) {}
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};
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)
EcalRecHitCollection const * ecalRecHitsEE_
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
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopoToken_
const CaloClusterPtr & seed() const
seed BasicCluster
void modifyObject(reco::GsfElectron &ele) const final
bool getData(T &iHolder) const
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_
CaloTopology const * caloTopo_
EcalRecHitCollection const * ecalRecHitsEB_