1 #ifndef RecoAlgos_SingleElementCollectionSelector_h 2 #define RecoAlgos_SingleElementCollectionSelector_h 44 const_iterator
begin()
const {
return selected_.begin(); }
45 const_iterator
end()
const {
return selected_.end(); }
48 for (
size_t idx = 0;
idx < c->size(); ++
idx) {
49 if (select_((*c)[
idx]))
50 addRef_(selected_, c, idx);
66 struct SingleElementCollectionSelectorEventSetupInit {
73 template <
typename I,
typename S,
typename O,
typename C,
typename R>
const_iterator end() const
InputCollection collection
container::const_iterator const_iterator
const_iterator begin() const
S make(const edm::ParameterSet &cfg)
static void init(S &s, const edm::Event &ev, const edm::EventSetup &es)
const std::complex< double > I
Functor that operates on <T>
SingleElementCollectionSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
SingleElementCollectionSelectorEventSetupInit< SingleElementCollectionSelector< I, S, O, C, R > > type
void select(const edm::Handle< InputCollection > &c, const edm::Event &, const edm::EventSetup &)