CMS 3D CMS Logo

etsums.h
Go to the documentation of this file.
1 
2 #ifndef L1Trigger_DemonstratorTools_codecs_EtSum_h
3 #define L1Trigger_DemonstratorTools_codecs_EtSum_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> encodeEtSum(const l1t::EtSum& v);
17 
18  // Encodes EtSum collection onto 1 'logical' output link
19  std::array<std::vector<ap_uint<64>>, 1> encodeEtSums(const edm::View<l1t::EtSum>&);
20 
21  std::vector<l1t::EtSum> decodeEtSums(const std::vector<ap_uint<64>>&);
22 
23 } // namespace l1t::demo::codecs
24 
25 #endif
ap_uint< 64 > encodeEtSum(const l1t::EtSum &v)
Definition: codecs_etsums.cc:6
std::array< std::vector< ap_uint< 64 > >, 1 > encodeEtSums(const edm::View< l1t::EtSum > &)
std::vector< l1t::EtSum > decodeEtSums(const std::vector< ap_uint< 64 >> &)