CMS 3D CMS Logo

tracks.h
Go to the documentation of this file.
1 
2 #ifndef L1Trigger_DemonstratorTools_codecs_tracks_h
3 #define L1Trigger_DemonstratorTools_codecs_tracks_h
4 
5 #include <array>
6 #include <sstream>
7 #include <vector>
8 
9 #include "ap_int.h"
10 
14 
16 
17 namespace l1t::demo::codecs {
18 
19  ap_uint<96> encodeTrack(const TTTrack_TrackWord& t);
20 
21  // Encodes track collection onto 18 'logical' output links (2x9 eta-phi sectors; first 9 negative eta)
22  std::array<std::vector<ap_uint<64>>, 18> encodeTracks(const edm::View<TTTrack<Ref_Phase2TrackerDigi_>>&,
23  int debug = 0);
24 
25 } // namespace l1t::demo::codecs
26 
27 #endif
ap_uint< 96 > encodeTrack(const TTTrack_TrackWord &t)
Definition: codecs_tracks.cc:6
std::array< std::vector< ap_uint< 64 > >, 18 > encodeTracks(const edm::View< TTTrack< Ref_Phase2TrackerDigi_ >> &, int debug=0)
Definition: codecs_tracks.cc:9
#define debug
Definition: HDRShower.cc:19
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29