CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
l1t::L1TGT_CommonSum< N > Struct Template Reference

#include <L1GTEvaluationInterface.h>

Inheritance diagram for l1t::L1TGT_CommonSum< N >:
l1t::L1TGT_Interface< N > l1t::L1TGT_BaseInterface

Public Member Functions

 L1TGT_CommonSum (int valid=0, int pT=0, int phi=0, int scalar_sum_pT=0)
 
ap_uint< Npack () const override
 
ap_uint< 46 > pack_common () const
 
P2GTCandidate to_GTObject () const override
 
ap_uint< Nunpack (const ap_uint< N > &packed) override
 
- Public Member Functions inherited from l1t::L1TGT_Interface< N >
std::size_t packed_width () const override
 
- Public Member Functions inherited from l1t::L1TGT_BaseInterface
virtual ~L1TGT_BaseInterface ()
 

Public Attributes

ap_int< 13 > phi
 
ap_uint< 16 > pT
 
ap_uint< 16 > scalar_sum_pT
 
ap_uint< 1 > valid
 

Additional Inherited Members

- Static Public Attributes inherited from l1t::L1TGT_Interface< N >
static constexpr std::size_t WIDTH = N
 

Detailed Description

template<std::size_t N>
struct l1t::L1TGT_CommonSum< N >

Definition at line 86 of file L1GTEvaluationInterface.h.

Constructor & Destructor Documentation

◆ L1TGT_CommonSum()

template<std::size_t N>
l1t::L1TGT_CommonSum< N >::L1TGT_CommonSum ( int  valid = 0,
int  pT = 0,
int  phi = 0,
int  scalar_sum_pT = 0 
)
inline

Member Function Documentation

◆ pack()

template<std::size_t N>
ap_uint<N> l1t::L1TGT_CommonSum< N >::pack ( ) const
inlineoverridevirtual

Implements l1t::L1TGT_Interface< N >.

Definition at line 97 of file L1GTEvaluationInterface.h.

97 { return pack_common(); }
ap_uint< 46 > pack_common() const

◆ pack_common()

template<std::size_t N>
ap_uint<46> l1t::L1TGT_CommonSum< N >::pack_common ( ) const
inline

Definition at line 95 of file L1GTEvaluationInterface.h.

Referenced by l1t::L1TGT_CommonSum< 64 >::pack().

95 { return l1t_pack_int<ap_uint<46>>(valid, pT, phi, scalar_sum_pT); }

◆ to_GTObject()

template<std::size_t N>
P2GTCandidate l1t::L1TGT_CommonSum< N >::to_GTObject ( ) const
inlineoverridevirtual

Implements l1t::L1TGT_BaseInterface.

Definition at line 103 of file L1GTEvaluationInterface.h.

103  {
104  P2GTCandidate gt_object;
105  gt_object.setHwPT(pT);
106  gt_object.setHwPhi(phi);
107  gt_object.setHwSca_sum(scalar_sum_pT);
108 
109  return gt_object;
110  }

◆ unpack()

template<std::size_t N>
ap_uint<N> l1t::L1TGT_CommonSum< N >::unpack ( const ap_uint< N > &  packed)
inlineoverridevirtual

Implements l1t::L1TGT_Interface< N >.

Definition at line 99 of file L1GTEvaluationInterface.h.

99  {
100  return l1t_unpack_int(packed, valid, pT, phi, scalar_sum_pT);
101  }
A l1t_unpack_int(const A &packed, Args &&... args)

Member Data Documentation

◆ phi

template<std::size_t N>
ap_int<13> l1t::L1TGT_CommonSum< N >::phi

◆ pT

template<std::size_t N>
ap_uint<16> l1t::L1TGT_CommonSum< N >::pT

◆ scalar_sum_pT

template<std::size_t N>
ap_uint<16> l1t::L1TGT_CommonSum< N >::scalar_sum_pT

◆ valid

template<std::size_t N>
ap_uint<1> l1t::L1TGT_CommonSum< N >::valid