1 #ifndef GenericSelectorByValueMap_h
2 #define GenericSelectorByValueMap_h
37 template <
typename T,
typename C>
71 template <
typename T,
typename C>
75 m_cut(config.getParameter<
cut_type>(
"cut")) {
77 produces<edm::RefToBaseVector<candidate_type>>();
82 template <
typename T,
typename C>
84 auto candidates = std::make_unique<edm::RefToBaseVector<candidate_type>>();
88 event.getByToken(token_electrons, h_electrons);
93 event.getByToken(token_selection, h_selection);
96 for (
unsigned int i = 0;
i < electrons.
size(); ++
i) {
98 if (selectionMap[ptr] > m_cut)
108 #endif // GenericSelectorByValueMap_h
GenericSelectorByValueMap(edm::ParameterSet const &config)
RefToBase< value_type > refAt(size_type i) const
edm::EDGetTokenT< edm::ValueMap< selection_type > > token_selection
details::template CompatibleConfigurationType< selection_type >::type cut_type
tuple config
parse the configuration file
edm::EDGetTokenT< edm::View< candidate_type > > token_electrons
void produce(edm::Event &event, edm::EventSetup const &setup) override