1 #ifndef L1Trigger_L1TTrackMatch_L1TrackUnpacker_HH 2 #define L1Trigger_L1TTrackMatch_L1TrackUnpacker_HH 20 typedef ap_fixed<TTTrack_TrackWord::TrackBitWidths::kTanlSize, ETA_INTPART_BITS, AP_TRN, AP_SAT>
glbeta_intern;
21 typedef ap_int<TTTrack_TrackWord::TrackBitWidths::kPhiSize + kExtraGlobalPhiBit>
glbphi_intern;
22 typedef ap_int<TTTrack_TrackWord::TrackBitWidths::kZ0Size>
z0_intern;
23 typedef ap_uint<TTTrack_TrackWord::TrackBitWidths::kD0Size>
d0_intern;
27 unsigned int digitized_maximum = (1 << (maxBits - 1)) - 1;
28 if (digitized_value > digitized_maximum)
29 digitized_value = digitized_maximum;
31 digitized_value = (1 << maxBits) - digitized_value;
32 return digitized_value;
36 unsigned int digitized_maximum = (1 << maxBits) - 1;
37 if (
bits & (1 << (maxBits - 1))) {
41 return (
double(
bits & digitized_maximum) + 0.5) *
step * isign;
const unsigned int PT_INTPART_BITS
Abs< T >::type abs(const T &t)
ap_ufixed< TTTrack_TrackWord::TrackBitWidths::kRinvSize - 1, PT_INTPART_BITS, AP_TRN, AP_SAT > pt_intern
ap_int< TTTrack_TrackWord::TrackBitWidths::kZ0Size > z0_intern
const double BitToDouble(unsigned int bits, unsigned int maxBits, double step)
const unsigned int ETA_INTPART_BITS
ap_int< TTTrack_TrackWord::TrackBitWidths::kPhiSize+kExtraGlobalPhiBit > glbphi_intern
const unsigned int kExtraGlobalPhiBit
ap_fixed< TTTrack_TrackWord::TrackBitWidths::kTanlSize, ETA_INTPART_BITS, AP_TRN, AP_SAT > glbeta_intern
ap_uint< TTTrack_TrackWord::TrackBitWidths::kD0Size > d0_intern
const unsigned int DoubleToBit(double value, unsigned int maxBits, double step)