47 _C1_EB(c.getParameter<double>(
"C1_EB")),
48 _C2_EB(c.getParameter<double>(
"C2_EB")),
49 _C3_EB(c.getParameter<double>(
"C3_EB")),
50 _C1_EE(c.getParameter<double>(
"C1_EE")),
51 _C2_EE(c.getParameter<double>(
"C2_EE")),
52 _C3_EE(c.getParameter<double>(
"C3_EE")),
80 float anyisoval = -1.0;
82 anyisoval = (*_anyPFIsoMap)[cand];
88 anyisoval = (*_anyPFIsoMap)[cand];
93 const float pt = cand->pt();
98 double absEta =
std::abs(cand->superCluster()->eta());
99 const float isolationCutValue =
108 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
112 anyPFIsoWithEA /=
pt;
115 return anyPFIsoWithEA < isolationCutValue;
124 float anyisoval = -1.0;
126 anyisoval = (*_anyPFIsoMap)[cand];
132 anyisoval = (*_anyPFIsoMap)[cand];
137 const float pt = pho->pt();
142 double absEta =
std::abs(pho->superCluster()->eta());
150 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
154 anyPFIsoWithEA /=
pt;
157 return anyPFIsoWithEA;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::unordered_map< std::string, edm::InputTag > contentTags_
PhoAnyPFIsoWithEAAndQuadScalingCut(const edm::ParameterSet &c)
EffectiveAreas _effectiveAreas
const float getEffectiveArea(float eta) const
float userFloat(const std::string &key) const
bool contains(ProductID id) const
void setConsumes(edm::ConsumesCollector &) final
Abs< T >::type abs(const T &t)
static char anyPFIsoWithEA_[]
void getEventContent(const edm::EventBase &) final
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
result_type operator()(const reco::PhotonPtr &) const final
const_iterator begin() const
double value(const reco::CandidatePtr &cand) const final
ProductID id() const
Accessor for product ID.
bool getByLabel(InputTag const &, Handle< T > &) const
edm::Handle< double > _rhoHandle
#define DEFINE_EDM_PLUGIN(factory, type, name)
CandidateType candidateType() const final
edm::Handle< edm::ValueMap< float > > _anyPFIsoMap