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::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 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.

17  : RecoTrackSelectorBase(cfg, iC) {}

Member Function Documentation

◆ begin()

const_ref_iterator RecoTrackViewRefSelector::begin ( void  ) const
inline

Definition at line 19 of file RecoTrackViewRefSelector.h.

19 { return ref_selected_.begin(); }

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

◆ 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.

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  }

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

◆ 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().

edm::RefToBaseVector::end
const_iterator end() const
Definition: RefToBaseVector.h:186
mps_fire.i
i
Definition: mps_fire.py:428
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
RecoTrackSelectorBase::init
void init(const edm::Event &event, const edm::EventSetup &es)
Definition: RecoTrackSelectorBase.h:69
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
RecoTrackSelectorBase::RecoTrackSelectorBase
RecoTrackSelectorBase()
Definition: RecoTrackSelectorBase.h:18
looper.cfg
cfg
Definition: looper.py:297
edm::RefToBaseVector::size
size_type size() const
Definition: RefToBaseVector.h:160
edm::RefToBaseVector::begin
const_iterator begin() const
Definition: RefToBaseVector.h:181
edm::RefToBaseVector::clear
void clear()
Definition: RefToBaseVector.h:165
event
Definition: event.py:1