46 _C1_EB(c.getParameter<double>(
"C1_EB")),
47 _C2_EB(c.getParameter<double>(
"C2_EB")),
48 _C3_EB(c.getParameter<double>(
"C3_EB")),
49 _C1_EE(c.getParameter<double>(
"C1_EE")),
50 _C2_EE(c.getParameter<double>(
"C2_EE")),
78 float anyisoval = -1.0;
80 anyisoval = (*_anyPFIsoMap)[cand];
86 anyisoval = (*_anyPFIsoMap)[cand];
91 const float pt = cand->pt();
96 double absEta =
std::abs(cand->superCluster()->eta());
105 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
109 anyPFIsoWithEA /=
pt;
112 return anyPFIsoWithEA < isolationCutValue;
121 float anyisoval = -1.0;
123 anyisoval = (*_anyPFIsoMap)[cand];
129 anyisoval = (*_anyPFIsoMap)[cand];
134 const float pt = pho->pt();
139 double absEta =
std::abs(pho->superCluster()->eta());
147 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
151 anyPFIsoWithEA /=
pt;
154 return anyPFIsoWithEA;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::unordered_map< std::string, edm::InputTag > contentTags_
double value(const reco::CandidatePtr &cand) const final
edm::Handle< double > _rhoHandle
EffectiveAreas _effectiveAreas
void setConsumes(edm::ConsumesCollector &) final
const float getEffectiveArea(float eta) const
float userFloat(const std::string &key) const
bool contains(ProductID id) const
edm::Handle< edm::ValueMap< float > > _anyPFIsoMap
Abs< T >::type abs(const T &t)
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
result_type operator()(const reco::PhotonPtr &) const final
const_iterator begin() const
ProductID id() const
Accessor for product ID.
bool getByLabel(InputTag const &, Handle< T > &) const
static char anyPFIsoWithEA_[]
void getEventContent(const edm::EventBase &) final
#define DEFINE_EDM_PLUGIN(factory, type, name)
PhoAnyPFIsoWithEAAndExpoScalingEBCut(const edm::ParameterSet &c)
CandidateType candidateType() const final