17 #include <vdt/vdtMath.h> 30 token_(cc.consumes<
T>(conf.getParameter<
edm::InputTag>(name))){}
53 template<
typename ObjType>
139 throw cms::Exception(
"LogicError") <<
" in EG9X105ObjectUpdateModifier, line "<<__LINE__<<
" electron "<<ele.
et()<<
" "<<ele.
eta()<<
" "<<ele.
superCluster()->seed()->seed().rawId()<<
" failed to match to the electrons the key map was keyed to, check the map collection is correct";
162 throw cms::Exception(
"LogicError") <<
" in EG9X105ObjectUpdateModifier, line "<<__LINE__<<
" photon "<<pho.
et()<<
" "<<pho.
eta()<<
" "<<pho.
superCluster()->seed()->seed().rawId()<<
" failed to match to the photons the key map was keyed to, check the map collection is correct";
180 const bool isEB = seedClus->seed().subdetId()==
EcalBarrel;
182 Cluster2ndMoments clus2ndMomFrac = EcalClusterTools::cluster2ndMoments(*seedClus,recHits);
199 for(
auto& objVMPtr : objsVMIsKeyedTo->ptrs()){
200 if(obj.superCluster()->seed()->seed()==objVMPtr->superCluster()->seed()->seed())
return objVMPtr;
208 "EG9X105XObjectUpdateModifier");
const edm::Handle< T > & handle() const
void setDr04Isolation(const IsolationVariables &dr04)
void setPflowIsolationVariables(const PflowIsolationVariables &pfisol)
Set Particle Flow Isolation variables.
Analysis-level Photon class.
void modifyObject(pat::Photon &pho) const final
TokenHandlePair< edm::ValueMap< float > > eleTrkIso04_
TokenHandlePair< edm::ValueMap< float > > phoPhotonIso_
double eta() const final
momentum pseudorapidity
TokenHandlePair< edm::ValueMap< float > > phoChargedHadWorstVtxIso_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TokenHandlePair< edm::View< reco::Photon > > phoCollVMsAreKeyedTo_
void setEvent(const edm::Event &) final
void setHandle(const edm::Event &iEvent)
float chargedHadronWorstVtxGeomVetoIso
TokenHandlePair< reco::BeamSpot > beamspot_
edm::EDGetTokenT< T > token_
float chargedHadronWorstVtxIso
TokenHandlePair< EcalRecHitCollection > ecalRecHitsEE_
void setConversionRejectionVariables(const ConversionRejection &convRej)
TokenHandlePair< EcalRecHitCollection > ecalRecHitsEB_
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void setDr03Isolation(const IsolationVariables &dr03)
const IsolationVariables & dr04IsolationVariables() const
TokenHandlePair< edm::ValueMap< float > > phoChargedHadWorstVtxConeVetoIso_
void setEventContent(const edm::EventSetup &) final
static edm::Ptr< ObjType > getPtrForValueMap(const ObjType &obj, const edm::Handle< edm::View< ObjType > > &objsVMIsKeyedTo)
bool allowGsfTrkMatchForConvs_
TokenHandlePair< edm::ValueMap< float > > eleTrkIso_
const std::string & name() const
double et() const final
transverse energy
bool updateChargedHadPFPVIso_
bool isNull() const
Checks for null.
void setShowerShapeVariables(const ShowerShape &a)
void modifyObject(reco::GsfElectron &ele) const final
TokenHandlePair< reco::ConversionCollection > conversions_
Analysis-level electron class.
virtual GsfElectronCoreRef core() const
float chargedHadronPFPVIso
void full5x5_setShowerShapeVariables(const ShowerShape &a)
const ShowerShape & full5x5_showerShapeVariables() const
TokenHandlePair< edm::ValueMap< float > > phoChargedHadPFPVIso_
const IsolationVariables & dr03IsolationVariables() const
~EG9X105XObjectUpdateModifier() override
SuperClusterRef superCluster() const override
reference to a SuperCluster
TokenHandlePair(const edm::ParameterSet &conf, const std::string &name, edm::ConsumesCollector &cc)
#define DEFINE_EDM_PLUGIN(factory, type, name)
const Point & position() const
position
const ConversionRejection & conversionRejectionVariables() const
const PflowIsolationVariables & getPflowIsolationVariables() const
Get Particle Flow Isolation variables block.
TokenHandlePair< edm::View< reco::GsfElectron > > eleCollVMsAreKeyedTo_
const ShowerShape & showerShapeVariables() const
EG9X105XObjectUpdateModifier(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
TokenHandlePair< edm::ValueMap< float > > phoNeutralHadIso_
TokenHandlePair< edm::ValueMap< float > > phoChargedHadIso_
void modifyObject(pat::Electron &ele) const final