1 #ifndef RecoAlgos_SingleElementCollectionRefSelector_h 2 #define RecoAlgos_SingleElementCollectionRefSelector_h 37 typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>
::type>
46 const_iterator
begin()
const {
return selected_.begin(); }
47 const_iterator
end()
const {
return selected_.end(); }
50 for (
size_t idx = 0;
idx < c->size(); ++
idx) {
51 if (select_(c->refAt(
idx)))
52 addRef_(selected_, c,
idx);
68 struct SingleElementCollectionRefSelectorEventSetupInit {
75 template <
typename I,
typename S,
typename O,
typename C,
typename R>
SingleElementCollectionRefSelectorEventSetupInit< SingleElementCollectionRefSelector< I, S, O, C, R > > type
InputCollection collection
S make(const edm::ParameterSet &cfg)
edm::View< InputType > InputCollection
const_iterator begin() const
void select(const edm::Handle< InputCollection > &c, const edm::Event &, const edm::EventSetup &)
const std::complex< double > I
Functor that operates on <T>
const_iterator end() const
SingleElementCollectionRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
container::const_iterator const_iterator
static void init(S &s, const edm::Event &ev, const edm::EventSetup &es)