Go to the documentation of this file.
7 : multiplicityCut_(
cfg.getParameter<unsigned
int>(
"minMultiplicity")),
8 ptSumCut_(
cfg.getParameter<double>(
"minPtSum")),
9 trackEtaCut_(
cfg.getParameter<double>(
"maxTrackEta")),
10 chi2Cut_(
cfg.getParameter<double>(
"maxNormChi2")),
11 dr2Cut_(
cfg.getParameter<double>(
"maxDeltaR")),
12 dzCut_(
cfg.getParameter<double>(
"maxDeltaZ")) {
23 unsigned int multiplicity;
25 for (collection::const_iterator iv =
handle->begin(); iv !=
handle->end(); ++iv) {
27 if (iv->normalizedChi2() <
chi2Cut_ && fabs(displacement.z()) <
dzCut_ && displacement.perp2() <
dr2Cut_) {
43 return ptSum1 > ptSum2;
47 unsigned int& multiplicity,
48 double& ptSum)
const {
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
void select(const edm::Handle< collection > &, const edm::Event &, const edm::EventSetup &)
needed for use with an ObjectSelector
float dr2Cut_
cut on the normalized chi2
float dzCut_
cut on the (squared) transverse position
float ptSumCut_
minimum multiplicity of (selected) associated tracks
float trackEtaCut_
minimum pt sum o (selected) associated tracks
float chi2Cut_
eta cut used for the track selection
void getVertexVariables(const reco::Vertex &, unsigned int &, double &) const
access to track-related vertex quantities (multiplicity and pt-sum)
unsigned int multiplicityCut_
container of selected vertices
XYZPointD XYZPoint
point in space with cartesian internal representation
XYZVectorD XYZVector
spatial vector with cartesian internal representation
bool operator()(const reco::Vertex *, const reco::Vertex *) const
operator used in sorting the selected vertices
PATPrimaryVertexSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)