CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
const edm::EventSetup & c
tuple cfg
Definition: looper.py:296
RecoTrackViewRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
const_iterator end() const
const_ref_iterator end() const
edm::View< reco::Track > collection
const_ref_iterator begin() const
ref_container::const_iterator const_ref_iterator
size_type size() const
const_iterator begin() const
void push_back(const RefToBase< T > &)
edm::RefToBaseVector< reco::Track > ref_container