00001 #ifndef VertexHigherPtSquared_H 00002 #define VertexHigherPtSquared_H 00003 00004 #include "RecoVertex/VertexPrimitives/interface/TransientVertex.h" 00005 #include "TrackingTools/TransientTrack/interface/TransientTrack.h" 00006 #include "DataFormats/VertexReco/interface/Vertex.h" 00007 #include <vector> 00008 00013 struct VertexHigherPtSquared { 00014 00015 bool operator() ( const TransientVertex & v1, 00016 const TransientVertex & v2) const; 00017 00018 bool operator() ( const reco::Vertex & v1, const reco::Vertex & v2) const; 00019 00020 00021 public: 00022 00023 double sumPtSquared(const std::vector<reco::TransientTrack> & tks) const; 00024 double sumPtSquared(const reco::Vertex & v) const; 00025 00026 00027 }; 00028 00029 #endif