1 #ifndef DataFormats_L1TCalorimeterPhase2_DigitizedClusterGT_h 2 #define DataFormats_L1TCalorimeterPhase2_DigitizedClusterGT_h 15 static constexpr
float LSB_PT = 0.03125;
30 if (pt_f >= maxPt_f) {
31 return (ap_uint<16>)0xFFFF;
33 return (ap_uint<16>)(pt_f /
LSB_PT);
38 ap_int<13> phi_digitized = (phi_f /
LSB_PHI);
44 ap_int<14> eta_digitized = (eta_f /
LSB_ETA);
55 (
void)fullyDigitizedInputs;
57 ((ap_uint<64>)
isValid) | (((ap_uint<64>)
pt) << 1) | (((ap_uint<64>)
phi) << 17) | (((ap_uint<64>)
eta) << 30);
static constexpr unsigned int n_bits_pt
ap_uint< 64 > data() const
ap_uint< 1 > digitizeIsValid(bool isValid)
DigitizedClusterGT(ap_uint< 1 > isValid, ap_uint< 16 > pt, ap_int< 13 > phi, ap_int< 14 > eta, bool fullyDigitizedInputs)
const int unusedBitsStart() const
DigitizedClusterGT(bool isValid, float pt_f, float phi_f, float eta_f)
std::vector< l1tp2::DigitizedClusterGT > DigitizedClusterGTCollection
static constexpr unsigned int n_bits_eta_pi
TEMPL(T2) struct Divides void
DigitizedClusterGT(ap_uint< 64 > data)
ap_int< 14 > digitizeEta(float eta_f)
ap_uint< 1 > isValid() const
bool passNullBitsCheck(void) const
ap_int< 13 > digitizePhi(float phi_f)
static constexpr unsigned int n_bits_unused_start
static constexpr float LSB_PT
static constexpr unsigned int n_bits_phi_pi
ap_uint< 16 > digitizePt(float pt_f)
ap_uint< 64 > clusterData
Power< A, B >::type pow(const A &a, const B &b)