2 #ifndef L1Trigger_DemonstratorTools_codecs_tracks_h 3 #define L1Trigger_DemonstratorTools_codecs_tracks_h 22 unsigned int etaSector = (
track.getTrackWord()(TTTrack_TrackWord::TrackBitLocations::kTanlMSB,
23 TTTrack_TrackWord::TrackBitLocations::kTanlMSB)
26 return etaSector + (2 *
track.phiSector());
30 unsigned int etaSector = (
id % 2);
31 unsigned int phiSector = (
static_cast<unsigned int>(
id) - etaSector) / 2;
32 return std::pair<unsigned int, unsigned int>(etaSector, phiSector);
ap_uint< 96 > encodeTrack(const TTTrack_TrackWord &t)
std::array< std::vector< ap_uint< 64 > >, 18 > encodeTracks(const edm::View< TTTrack< Ref_Phase2TrackerDigi_ >> &, int debug=0)
static std::pair< unsigned int, unsigned int > sectorsEtaPhiFromGTTLinkID(unsigned int id)
unsigned int gttLinkID(T track)
Class to store the L1 Track Trigger tracks.
std::array< std::vector< ap_uint< 96 > >, 18 > getTrackWords(const edm::View< TTTrack< Ref_Phase2TrackerDigi_ >> &)
bool trackInCollection(const edm::Ref< std::vector< TTTrack< Ref_Phase2TrackerDigi_ >>> &, const edm::Handle< edm::RefVector< std::vector< TTTrack< Ref_Phase2TrackerDigi_ >>>> &)
std::vector< TTTrack_TrackWord > decodeTracks(const std::vector< ap_uint< 64 >> &)