CMS 3D CMS Logo

RecoTrackViewRefSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_RecoAlgos_RecoTrackViewRefSelector_h
2 #define CommonTools_RecoAlgos_RecoTrackViewRefSelector_h
3 
6 
8 public:
12 
15 
17  : RecoTrackSelectorBase(cfg, iC) {}
18 
20  const_ref_iterator end() const { return ref_selected_.end(); }
21 
22  void select(const edm::Handle<collection>& c, const edm::Event& event, const edm::EventSetup& es) {
23  init(event, es);
25  for (unsigned int i = 0; i < c->size(); i++) {
26  auto trk = c->refAt(i);
27  if (operator()(*trk)) {
29  }
30  }
31  }
32 
33  size_t size() const { return ref_selected_.size(); }
34 
35 private:
37 };
38 
39 #endif
void init(const edm::Event &event, const edm::EventSetup &es)
RecoTrackViewRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
const_ref_iterator begin() const
size_type size() const
const_iterator begin() const
edm::View< reco::Track > collection
ref_container::const_iterator const_ref_iterator
const_iterator end() const
void push_back(const RefToBase< T > &)
const_ref_iterator end() const
edm::RefToBaseVector< reco::Track > ref_container
Definition: event.py:1