CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PVClusterComparer.h
Go to the documentation of this file.
1 #ifndef RecoPixelVertexing_PVClusterComparer_h
2 #define RecoPixelVertexing_PVClusterComparer_h
3 
17 
19  public:
22 
24  double pTSquaredSum(const PVCluster &v) const;
25  double pTSquaredSum(const reco::Vertex &v) const;
26 
28  bool operator() (const PVCluster &v1, const PVCluster &v2) const;
29  bool operator() (const reco::Vertex &v1, const reco::Vertex &v2) const;
30 };
31 #endif
bool operator()(const PVCluster &v1, const PVCluster &v2) const
Use this operator in a std::sort to sort them in decreasing sumPt.
double pTSquaredSum(const PVCluster &v) const
Calculate sum of square of the pT's of the tracks in the vertex.
PVClusterComparer()
Constructor does nothing, no data members.