#include <PATPrimaryVertexSelector.h>
Public Types | |
typedef reco::VertexCollection | collection |
typedef container::const_iterator | const_iterator |
typedef std::vector< const reco::Vertex * > | container |
Public Member Functions | |
const_iterator | begin () const |
needed for use with an ObjectSelector More... | |
const_iterator | end () const |
needed for use with an ObjectSelector More... | |
bool | operator() (const reco::Vertex *, const reco::Vertex *) const |
operator used in sorting the selected vertices More... | |
PATPrimaryVertexSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC) | |
void | select (const edm::Handle< collection > &, const edm::Event &, const edm::EventSetup &) |
needed for use with an ObjectSelector More... | |
size_t | size () const |
needed for use with an ObjectSelector More... | |
Private Member Functions | |
bool | acceptTrack (const reco::Track &) const |
track selection More... | |
void | getVertexVariables (const reco::Vertex &, unsigned int &, double &) const |
access to track-related vertex quantities (multiplicity and pt-sum) More... | |
Private Attributes | |
float | chi2Cut_ |
eta cut used for the track selection More... | |
float | dr2Cut_ |
cut on the normalized chi2 More... | |
float | dzCut_ |
cut on the (squared) transverse position More... | |
unsigned int | multiplicityCut_ |
container of selected vertices More... | |
float | ptSumCut_ |
minimum multiplicity of (selected) associated tracks More... | |
container | selected_ |
float | trackEtaCut_ |
minimum pt sum o (selected) associated tracks More... | |
Definition at line 23 of file PATPrimaryVertexSelector.h.
Definition at line 25 of file PATPrimaryVertexSelector.h.
typedef container::const_iterator PATPrimaryVertexSelector::const_iterator |
Definition at line 27 of file PATPrimaryVertexSelector.h.
typedef std::vector<const reco::Vertex*> PATPrimaryVertexSelector::container |
Definition at line 26 of file PATPrimaryVertexSelector.h.
PATPrimaryVertexSelector::PATPrimaryVertexSelector | ( | const edm::ParameterSet & | cfg, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 6 of file PATPrimaryVertexSelector.cc.
References dr2Cut_.
|
private |
track selection
Referenced by size().
|
inline |
needed for use with an ObjectSelector
Definition at line 30 of file PATPrimaryVertexSelector.h.
References selected_.
|
inline |
needed for use with an ObjectSelector
Definition at line 32 of file PATPrimaryVertexSelector.h.
References select(), and selected_.
|
private |
access to track-related vertex quantities (multiplicity and pt-sum)
Definition at line 49 of file PATPrimaryVertexSelector.cc.
References trackEtaCut_, reco::Vertex::tracks_begin(), and reco::Vertex::tracks_end().
Referenced by operator()(), select(), and size().
bool PATPrimaryVertexSelector::operator() | ( | const reco::Vertex * | v1, |
const reco::Vertex * | v2 | ||
) | const |
operator used in sorting the selected vertices
Definition at line 38 of file PATPrimaryVertexSelector.cc.
References getVertexVariables().
Referenced by size().
void PATPrimaryVertexSelector::select | ( | const edm::Handle< collection > & | handle, |
const edm::Event & | event, | ||
const edm::EventSetup & | setup | ||
) |
needed for use with an ObjectSelector
Definition at line 18 of file PATPrimaryVertexSelector.cc.
References ecalDrivenElectronSeedsParameters_cff::beamSpot, chi2Cut_, dr2Cut_, dzCut_, getVertexVariables(), multiplicityCut_, ptSumCut_, and selected_.
Referenced by end().
|
inline |
needed for use with an ObjectSelector
Definition at line 36 of file PATPrimaryVertexSelector.h.
References acceptTrack(), getVertexVariables(), operator()(), and selected_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
private |
eta cut used for the track selection
Definition at line 50 of file PATPrimaryVertexSelector.h.
Referenced by select().
|
private |
cut on the normalized chi2
Definition at line 51 of file PATPrimaryVertexSelector.h.
Referenced by PATPrimaryVertexSelector(), and select().
|
private |
cut on the (squared) transverse position
Definition at line 52 of file PATPrimaryVertexSelector.h.
Referenced by select().
|
private |
container of selected vertices
Definition at line 47 of file PATPrimaryVertexSelector.h.
Referenced by select().
|
private |
minimum multiplicity of (selected) associated tracks
Definition at line 48 of file PATPrimaryVertexSelector.h.
Referenced by select().
|
private |
|
private |
minimum pt sum o (selected) associated tracks
Definition at line 49 of file PATPrimaryVertexSelector.h.
Referenced by getVertexVariables().