10 typedef std::vector<edm::Ptr<l1t::Vertex::Track_t>> Tracks_t;
15 sumPt +=
t->momentum().transverse();
21 const std::vector<l1t::Vertex>& aVertexCollection,
23 if (aVertexCollection.empty())
24 throw std::invalid_argument(
"Cannot find primary vertex from empty vertex collection");
25 return *std::max_element(aVertexCollection.begin(),
26 aVertexCollection.end(),
28 return (aFunction(v1.
tracks()) < aFunction(v2.tracks()));