47 "PhoAnyPFIsoWithEAAndExpoScalingEBCut");
51 _C1_EB(c.getParameter<double>(
"C1_EB")),
52 _C2_EB(c.getParameter<double>(
"C2_EB")),
53 _C3_EB(c.getParameter<double>(
"C3_EB")),
54 _C1_EE(c.getParameter<double>(
"C1_EE")),
55 _C2_EE(c.getParameter<double>(
"C2_EE")),
56 _barrelCutOff(c.getParameter<double>(
"barrelCutOff")),
57 _useRelativeIso(c.getParameter<bool>(
"useRelativeIso")),
83 CutApplicatorBase::result_type
90 float anyisoval = -1.0;
92 anyisoval = (*_anyPFIsoMap)[cand];
99 anyisoval = (*_anyPFIsoMap)[cand];
104 const float pt = cand->pt();
109 double absEta =
std::abs(cand->superCluster()->eta());
110 const float isolationCutValue =
121 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
125 anyPFIsoWithEA /=
pt;
128 return anyPFIsoWithEA < isolationCutValue;
138 float anyisoval = -1.0;
140 anyisoval = (*_anyPFIsoMap)[cand];
147 anyisoval = (*_anyPFIsoMap)[cand];
152 const float pt = pho->pt();
157 double absEta =
std::abs(pho->superCluster()->eta());
165 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
169 anyPFIsoWithEA /=
pt;
172 return anyPFIsoWithEA;
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
double value(const reco::CandidatePtr &cand) const overridefinal
std::unordered_map< std::string, edm::InputTag > contentTags_
result_type operator()(const reco::PhotonPtr &) const overridefinal
bool contains(ProductID id) const
edm::Handle< edm::ValueMap< float > > _anyPFIsoMap
Abs< T >::type abs(const T &t)
const_iterator begin() const
CandidateType candidateType() const overridefinal
ProductID id() const
Accessor for product ID.
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