39 _isoCutEBLowPt(c.getParameter<double>(
"isoCutEBLowPt")),
40 _isoCutEBHighPt(c.getParameter<double>(
"isoCutEBHighPt")),
41 _isoCutEELowPt(c.getParameter<double>(
"isoCutEELowPt")),
42 _isoCutEEHighPt(c.getParameter<double>(
"isoCutEEHighPt")),
43 _ptCutOff(c.getParameter<double>(
"ptCutOff")),
44 _barrelCutOff(c.getParameter<double>(
"barrelCutOff")),
45 _isRelativeIso(c.getParameter<bool>(
"isRelativeIso")),
46 _effectiveAreas((c.getParameter<edm::FileInPath>(
"effAreasConfigFile")).
fullPath()) {
62 double absEta =
std::abs(cand->superCluster()->eta());
73 const float iso = chad +
std::max(0.0
f, nhad + pho - rho * eA);
83 double absEta =
std::abs(ele->superCluster()->eta());
87 const float chad = pfIso.sumChargedHadronPt;
88 const float nhad = pfIso.sumNeutralHadronEt;
89 const float pho = pfIso.sumPhotonEt;
92 float iso = chad +
std::max(0.0
f, nhad + pho - rho * eA);
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void getEventContent(const edm::EventBase &) final
const edm::EventSetup & c
std::unordered_map< std::string, edm::InputTag > contentTags_
const float _isoCutEBHighPt
const float getEffectiveArea(float eta) const
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
Abs< T >::type abs(const T &t)
static constexpr char rhoString_[]
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
void setConsumes(edm::ConsumesCollector &) final
const float _isoCutEEHighPt
EffectiveAreas _effectiveAreas
double value(const reco::CandidatePtr &cand) const final
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
T getParameter(std::string const &) const
const float _isoCutEBLowPt
bool getByLabel(InputTag const &, Handle< T > &) const
result_type operator()(const reco::GsfElectronPtr &) const final
const float _isoCutEELowPt
#define DEFINE_EDM_PLUGIN(factory, type, name)
GsfEleEffAreaPFIsoCut(const edm::ParameterSet &c)
edm::Handle< double > _rhoHandle
const float _barrelCutOff
CandidateType candidateType() const final
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;