CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
RecoTrackRefSelector Class Reference

#include <RecoTrackRefSelector.h>

Inheritance diagram for RecoTrackRefSelector:
RecoTrackSelectorBase

Public Types

typedef reco::TrackCollection collection
 
typedef ref_container::const_iterator const_ref_iterator
 
typedef reco::TrackRefVector ref_container
 

Public Member Functions

const_ref_iterator begin () const
 
const_ref_iterator end () const
 
 RecoTrackRefSelector ()
 Constructors. More...
 
 RecoTrackRefSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
void select (const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
 
size_t size () const
 
- Public Member Functions inherited from RecoTrackSelectorBase
void init (const edm::Event &event, const edm::EventSetup &es)
 
bool operator() (const reco::Track &t) const
 
bool operator() (const reco::Track &t, const reco::Track::Point &vertex) const
 
bool operator() (const reco::TrackRef &tref) const
 
 RecoTrackSelectorBase ()
 
 RecoTrackSelectorBase (const edm::ParameterSet &cfg)
 
 RecoTrackSelectorBase (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
 

Private Attributes

ref_container ref_selected_
 

Detailed Description

Definition at line 10 of file RecoTrackRefSelector.h.

Member Typedef Documentation

◆ collection

Definition at line 12 of file RecoTrackRefSelector.h.

◆ const_ref_iterator

Definition at line 14 of file RecoTrackRefSelector.h.

◆ ref_container

Definition at line 13 of file RecoTrackRefSelector.h.

Constructor & Destructor Documentation

◆ RecoTrackRefSelector() [1/2]

RecoTrackRefSelector::RecoTrackRefSelector ( )
inline

Constructors.

Definition at line 17 of file RecoTrackRefSelector.h.

17 {}

◆ RecoTrackRefSelector() [2/2]

RecoTrackRefSelector::RecoTrackRefSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 19 of file RecoTrackRefSelector.h.

19 : RecoTrackSelectorBase(cfg, iC) {}

Member Function Documentation

◆ begin()

const_ref_iterator RecoTrackRefSelector::begin ( void  ) const
inline

Definition at line 21 of file RecoTrackRefSelector.h.

21 { return ref_selected_.begin(); }

References edm::RefVector< C, T, F >::begin(), and ref_selected_.

◆ end()

const_ref_iterator RecoTrackRefSelector::end ( void  ) const
inline

◆ select()

void RecoTrackRefSelector::select ( const edm::Handle< collection > &  c,
const edm::Event event,
const edm::EventSetup es 
)
inline

Definition at line 24 of file RecoTrackRefSelector.h.

24  {
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  }

References c, edm::RefVector< C, T, F >::clear(), mps_fire::i, RecoTrackSelectorBase::init(), edm::RefVector< C, T, F >::push_back(), and ref_selected_.

◆ size()

size_t RecoTrackRefSelector::size ( void  ) const
inline

Member Data Documentation

◆ ref_selected_

ref_container RecoTrackRefSelector::ref_selected_
private

Definition at line 38 of file RecoTrackRefSelector.h.

Referenced by begin(), end(), select(), and size().

edm::RefVector::clear
void clear()
Clear the vector.
Definition: RefVector.h:142
mps_fire.i
i
Definition: mps_fire.py:428
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
edm::Ref
Definition: AssociativeIterator.h:58
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
RecoTrackSelectorBase::init
void init(const edm::Event &event, const edm::EventSetup &es)
Definition: RecoTrackSelectorBase.h:69
RecoTrackRefSelector::ref_selected_
ref_container ref_selected_
Definition: RecoTrackRefSelector.h:38
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
RecoTrackSelectorBase::RecoTrackSelectorBase
RecoTrackSelectorBase()
Definition: RecoTrackSelectorBase.h:18
looper.cfg
cfg
Definition: looper.py:297
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
event
Definition: event.py:1
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102