CMS 3D CMS Logo

Public Member Functions

PrimaryVertexSorter Class Reference

#include <PrimaryVertexSorter.h>

List of all members.

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().

{
  VertexCollection pvs = unsortedPVColl;
  sort(pvs.begin(), pvs.end(), VertexHigherPtSquared());
  return pvs;
}