59 cat = (*_mvaCategoriesMap)[cand];
60 val = (*_mvaValueMap)[cand];
68 cat = (*_mvaCategoriesMap)[cand];
69 val = (*_mvaValueMap)[cand];
76 <<
" found a particle with a category larger than max configured " << std::endl;
83 return mvaValue > cutValue;
93 val = (*_mvaValueMap)[cand];
100 val = (*_mvaValueMap)[cand];
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EventSetup & c
std::unordered_map< std::string, edm::InputTag > contentTags_
PhoMVACut(const edm::ParameterSet &c)
CandidateType candidateType() const final
edm::Handle< edm::ValueMap< float > > _mvaValueMap
void getEventContent(const edm::EventBase &) final
result_type operator()(const reco::PhotonPtr &) const final
bool contains(ProductID id) const
double value(const reco::CandidatePtr &cand) const final
const std::vector< double > _mvaCutValues
void setConsumes(edm::ConsumesCollector &) final
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
const_iterator begin() const
T getParameter(std::string const &) const
ProductID id() const
Accessor for product ID.
bool getByLabel(InputTag const &, Handle< T > &) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::Handle< edm::ValueMap< int > > _mvaCategoriesMap