Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:38

0001 
0002 #ifndef L1Trigger_DemonstratorTools_codecs_vertices_h
0003 #define L1Trigger_DemonstratorTools_codecs_vertices_h
0004 
0005 #include <array>
0006 #include <vector>
0007 
0008 #include "ap_int.h"
0009 
0010 #include "DataFormats/Common/interface/View.h"
0011 #include "DataFormats/L1Trigger/interface/Vertex.h"
0012 #include "DataFormats/L1Trigger/interface/VertexWord.h"
0013 
0014 namespace l1t::demo::codecs {
0015 
0016   ap_uint<64> encodeVertex(const l1t::VertexWord& v);
0017 
0018   // Encodes vertex collection onto 1 'logical' output link
0019   std::array<std::vector<ap_uint<64>>, 1> encodeVertices(const edm::View<l1t::VertexWord>&);
0020 
0021   std::vector<l1t::VertexWord> decodeVertices(const std::vector<ap_uint<64>>&);
0022 
0023 }  // namespace l1t::demo::codecs
0024 
0025 #endif