1 #ifndef RecoAlgos_SingleElementCollectionRefSelector_h 2 #define RecoAlgos_SingleElementCollectionRefSelector_h 33 typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >
::type,
35 typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>
::type>
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->refAt(
idx))) addRef_(selected_, c,
idx);
64 struct SingleElementCollectionRefSelectorEventSetupInit {
71 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)