1 #ifndef RecoAlgos_SingleElementCollectionSelector_h 2 #define RecoAlgos_SingleElementCollectionSelector_h 42 const_iterator
begin()
const {
return selected_.begin(); }
43 const_iterator
end()
const {
return selected_.end(); }
46 for(
size_t idx = 0;
idx < c->size(); ++
idx) {
47 if(select_((*c)[
idx]))
48 addRef_(selected_, c, idx);
63 struct SingleElementCollectionSelectorEventSetupInit {
70 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 &)