10 std::vector<ap_uint<64>> tkJetWords;
12 for (
const auto& tkJet : tkJets) {
14 tkJetWords.push_back(ap_uint<64>(0));
17 std::array<std::vector<ap_uint<64>>, 1> linkData;
19 for (
size_t i = 0;
i < linkData.size();
i++) {
21 tkJetWords.resize(24, 0);
22 linkData.at(
i) = tkJetWords;
29 std::vector<l1t::TkJetWord> tkJets;
31 for (
size_t f = 0;
f < frames.size();
f += 2) {
38 TkJetWord::pt_t(frames[
f](TkJetWord::TkJetBitLocations::kPtMSB, TkJetWord::TkJetBitLocations::kPtLSB)),
40 frames[
f](TkJetWord::TkJetBitLocations::kGlbPhiMSB, TkJetWord::TkJetBitLocations::kGlbPhiLSB)),
42 frames[
f](TkJetWord::TkJetBitLocations::kGlbEtaMSB, TkJetWord::TkJetBitLocations::kGlbEtaLSB)),
43 TkJetWord::z0_t(frames[
f](TkJetWord::TkJetBitLocations::kZ0MSB, TkJetWord::TkJetBitLocations::kZ0LSB)),
44 TkJetWord::nt_t(frames[
f](TkJetWord::TkJetBitLocations::kNtMSB, TkJetWord::TkJetBitLocations::kNtLSB)),
45 TkJetWord::nx_t(frames[
f](TkJetWord::TkJetBitLocations::kXtMSB, TkJetWord::TkJetBitLocations::kXtLSB)),
47 frames[
f](TkJetWord::TkJetBitLocations::kDispFlagMSB, TkJetWord::TkJetBitLocations::kDispFlagLSB)),
ap_int< kGlbEtaSize > glbeta_t
ap_int< kGlbPhiSize > glbphi_t
ap_ufixed< kPtSize, kPtMagSize, AP_TRN, AP_SAT > pt_t
ap_uint< kDispFlagSize > dispflag_t
ap_uint< TkJetBitWidths::kUnassignedSize > tkjetunassigned_t
ap_uint< 64 > encodeTkJet(const l1t::TkJetWord &t)
std::vector< l1t::TkJetWord > decodeTkJets(const std::vector< ap_uint< 64 >> &)
std::array< std::vector< ap_uint< 64 > >, 1 > encodeTkJets(const edm::View< l1t::TkJetWord > &)