CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RecoTrackRefSelector Class Reference

#include <RecoTrackRefSelector.h>

Inheritance diagram for RecoTrackRefSelector:
RecoTrackSelector

List of all members.

Public Types

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 (const edm::ParameterSet &cfg)
 RecoTrackRefSelector ()
 Constructors.
 RecoTrackRefSelector (double ptMin, double minRapidity, double maxRapidity, double tip, double lip, int minHit, int min3DHit, double maxChi2, std::vector< std::string > quality, 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_

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.

{}
RecoTrackRefSelector::RecoTrackRefSelector ( const edm::ParameterSet cfg) [inline]

Definition at line 30 of file RecoTrackRefSelector.h.

RecoTrackRefSelector::RecoTrackRefSelector ( double  ptMin,
double  minRapidity,
double  maxRapidity,
double  tip,
double  lip,
int  minHit,
int  min3DHit,
double  maxChi2,
std::vector< std::string >  quality,
std::vector< std::string >  algorithm 
) [inline]

Definition at line 32 of file RecoTrackRefSelector.h.

                                                                                         :
          RecoTrackSelector ( ptMin, minRapidity, maxRapidity,
                              tip, lip, minHit, min3DHit, maxChi2, 
                              quality , algorithm ) {}

Member Function Documentation

const_ref_iterator RecoTrackRefSelector::begin ( void  ) const [inline]

Reimplemented from RecoTrackSelector.

Definition at line 39 of file RecoTrackRefSelector.h.

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

{ return ref_selected_.begin(); }
const_ref_iterator RecoTrackRefSelector::end ( void  ) const [inline]

Reimplemented from RecoTrackSelector.

Definition at line 40 of file RecoTrackRefSelector.h.

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

{ return ref_selected_.end(); }
void RecoTrackRefSelector::select ( const edm::Handle< collection > &  c,
const edm::Event event,
const edm::EventSetup  
) [inline]

Reimplemented from RecoTrackSelector.

Definition at line 42 of file RecoTrackRefSelector.h.

References RecoTrackSelector::bsSrc_, edm::RefVector< C, T, F >::clear(), i, edm::Handle< T >::product(), edm::RefVector< C, T, F >::push_back(), and ref_selected_.

                                                                                             {
    ref_selected_.clear();
    edm::Handle<reco::BeamSpot> beamSpot;
    event.getByLabel(bsSrc_,beamSpot);
    for (unsigned int i = 0; i < c->size(); i++) {

      edm::Ref<collection> trk(c, i);
 
      if ( operator()(*trk,beamSpot.product()) ) {
        ref_selected_.push_back( trk );
      }
    }
  }
size_t RecoTrackRefSelector::size ( void  ) const [inline]

Reimplemented from RecoTrackSelector.

Definition at line 56 of file RecoTrackRefSelector.h.

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

{ return ref_selected_.size(); }

Member Data Documentation

Definition at line 59 of file RecoTrackRefSelector.h.

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