Main Page
Namespaces
Classes
Package Documentation
RecoVertex
PrimaryVertexProducer
src
PrimaryVertexSorter.cc
Go to the documentation of this file.
1
#include "
RecoVertex/PrimaryVertexProducer/interface/PrimaryVertexSorter.h
"
2
#include "
DataFormats/VertexReco/interface/Vertex.h
"
3
#include "
RecoVertex/PrimaryVertexProducer/interface/VertexHigherPtSquared.h
"
4
5
using namespace
reco
;
6
7
VertexCollection
8
PrimaryVertexSorter::sortedList
(
const
VertexCollection
& unsortedPVColl)
const
9
{
10
VertexCollection
pvs = unsortedPVColl;
11
sort
(pvs.begin(), pvs.end(),
VertexHigherPtSquared
());
12
return
pvs;
13
}
jetUpdater_cfi.sort
sort
Definition:
jetUpdater_cfi.py:29
PrimaryVertexSorter::sortedList
std::vector< reco::Vertex > sortedList(const reco::VertexCollection &primaryVertex) const
Definition:
PrimaryVertexSorter.cc:8
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition:
VertexFwd.h:9
VertexHigherPtSquared
Definition:
VertexHigherPtSquared.h:13
VertexHigherPtSquared.h
Vertex.h
PrimaryVertexSorter.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:44
Generated for CMSSW Reference Manual by
1.8.11