1 #ifndef L1Trigger_L1TTrackMatch_L1TkEtMissEmuTrackTransform_HH 2 #define L1Trigger_L1TTrackMatch_L1TkEtMissEmuTrackTransform_HH 49 template <
class track,
class vertex>
73 template <
class track,
class vertex>
78 unsigned int temp_eta;
81 if ((track_ref.getRinvWord() & (1 << (TTTrack_TrackWord::TrackBitWidths::kRinvSize - 1))) != 0) {
83 temp_pt =
abs((1 << (TTTrack_TrackWord::TrackBitWidths::kRinvSize - 1)) - track_ref.getRinvWord());
85 temp_pt = track_ref.getRinvWord();
90 if ((track_ref.getTanlWord() & (1 << (TTTrack_TrackWord::TrackBitWidths::kTanlSize - 1))) != 0) {
93 temp_eta =
abs((1 << (TTTrack_TrackWord::TrackBitWidths::kTanlSize)) - track_ref.getTanlWord());
95 temp_eta = track_ref.getTanlWord();
101 track_ref.setTrackWordBits();
103 Outword.
pt = l1tmetemu::digitizeSignedValue<TTTrack_TrackWord::rinv_t>(
106 Outword.
eta = l1tmetemu::digitizeSignedValue<TTTrack_TrackWord::tanl_t>(
111 Outword.
chi2rzdof = track_ref.getChi2RZWord();
112 Outword.
bendChi2 = track_ref.getBendChi2Word();
114 Outword.
Hitpattern = track_ref.getHitPatternWord();
115 Outword.
Sector = track_ref.phiSector();
116 Outword.
EtaSector = (track_ref.getTanlWord() & (1 << (TTTrack_TrackWord::TrackBitWidths::kTanlSize - 1)));
117 Outword.
phi = track_ref.phi();
120 unsigned int temp_pv = l1tmetemu::digitizeSignedValue<TTTrack_TrackWord::z0_t>(
122 TTTrack_TrackWord::TrackBitWidths::kZ0Size,
TTTrack_TrackWord::chi2rphi_t chi2rphidof
ap_uint< kInternalVTXWidth > z_t
TTTrack_TrackWord::chi2rz_t chi2rzdof
static std::string const input
const unsigned int kInternalVTXWidth
unsigned int transformSignedValue(unsigned int bits, unsigned int oldnBits, unsigned int newnBits)
TTTrack_TrackWord::hit_t Hitpattern
Abs< T >::type abs(const T &t)
ap_uint< kInternalEtaWidth > eta_t
ap_uint< TrackBitWidths::kHitPatternSize > hit_t
ap_uint< TrackBitWidths::kChi2RZSize > chi2rz_t
const unsigned int kInternalPtWidth
ap_uint< kInternalPhiWidth+kGlobalPhiExtra > global_phi_t
l1tmetemu::nstub_t nstubs
l1tmetemu::global_phi_t globalPhi
TTTrack_TrackWord::bendChi2_t bendChi2
const unsigned int kInternalEtaWidth
static constexpr double stepZ0
ap_uint< TrackBitWidths::kChi2RPhiSize > chi2rphi_t
ap_uint< kInternalPtWidth > pt_t
ap_uint< TrackBitWidths::kBendChi2Size > bendChi2_t
ap_uint< TrackBitWidths::kPhiSize > phi_t