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
edm::RefToBaseVector::end
const_iterator end() const
Definition: RefToBaseVector.h:186
RecoTrackViewRefSelector::select
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
Definition: RecoTrackViewRefSelector.h:22
mps_fire.i
i
Definition: mps_fire.py:428
RecoTrackViewRefSelector::ref_container
edm::RefToBaseVector< reco::Track > ref_container
Definition: RecoTrackViewRefSelector.h:10
RecoTrackViewRefSelector
Definition: RecoTrackViewRefSelector.h:7
RecoTrackViewRefSelector::size
size_t size() const
Definition: RecoTrackViewRefSelector.h:33
edm::Handle
Definition: AssociativeIterator.h:50
RecoTrackViewRefSelector::RecoTrackViewRefSelector
RecoTrackViewRefSelector()
Constructors.
Definition: RecoTrackViewRefSelector.h:14
RecoTrackSelectorBase.h
edm::RefToBaseVector::push_back
void push_back(const RefToBase< T > &)
Definition: RefToBaseVector.h:217
RecoTrackViewRefSelector::ref_selected_
ref_container ref_selected_
Definition: RecoTrackViewRefSelector.h:36
RefToBaseVector.h
edm::reftobase::BaseVectorHolder::const_iterator
Definition: BaseVectorHolder.h:54
RecoTrackViewRefSelector::RecoTrackViewRefSelector
RecoTrackViewRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition: RecoTrackViewRefSelector.h:16
RecoTrackSelectorBase::init
void init(const edm::Event &event, const edm::EventSetup &es)
Definition: RecoTrackSelectorBase.h:69
edm::View
Definition: CaloClusterFwd.h:14
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:58
RecoTrackViewRefSelector::begin
const_ref_iterator begin() const
Definition: RecoTrackViewRefSelector.h:19
edm::RefToBaseVector< reco::Track >
RecoTrackViewRefSelector::const_ref_iterator
ref_container::const_iterator const_ref_iterator
Definition: RecoTrackViewRefSelector.h:11
looper.cfg
cfg
Definition: looper.py:296
edm::RefToBaseVector::size
size_type size() const
Definition: RefToBaseVector.h:160
RecoTrackSelectorBase
Definition: RecoTrackSelectorBase.h:16
RecoTrackViewRefSelector::collection
edm::View< reco::Track > collection
Definition: RecoTrackViewRefSelector.h:9
edm::RefToBaseVector::begin
const_iterator begin() const
Definition: RefToBaseVector.h:181
edm::RefToBaseVector::clear
void clear()
Definition: RefToBaseVector.h:165
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
RecoTrackViewRefSelector::end
const_ref_iterator end() const
Definition: RecoTrackViewRefSelector.h:20
edm::ConsumesCollector
Definition: ConsumesCollector.h:45