CMS 3D CMS Logo

RecoTrackRefSelector.h
Go to the documentation of this file.
1 #ifndef RecoSelectors_RecoTrackRefSelector_h
2 #define RecoSelectors_RecoTrackRefSelector_h
3 /* \class RecoTrackRefSelector
4  *
5  * \author Ian Tomalin, RAL
6  *
7  */
9 
11 public:
15 
18 
20 
22  const_ref_iterator end() const { return ref_selected_.end(); }
23 
24  void select(const edm::Handle<collection>& c, const edm::Event& event, const edm::EventSetup& es) {
25  init(event, es);
27  for (unsigned int i = 0; i < c->size(); i++) {
28  edm::Ref<collection> trk(c, i);
29  if (operator()(*trk)) {
31  }
32  }
33  }
34 
35  size_t size() const { return ref_selected_.size(); }
36 
37 private:
39 };
40 
41 #endif
RecoTrackRefSelector::collection
reco::TrackCollection collection
Definition: RecoTrackRefSelector.h:12
edm::RefVector::clear
void clear()
Clear the vector.
Definition: RefVector.h:142
mps_fire.i
i
Definition: mps_fire.py:355
RecoTrackRefSelector
Definition: RecoTrackRefSelector.h:10
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
RecoTrackRefSelector::RecoTrackRefSelector
RecoTrackRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition: RecoTrackRefSelector.h:19
edm::RefVector
Definition: EDProductfwd.h:27
edm::Handle
Definition: AssociativeIterator.h:50
edm::Ref
Definition: AssociativeIterator.h:58
RecoTrackRefSelector::begin
const_ref_iterator begin() const
Definition: RecoTrackRefSelector.h:21
RecoTrackRefSelector::select
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
Definition: RecoTrackRefSelector.h:24
RecoTrackSelectorBase.h
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
RecoTrackRefSelector::size
size_t size() const
Definition: RecoTrackRefSelector.h:35
RecoTrackRefSelector::end
const_ref_iterator end() const
Definition: RecoTrackRefSelector.h:22
RecoTrackRefSelector::RecoTrackRefSelector
RecoTrackRefSelector()
Constructors.
Definition: RecoTrackRefSelector.h:17
RecoTrackSelectorBase::init
void init(const edm::Event &event, const edm::EventSetup &es)
Definition: RecoTrackSelectorBase.h:69
edm::ParameterSet
Definition: ParameterSet.h:36
RecoTrackRefSelector::ref_selected_
ref_container ref_selected_
Definition: RecoTrackRefSelector.h:38
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
looper.cfg
cfg
Definition: looper.py:297
RecoTrackSelectorBase
Definition: RecoTrackSelectorBase.h:16
edm::RefVectorIterator
Definition: EDProductfwd.h:33
RecoTrackRefSelector::const_ref_iterator
ref_container::const_iterator const_ref_iterator
Definition: RecoTrackRefSelector.h:14
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
RecoTrackRefSelector::ref_container
reco::TrackRefVector ref_container
Definition: RecoTrackRefSelector.h:13