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")),
83 CutApplicatorBase::result_type
90 float anyisoval = -1.0;
92 anyisoval = (*_anyPFIsoMap)[cand];
99 anyisoval = (*_anyPFIsoMap)[cand];
104 const float pt = cand->
pt();
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();
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
virtual double pt() const final
transverse momentum
void setConsumes(edm::ConsumesCollector &) override final
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
edm::Handle< double > _rhoHandle
double value(const reco::CandidatePtr &cand) const override final
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
edm::Handle< edm::ValueMap< float > > _anyPFIsoMap
Abs< T >::type abs(const T &t)
const_iterator begin() const
CandidateType candidateType() const override final
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 &) override final
result_type operator()(const reco::PhotonPtr &) const override final