45 "PhoAnyPFIsoWithEAAndExpoScalingEBCut");
49 _C1_EB(c.getParameter<double>(
"C1_EB")),
50 _C2_EB(c.getParameter<double>(
"C2_EB")),
51 _C3_EB(c.getParameter<double>(
"C3_EB")),
52 _C1_EE(c.getParameter<double>(
"C1_EE")),
53 _C2_EE(c.getParameter<double>(
"C2_EE")),
54 _barrelCutOff(c.getParameter<double>(
"barrelCutOff")),
55 _useRelativeIso(c.getParameter<bool>(
"useRelativeIso")),
81 CutApplicatorBase::result_type
87 const float pt = cand->pt();
92 double absEta =
std::abs(cand->superCluster()->eta());
93 const float isolationCutValue =
99 float anyPFIso = (*_anyPFIsoMap)[cand];
104 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
108 anyPFIsoWithEA /=
pt;
111 return anyPFIsoWithEA < isolationCutValue;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
void setConsumes(edm::ConsumesCollector &) overridefinal
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
edm::Handle< double > _rhoHandle
EffectiveAreas _effectiveAreas
const float getEffectiveArea(float eta) const
std::unordered_map< std::string, edm::InputTag > contentTags_
result_type operator()(const reco::PhotonPtr &) const overridefinal
edm::Handle< edm::ValueMap< float > > _anyPFIsoMap
Abs< T >::type abs(const T &t)
CandidateType candidateType() const overridefinal
bool getByLabel(InputTag const &, Handle< T > &) const
static char anyPFIsoWithEA_[]
#define DEFINE_EDM_PLUGIN(factory, type, name)
PhoAnyPFIsoWithEAAndExpoScalingEBCut(const edm::ParameterSet &c)
void getEventContent(const edm::EventBase &) overridefinal