CMS 3D CMS Logo

htsums.h
Go to the documentation of this file.
1 
2 #ifndef L1Trigger_DemonstratorTools_codecs_HtSum_h
3 #define L1Trigger_DemonstratorTools_codecs_HtSum_h
4 
5 #include <array>
6 #include <vector>
7 
8 #include "ap_int.h"
9 
13 
14 namespace l1t::demo::codecs {
15 
16  ap_uint<64> encodeHtSum(const l1t::EtSum& v);
17 
18  // Encodes EtSum collection onto 1 'logical' output link
19  std::array<std::vector<ap_uint<64>>, 1> encodeHtSums(const edm::View<l1t::EtSum>&);
20 
21  std::vector<l1t::EtSum> decodeHtSums(const std::vector<ap_uint<64>>&);
22 
23 } // namespace l1t::demo::codecs
24 
25 #endif
std::array< std::vector< ap_uint< 64 > >, 1 > encodeHtSums(const edm::View< l1t::EtSum > &)
ap_uint< 64 > encodeHtSum(const l1t::EtSum &v)
Definition: codecs_htsums.cc:6
std::vector< l1t::EtSum > decodeHtSums(const std::vector< ap_uint< 64 >> &)