39 varFunc_(params.getParameter<std::
string>(
"cutVariable")),
40 lessThan_(params.getParameter<bool>(
"lessThan")),
41 constTerm_(params,
"constTerm"),
42 linearRhoTerm_(params.getParameter<edm::FileInPath>(
"effAreasConfigFile").
fullPath()),
43 linearPtTerm_(params,
"linearPtTerm"),
44 quadraticPtTerm_(params,
"quadPtTerm") {
59 const double rho = (*rhoHandle_);
63 const float et = pho->et();
64 const float absEta =
std::abs(pho->superCluster()->eta());
68 return var < cutValue;
70 return var >= cutValue;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EventSetup & c
std::unordered_map< std::string, edm::InputTag > contentTags_
void getEventContent(const edm::EventBase &) final
EBEECutValues linearPtTerm_
PhoGenericRhoPtScaledCut(const edm::ParameterSet &c)
const float getEffectiveArea(float eta) const
edm::Handle< double > rhoHandle_
double value(const reco::CandidatePtr &cand) const final
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.0)
CandidateType candidateType() const final
Abs< T >::type abs(const T &t)
void setConsumes(edm::ConsumesCollector &) final
result_type operator()(const reco::PhotonPtr &) const final
EBEECutValues quadraticPtTerm_
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
ThreadSafeFunctor< StringObjectFunction< reco::Photon > > varFunc_
T getParameter(std::string const &) const
EffectiveAreas linearRhoTerm_
bool getByLabel(InputTag const &, Handle< T > &) const
#define DEFINE_EDM_PLUGIN(factory, type, name)