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 
15 
17  public:
20 
22  double pTSquaredSum(const PVCluster &v) const;
23  double pTSquaredSum(const reco::Vertex &v) const;
24 
26  bool operator() (const PVCluster &v1, const PVCluster &v2) const;
27  bool operator() (const reco::Vertex &v1, const reco::Vertex &v2) const;
28 };
29 #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.