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"))
78 produces<edm::RefToBaseVector<candidate_type> >();
83 template <
typename T,
typename C>
86 auto candidates = std::make_unique<edm::RefToBaseVector<candidate_type>>();
98 for (
unsigned int i = 0;
i < electrons.
size(); ++
i) {
100 if (selectionMap[ptr] >
m_cut)
110 #endif // GenericSelectorByValueMap_h
GenericSelectorByValueMap(edm::ParameterSet const &config)
def setup(process, global_tag, zero_tesla=False)
RefToBase< value_type > refAt(size_type i) const
edm::EDGetTokenT< edm::ValueMap< selection_type > > token_selection
def template(fileName, svg, replaceme="REPLACEME")
details::template CompatibleConfigurationType< selection_type >::type cut_type
edm::EDGetTokenT< edm::View< candidate_type > > token_electrons
void produce(edm::Event &event, edm::EventSetup const &setup) override