test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
RecoTrackSelector Class Reference

#include <RecoTrackSelector.h>

Inheritance diagram for RecoTrackSelector:
RecoTrackSelectorBase

Public Types

typedef reco::TrackCollection collection
 
typedef container::const_iterator const_iterator
 
typedef std::vector< const
reco::Track * > 
container
 

Public Member Functions

const_iterator begin () const
 
const_iterator end () const
 
 RecoTrackSelector ()
 Constructors. More...
 
 RecoTrackSelector (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
 
 RecoTrackSelectorBase ()
 
 RecoTrackSelectorBase (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
 

Private Attributes

container selected_
 

Detailed Description

Definition at line 10 of file RecoTrackSelector.h.

Member Typedef Documentation

Definition at line 12 of file RecoTrackSelector.h.

typedef container::const_iterator RecoTrackSelector::const_iterator

Definition at line 14 of file RecoTrackSelector.h.

typedef std::vector<const reco::Track *> RecoTrackSelector::container

Definition at line 13 of file RecoTrackSelector.h.

Constructor & Destructor Documentation

RecoTrackSelector::RecoTrackSelector ( )
inline

Constructors.

Definition at line 17 of file RecoTrackSelector.h.

17 {}
RecoTrackSelector::RecoTrackSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 18 of file RecoTrackSelector.h.

18  :
19  RecoTrackSelectorBase( cfg, iC ) {}

Member Function Documentation

const_iterator RecoTrackSelector::begin ( void  ) const
inline

Definition at line 21 of file RecoTrackSelector.h.

References selected_.

21 { return selected_.begin(); }
const_iterator RecoTrackSelector::end ( void  ) const
inline

Definition at line 22 of file RecoTrackSelector.h.

References selected_.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

22 { return selected_.end(); }
void RecoTrackSelector::select ( const edm::Handle< collection > &  c,
const edm::Event event,
const edm::EventSetup es 
)
inline

Definition at line 24 of file RecoTrackSelector.h.

References RecoTrackSelectorBase::init(), and selected_.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

24  {
25  init(event,es);
26  selected_.clear();
27  for( reco::TrackCollection::const_iterator trk = c->begin();
28  trk != c->end(); ++ trk )
29  if ( operator()(*trk) ) {
30  selected_.push_back( & * trk );
31  }
32  }
void init(const edm::Event &event, const edm::EventSetup &es)
size_t RecoTrackSelector::size ( void  ) const
inline

Definition at line 34 of file RecoTrackSelector.h.

References selected_.

34 { return selected_.size(); }

Member Data Documentation

container RecoTrackSelector::selected_
private

Definition at line 37 of file RecoTrackSelector.h.

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