1 #ifndef L1Trigger_L1TTrackMatch_L1TkEtMissEmuAlgo_HH 2 #define L1Trigger_L1TTrackMatch_L1TkEtMissEmuAlgo_HH 34 typedef ap_ufixed<kMETSize, kMETMagSize, AP_RND_CONV, AP_SAT>
METWord_t;
36 typedef ap_int<TTTrack_TrackWord::TrackBitWidths::kPhiSize + kGlobalPhiExtra>
global_phi_t;
37 typedef ap_ufixed<kCosLUTSize, kCosLUTMagSize, AP_RND_CONV, AP_SAT>
cos_lut_fixed_t;
38 typedef ap_ufixed<kAtanLUTSize, kAtanLUTMagSize, AP_RND_CONV, AP_SAT>
atan_lut_fixed_t;
39 typedef ap_fixed<kMETSize + kEtExtra, kMETMagSize + kEtExtra, AP_RND_CONV, AP_SAT>
Et_t;
40 typedef ap_fixed<kMETPhiSize + kEtExtra, 4, AP_RND_CONV, AP_SAT>
metphi_fixed_t;
73 log <<
"The " <<
name <<
"[" << lut.size() <<
"] values are ... \n" << std::setprecision(30);
74 for (
unsigned int i = 0;
i < lut.size();
i++) {
75 log <<
"\t" <<
i <<
"\t" << lut[
i] <<
"\n";
ap_int< kMETPhiSize > METWordphi_t
ap_fixed< kMETSize+kEtExtra, kMETMagSize+kEtExtra, AP_RND_CONV, AP_SAT > Et_t
const unsigned int kGlobalPhiExtra
ap_int< TTTrack_TrackWord::TrackBitWidths::kPhiSize+kGlobalPhiExtra > global_phi_t
void printLUT(std::vector< T > lut, std::string module="", std::string name="")
ap_ufixed< kAtanLUTSize, kAtanLUTMagSize, AP_RND_CONV, AP_SAT > atan_lut_fixed_t
ap_ufixed< kMETSize, kMETMagSize, AP_RND_CONV, AP_SAT > METWord_t
global_phi_t localToGlobalPhi(TTTrack_TrackWord::phi_t local_phi, global_phi_t sector_shift)
const double kStepMETwordEt
const unsigned int kNQuadrants
const unsigned int kNSector
const unsigned int kCosLUTMagSize
const unsigned int kAtanLUTSize
const unsigned int kAtanLUTMagSize
const double kMaxCosLUTPhi
const double kStepMETwordPhi
const unsigned int kEtExtra
const unsigned int kMETSize
ap_ufixed< kCosLUTSize, kCosLUTMagSize, AP_RND_CONV, AP_SAT > cos_lut_fixed_t
const unsigned int kInternalPtWidth
ap_fixed< kMETPhiSize+kEtExtra, 4, AP_RND_CONV, AP_SAT > metphi_fixed_t
const unsigned int kMETPhiSize
std::vector< global_phi_t > generatePhiSliceLUT(unsigned int N)
const unsigned int kPtMagSize
std::vector< cos_lut_fixed_t > generateCosLUT(unsigned int size)
const unsigned int kCosLUTSize
const unsigned int kMETMagSize
ap_uint< TrackBitWidths::kPhiSize > phi_t
ap_ufixed< kMETPhiSize+kEtExtra+7, kMETPhiSize - 2, AP_RND_CONV, AP_SAT > pi_bins_fixed_t