|
|
Go to the documentation of this file.
16 #include <vdt/vdtMath.h>
51 template <
typename ObjType>
88 eleCollVMsAreKeyedTo_(conf,
"eleCollVMsAreKeyedTo",
cc),
89 phoCollVMsAreKeyedTo_(conf,
"phoCollVMsAreKeyedTo",
cc),
90 conversions_(conf,
"conversions",
cc),
91 beamspot_(conf,
"beamspot",
cc),
92 ecalRecHitsEB_(conf,
"ecalRecHitsEB",
cc),
93 ecalRecHitsEE_(conf,
"ecalRecHitsEE",
cc),
94 eleTrkIso_(conf,
"eleTrkIso",
cc),
95 eleTrkIso04_(conf,
"eleTrkIso04",
cc),
96 phoPhotonIso_(conf,
"phoPhotonIso",
cc),
97 phoNeutralHadIso_(conf,
"phoNeutralHadIso",
cc),
98 phoChargedHadIso_(conf,
"phoChargedHadIso",
cc),
99 phoChargedHadWorstVtxIso_(conf,
"phoChargedHadWorstVtxIso",
cc),
100 phoChargedHadWorstVtxConeVetoIso_(conf,
"phoChargedHadWorstVtxConeVetoIso",
cc),
101 phoChargedHadPFPVIso_(conf,
"phoChargedHadPFPVIso",
cc),
102 allowGsfTrkMatchForConvs_(conf.getParameter<
bool>(
"allowGsfTrackForConvs")),
103 updateChargedHadPFPVIso_(conf.getParameter<
bool>(
"updateChargedHadPFPVIso")) {}
129 <<
" in EG9X105ObjectUpdateModifier, line " << __LINE__ <<
" electron " << ele.
et() <<
" " << ele.
eta() <<
" "
131 <<
" failed to match to the electrons the key map was keyed to, check the map collection is correct";
156 <<
" in EG9X105ObjectUpdateModifier, line " << __LINE__ <<
" photon " << pho.
et() <<
" " << pho.
eta() <<
" "
158 <<
" failed to match to the photons the key map was keyed to, check the map collection is correct";
176 const bool isEB = seedClus->seed().subdetId() ==
EcalBarrel;
190 template <
typename ObjType>
193 for (
auto& objVMPtr : objsVMIsKeyedTo->ptrs()) {
194 if (
obj.superCluster()->seed()->seed() == objVMPtr->superCluster()->seed()->seed())
const ShowerShape & showerShapeVariables() const
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
TokenHandlePair< edm::ValueMap< float > > phoChargedHadPFPVIso_
Analysis-level Photon class.
void modifyObject(pat::Electron &ele) const final
void setEventContent(const edm::EventSetup &) final
static edm::Ptr< ObjType > getPtrForValueMap(const ObjType &obj, const edm::Handle< edm::View< ObjType > > &objsVMIsKeyedTo)
float chargedHadronPFPVIso
const IsolationVariables & dr03IsolationVariables() const
void modifyObject(pat::Photon &pho) const final
TokenHandlePair< edm::ValueMap< float > > phoChargedHadIso_
~EG9X105XObjectUpdateModifier() override
TokenHandlePair< edm::ValueMap< float > > phoChargedHadWorstVtxIso_
TokenHandlePair< edm::ValueMap< float > > phoNeutralHadIso_
virtual GsfElectronCoreRef core() const
float chargedHadronWorstVtxGeomVetoIso
const std::string & name() const
void setHandle(const edm::Event &iEvent)
TokenHandlePair< edm::View< reco::GsfElectron > > eleCollVMsAreKeyedTo_
void setPflowIsolationVariables(const PflowIsolationVariables &pfisol)
Set Particle Flow Isolation variables.
edm::EDGetTokenT< T > token_
const edm::Handle< T > & handle() const
const Point & position() const
position
#define DEFINE_EDM_PLUGIN(factory, type, name)
void setDr04Isolation(const IsolationVariables &dr04)
TokenHandlePair< reco::BeamSpot > beamspot_
TokenHandlePair< edm::ValueMap< float > > eleTrkIso04_
float chargedHadronWorstVtxIso
const ConversionRejection & conversionRejectionVariables() const
void full5x5_setShowerShapeVariables(const ShowerShape &a)
const ShowerShape & full5x5_showerShapeVariables() const
double eta() const final
momentum pseudorapidity
const PflowIsolationVariables & getPflowIsolationVariables() const
Get Particle Flow Isolation variables block.
TokenHandlePair< edm::ValueMap< float > > phoChargedHadWorstVtxConeVetoIso_
TokenHandlePair< EcalRecHitCollection > ecalRecHitsEE_
TokenHandlePair< edm::ValueMap< float > > eleTrkIso_
EG9X105XObjectUpdateModifier(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
bool allowGsfTrkMatchForConvs_
TokenHandlePair(const edm::ParameterSet &conf, const std::string &name, edm::ConsumesCollector &cc)
void modifyObject(reco::GsfElectron &ele) const final
void setEvent(const edm::Event &) final
double et() const final
transverse energy
void setConversionRejectionVariables(const ConversionRejection &convRej)
void setDr03Isolation(const IsolationVariables &dr03)
TokenHandlePair< edm::View< reco::Photon > > phoCollVMsAreKeyedTo_
TokenHandlePair< reco::ConversionCollection > conversions_
SuperClusterRef superCluster() const override
reference to a SuperCluster
Analysis-level electron class.
TokenHandlePair< edm::ValueMap< float > > phoPhotonIso_
bool updateChargedHadPFPVIso_
const IsolationVariables & dr04IsolationVariables() const
TokenHandlePair< EcalRecHitCollection > ecalRecHitsEB_
bool isNull() const
Checks for null.
void setShowerShapeVariables(const ShowerShape &a)