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
RecoTrackRefSelector Class Reference

#include <RecoTrackRefSelector.h>

Inheritance diagram for RecoTrackRefSelector:
RecoTrackSelector

Public Types

typedef
ref_container::const_iterator 
const_ref_iterator
 
typedef reco::TrackRefVector ref_container
 
- Public Types inherited from RecoTrackSelector
typedef reco::TrackCollection collection
 
typedef container::const_iterator const_iterator
 
typedef std::vector< const
reco::Track * > 
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)
 
 RecoTrackRefSelector (double ptMin, double minRapidity, double maxRapidity, double tip, double lip, int minHit, int min3DHit, double maxChi2, const std::vector< std::string > &quality, const std::vector< std::string > &algorithm)
 
void select (const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &)
 
size_t size () const
 
- Public Member Functions inherited from RecoTrackSelector
const_iterator begin () const
 
const_iterator end () const
 
bool operator() (const reco::Track &t, edm::Event &event)
 Operator() performs the selection: e.g. if (recoTrackSelector(track)) {...}. More...
 
bool operator() (const reco::Track &t, const reco::BeamSpot *bs_)
 
bool operator() (const reco::Track &t)
 
 RecoTrackSelector ()
 Constructors. More...
 
 RecoTrackSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
 RecoTrackSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
 
 RecoTrackSelector (double ptMin, double minRapidity, double maxRapidity, double tip, double lip, int minHit, int min3DHit, double maxChi2, const std::vector< std::string > &quality, const std::vector< std::string > &algorithm)
 
void select (const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &)
 
size_t size () const
 

Private Attributes

ref_container ref_selected_
 

Additional Inherited Members

- Protected Attributes inherited from RecoTrackSelector
std::vector
< reco::TrackBase::TrackAlgorithm
algorithm_
 
const reco::BeamSpotbs
 
edm::EDGetTokenT< reco::BeamSpotbsSrcToken_
 
double lip_
 
double maxChi2_
 
double maxRapidity_
 
int min3DHit_
 
int minHit_
 
double minRapidity_
 
edm::EventID previousEvent
 
double ptMin_
 
std::vector
< reco::TrackBase::TrackQuality
quality_
 
container selected_
 
double tip_
 

Detailed Description

Definition at line 17 of file RecoTrackRefSelector.h.

Member Typedef Documentation

Definition at line 25 of file RecoTrackRefSelector.h.

Definition at line 24 of file RecoTrackRefSelector.h.

Constructor & Destructor Documentation

RecoTrackRefSelector::RecoTrackRefSelector ( )
inline

Constructors.

Definition at line 28 of file RecoTrackRefSelector.h.

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

Definition at line 30 of file RecoTrackRefSelector.h.

30 : RecoTrackSelector(cfg, iC) {}
RecoTrackSelector()
Constructors.
RecoTrackRefSelector::RecoTrackRefSelector ( double  ptMin,
double  minRapidity,
double  maxRapidity,
double  tip,
double  lip,
int  minHit,
int  min3DHit,
double  maxChi2,
const std::vector< std::string > &  quality,
const std::vector< std::string > &  algorithm 
)
inline

Member Function Documentation

const_ref_iterator RecoTrackRefSelector::begin ( void  ) const
inline

Definition at line 39 of file RecoTrackRefSelector.h.

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

39 { return ref_selected_.begin(); }
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
const_ref_iterator RecoTrackRefSelector::end ( void  ) const
inline

Definition at line 40 of file RecoTrackRefSelector.h.

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

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

40 { return ref_selected_.end(); }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
void RecoTrackRefSelector::select ( const edm::Handle< collection > &  c,
const edm::Event event,
const edm::EventSetup  
)
inline

Definition at line 42 of file RecoTrackRefSelector.h.

References SiPixelRawToDigiRegional_cfi::beamSpot, RecoTrackSelector::bsSrcToken_, edm::RefVector< C, T, F >::clear(), i, edm::Handle< T >::product(), edm::RefVector< C, T, F >::push_back(), and ref_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().

42  {
45  event.getByToken(bsSrcToken_,beamSpot);
46  for (unsigned int i = 0; i < c->size(); i++) {
47 
48  edm::Ref<collection> trk(c, i);
49 
50  if ( operator()(*trk,beamSpot.product()) ) {
51  ref_selected_.push_back( trk );
52  }
53  }
54  }
int i
Definition: DBlmapReader.cc:9
edm::EDGetTokenT< reco::BeamSpot > bsSrcToken_
T const * product() const
Definition: Handle.h:81
void clear()
Clear the vector.
Definition: RefVector.h:133
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
size_t RecoTrackRefSelector::size ( void  ) const
inline

Definition at line 56 of file RecoTrackRefSelector.h.

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

56 { return ref_selected_.size(); }
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89

Member Data Documentation

ref_container RecoTrackRefSelector::ref_selected_
private

Definition at line 59 of file RecoTrackRefSelector.h.

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