8 std::vector<cos_lut_fixed_t> cosLUT;
27 if (local_phi >= (1 << (TTTrack_TrackWord::TrackBitWidths::kPhiSize - 1)))
28 globalPhi -= (1 << TTTrack_TrackWord::TrackBitWidths::kPhiSize);
30 globalPhi += sector_shift;
33 globalPhi = globalPhi +
PhiMax;
34 }
else if (globalPhi >
PhiMax) {
35 globalPhi = globalPhi -
PhiMax;
42 float sliceCentre = 0.0;
43 std::vector<global_phi_t> phiLUT;
44 for (
unsigned int q = 0;
q <=
N;
q++) {
46 sliceCentre += 2 *
M_PI /
N;
ap_int< TTTrack_TrackWord::TrackBitWidths::kPhiSize+kGlobalPhiExtra > global_phi_t
global_phi_t localToGlobalPhi(TTTrack_TrackWord::phi_t local_phi, global_phi_t sector_shift)
Cos< T >::type cos(const T &t)
const unsigned int kCosLUTBins
ap_ufixed< kCosLUTSize, kCosLUTMagSize, AP_RND_CONV, AP_SAT > cos_lut_fixed_t
const unsigned int kCosLUTShift
static constexpr double stepPhi0
std::vector< global_phi_t > generatePhiSliceLUT(unsigned int N)
std::vector< cos_lut_fixed_t > generateCosLUT()
ap_uint< TrackBitWidths::kPhiSize > phi_t