#include <RecoTrackRefSelector.h>
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_ |
Definition at line 17 of file RecoTrackRefSelector.h.
Definition at line 25 of file RecoTrackRefSelector.h.
Definition at line 24 of file RecoTrackRefSelector.h.
RecoTrackRefSelector::RecoTrackRefSelector | ( | ) | [inline] |
RecoTrackRefSelector::RecoTrackRefSelector | ( | const edm::ParameterSet & | cfg | ) | [inline] |
Definition at line 30 of file RecoTrackRefSelector.h.
: RecoTrackSelector(cfg) {}
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 ) {}
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 SiPixelRawToDigiRegional_cfi::beamSpot, 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(); }