Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:26

0001 #ifndef L1Trigger_Phase2L1ParticleFlow_LINPUPPI_BITS_H
0002 #define L1Trigger_Phase2L1ParticleFlow_LINPUPPI_BITS_H
0003 
0004 #include "DataFormats/L1TParticleFlow/interface/datatypes.h"
0005 
0006 namespace linpuppi {
0007   typedef ap_ufixed<12, 6, AP_TRN, AP_SAT> sumTerm_t;
0008   typedef ap_ufixed<16, 0, AP_RND, AP_SAT> dr2inv_t;
0009   typedef ap_fixed<12, 7, AP_TRN, AP_SAT> x2_t;
0010   typedef ap_ufixed<7, 2, AP_RND, AP_WRAP> alphaSlope_t;
0011   typedef ap_fixed<12, 8, AP_RND, AP_WRAP> alpha_t;
0012   typedef ap_ufixed<6, 0, AP_TRN, AP_WRAP> ptSlope_t;
0013 
0014   constexpr float DR2_LSB = l1ct::Scales::ETAPHI_LSB * l1ct::Scales::ETAPHI_LSB;
0015   constexpr float PT2DR2_LSB = l1ct::Scales::INTPT_LSB * l1ct::Scales::INTPT_LSB / DR2_LSB;
0016   constexpr int SUM_BITSHIFT = sumTerm_t::width - sumTerm_t::iwidth;
0017 }  // namespace linpuppi
0018 
0019 #endif