Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:56:36

0001 #ifndef __L1Trigger_VertexFinder_selection_h__
0002 #define __L1Trigger_VertexFinder_selection_h__
0003 
0004 #include "DataFormats/L1Trigger/interface/Vertex.h"
0005 
0006 #include <vector>
0007 
0008 namespace l1tVertexFinder {
0009 
0010   //! Returns primary vertex based on default criterion (max sum pT from all constituent tracks); throws if given empty collection.
0011   const l1t::Vertex& getPrimaryVertex(const std::vector<l1t::Vertex>& aVertexCollection);
0012 
0013   //! Returns vertex for which parameter 'aFunction' returns the highest value; throws if given empty collection.
0014   const l1t::Vertex& getPrimaryVertex(
0015       const std::vector<l1t::Vertex>& aVertexCollection,
0016       const std::function<float(const std::vector<edm::Ptr<l1t::Vertex::Track_t>>&)>& aFunction);
0017 
0018   // const l1t::Vertex& getPrimaryVertex(const std::vector<l1t::Vertex>& aVertexCollection, const std::function<float (const l1t::Vertex::Track_t&)> aFunction);
0019 
0020 }  // end namespace l1tVertexFinder
0021 
0022 #endif