CMS 3D CMS Logo

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

#include <RecoTrackViewRefSelector.h>

Inheritance diagram for RecoTrackViewRefSelector:
RecoTrackSelectorBase

Public Types

typedef edm::View< reco::Trackcollection
 
typedef ref_container::const_iterator const_ref_iterator
 
typedef edm::RefToBaseVector< reco::Trackref_container
 

Public Member Functions

const_ref_iterator begin () const
 
const_ref_iterator end () const
 
 RecoTrackViewRefSelector ()
 Constructors. More...
 
 RecoTrackViewRefSelector (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::TrackRef &tref) const
 
bool operator() (const reco::Track &t) const
 
bool operator() (const reco::Track &t, const reco::Track::Point &vertex) 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 7 of file RecoTrackViewRefSelector.h.

Member Typedef Documentation

◆ collection

Definition at line 9 of file RecoTrackViewRefSelector.h.

◆ const_ref_iterator

Definition at line 11 of file RecoTrackViewRefSelector.h.

◆ ref_container

Definition at line 10 of file RecoTrackViewRefSelector.h.

Constructor & Destructor Documentation

◆ RecoTrackViewRefSelector() [1/2]

RecoTrackViewRefSelector::RecoTrackViewRefSelector ( )
inline

Constructors.

Definition at line 14 of file RecoTrackViewRefSelector.h.

14 {}

◆ RecoTrackViewRefSelector() [2/2]

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

Definition at line 16 of file RecoTrackViewRefSelector.h.

Member Function Documentation

◆ begin()

const_ref_iterator RecoTrackViewRefSelector::begin ( void  ) const
inline

Definition at line 19 of file RecoTrackViewRefSelector.h.

References edm::RefToBaseVector< T >::begin(), and ref_selected_.

19 { return ref_selected_.begin(); }
const_iterator begin() const

◆ end()

const_ref_iterator RecoTrackViewRefSelector::end ( void  ) const
inline

◆ select()

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

Definition at line 22 of file RecoTrackViewRefSelector.h.

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

22  {
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  }
void init(const edm::Event &event, const edm::EventSetup &es)
void push_back(const RefToBase< T > &)
Definition: event.py:1

◆ size()

size_t RecoTrackViewRefSelector::size ( void  ) const
inline

Member Data Documentation

◆ ref_selected_

ref_container RecoTrackViewRefSelector::ref_selected_
private

Definition at line 36 of file RecoTrackViewRefSelector.h.

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