8 std::vector<cos_lut_fixed_t> cosLUT;
9 for (
unsigned int LUT_idx = 0; LUT_idx <
size; LUT_idx++) {
26 if (local_phi >= (1 << (TTTrack_TrackWord::TrackBitWidths::kPhiSize - 1)))
27 globalPhi -= (1 << TTTrack_TrackWord::TrackBitWidths::kPhiSize);
29 globalPhi += sector_shift;
32 globalPhi = globalPhi +
PhiMax;
33 }
else if (globalPhi >
PhiMax) {
34 globalPhi = globalPhi -
PhiMax;
41 float sliceCentre = 0.0;
42 std::vector<global_phi_t> phiLUT;
43 for (
unsigned int q = 0;
q <=
N;
q++) {
45 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)
ap_ufixed< kCosLUTSize, kCosLUTMagSize, AP_RND_CONV, AP_SAT > cos_lut_fixed_t
static constexpr double stepPhi0
std::vector< global_phi_t > generatePhiSliceLUT(unsigned int N)
std::vector< cos_lut_fixed_t > generateCosLUT(unsigned int size)
ap_uint< TrackBitWidths::kPhiSize > phi_t