CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
PrimaryVertexSorter Class Reference

#include <PrimaryVertexSorter.h>

Public Member Functions

std::vector< reco::VertexsortedList (const reco::VertexCollection &primaryVertex) const
 

Detailed Description

class to sort VertexCollection in decreasing order of the sum of the squared track pT's

Definition at line 11 of file PrimaryVertexSorter.h.

Member Function Documentation

VertexCollection PrimaryVertexSorter::sortedList ( const reco::VertexCollection primaryVertex) const

Definition at line 8 of file PrimaryVertexSorter.cc.

References python.multivaluedict::sort().

Referenced by QualityCutsAnalyzer::LoopOverJetTracksAssociation().

9 {
10  VertexCollection pvs = unsortedPVColl;
11  sort(pvs.begin(), pvs.end(), VertexHigherPtSquared());
12  return pvs;
13 }
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9