48 "PhoAnyPFIsoWithEAAndQuadScalingCut");
52 _C1_EB(c.getParameter<double>(
"C1_EB")),
53 _C2_EB(c.getParameter<double>(
"C2_EB")),
54 _C3_EB(c.getParameter<double>(
"C3_EB")),
55 _C1_EE(c.getParameter<double>(
"C1_EE")),
56 _C2_EE(c.getParameter<double>(
"C2_EE")),
57 _C3_EE(c.getParameter<double>(
"C3_EE")),
85 CutApplicatorBase::result_type
92 float anyisoval = -1.0;
94 anyisoval = (*_anyPFIsoMap)[cand];
101 anyisoval = (*_anyPFIsoMap)[cand];
106 const float pt = cand->
pt();
112 const float isolationCutValue =
123 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
127 anyPFIsoWithEA /=
pt;
130 return anyPFIsoWithEA < isolationCutValue;
140 float anyisoval = -1.0;
142 anyisoval = (*_anyPFIsoMap)[cand];
149 anyisoval = (*_anyPFIsoMap)[cand];
154 const float pt = pho->
pt();
167 float anyPFIsoWithEA =
std::max(0.0, anyPFIso - rho * eA);
171 anyPFIsoWithEA /=
pt;
174 return anyPFIsoWithEA;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
virtual double pt() const final
transverse momentum
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
PhoAnyPFIsoWithEAAndQuadScalingCut(const edm::ParameterSet &c)
EffectiveAreas _effectiveAreas
const float getEffectiveArea(float eta) const
std::unordered_map< std::string, edm::InputTag > contentTags_
float userFloat(const std::string &key) const
bool contains(ProductID id) const
Abs< T >::type abs(const T &t)
double value(const reco::CandidatePtr &cand) const override final
result_type operator()(const reco::PhotonPtr &) const override final
static char anyPFIsoWithEA_[]
CandidateType candidateType() const override final
void setConsumes(edm::ConsumesCollector &) override final
const_iterator begin() const
ProductID id() const
Accessor for product ID.
bool getByLabel(InputTag const &, Handle< T > &) const
void getEventContent(const edm::EventBase &) override final
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::Handle< double > _rhoHandle
edm::Handle< edm::ValueMap< float > > _anyPFIsoMap