21 std::vector<StringObjectFunction<reco::GsfElectron>>
cutFormula_;
34 mvaCutStrings_(c.getParameter<std::
vector<std::
string>>(
"mvaCuts")),
35 nCuts_(mvaCutStrings_.
size()) {
69 cat = (*mvaCategoriesMap_)[cand];
70 val = (*mvaValueMap_)[cand];
78 cat = (*mvaCategoriesMap_)[cand];
79 val = (*mvaValueMap_)[cand];
86 <<
" found a particle with a category larger than max configured " << std::endl;
102 val = (*mvaValueMap_)[cand];
109 val = (*mvaValueMap_)[cand];
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EventSetup & c
edm::Handle< edm::ValueMap< int > > mvaCategoriesMap_
double value(const reco::CandidatePtr &cand) const final
std::unordered_map< std::string, edm::InputTag > contentTags_
GsfEleMVACut(const edm::ParameterSet &c)
void setConsumes(edm::ConsumesCollector &) final
std::vector< StringObjectFunction< reco::GsfElectron > > cutFormula_
bool contains(ProductID id) const
result_type operator()(const reco::GsfElectronPtr &) const final
void getEventContent(const edm::EventBase &) final
CandidateType candidateType() const 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< float > > mvaValueMap_
const std::vector< std::string > mvaCutStrings_
tuple size
Write out results.