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
double value(const reco::CandidatePtr &cand) const final
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
edm::Handle< double > _rhoHandle
double pt() const final
transverse momentum
EffectiveAreas _effectiveAreas
void setConsumes(edm::ConsumesCollector &) final
const float getEffectiveArea(float eta) const
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
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)
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