CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
l1t::L1TGT_CommonSum Struct Reference

#include <L1GTEvaluationInterface.h>

Inheritance diagram for l1t::L1TGT_CommonSum:
l1t::L1TGT_Interface< 64 > l1t::L1TGT_BaseInterface l1t::L1TGT_CL2_Sum l1t::L1TGT_GCT_Sum2 l1t::L1TGT_GTT_Sum

Public Member Functions

 L1TGT_CommonSum (int valid=0, int pT=0, int phi=0, int scalarSumPT=0)
 
ap_uint< 64 > pack () const override
 
ap_uint< 46 > pack_common () const
 
P2GTCandidate to_GTObject () const override
 
- Public Member Functions inherited from l1t::L1TGT_Interface< 64 >
std::size_t packed_width () const override
 
- Public Member Functions inherited from l1t::L1TGT_BaseInterface
virtual ~L1TGT_BaseInterface ()
 

Static Public Member Functions

static L1TGT_CommonSum from_GTObject (const P2GTCandidate &gtObject)
 

Public Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 74 of file L1GTEvaluationInterface.h.

Constructor & Destructor Documentation

◆ L1TGT_CommonSum()

l1t::L1TGT_CommonSum::L1TGT_CommonSum ( int  valid = 0,
int  pT = 0,
int  phi = 0,
int  scalarSumPT = 0 
)
inline

Definition at line 80 of file L1GTEvaluationInterface.h.

References phi.

Referenced by from_GTObject().

Member Function Documentation

◆ from_GTObject()

static L1TGT_CommonSum l1t::L1TGT_CommonSum::from_GTObject ( const P2GTCandidate gtObject)
inlinestatic

Definition at line 87 of file L1GTEvaluationInterface.h.

References l1t::P2GTCandidate::hwPhi(), l1t::P2GTCandidate::hwPT(), l1t::P2GTCandidate::hwScalarSumPT(), and L1TGT_CommonSum().

87  {
88  return L1TGT_CommonSum(1, gtObject.hwPT(), gtObject.hwPhi(), gtObject.hwScalarSumPT());
89  }
L1TGT_CommonSum(int valid=0, int pT=0, int phi=0, int scalarSumPT=0)

◆ pack()

ap_uint<64> l1t::L1TGT_CommonSum::pack ( ) const
inlineoverridevirtual

Implements l1t::L1TGT_Interface< 64 >.

Definition at line 85 of file L1GTEvaluationInterface.h.

References pack_common().

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

◆ pack_common()

ap_uint<46> l1t::L1TGT_CommonSum::pack_common ( ) const
inline

Definition at line 83 of file L1GTEvaluationInterface.h.

References phi, pT, scalarSumPT, and valid.

Referenced by pack().

83 { return l1t_pack_int<ap_uint<46>>(valid, pT, phi, scalarSumPT); }

◆ to_GTObject()

P2GTCandidate l1t::L1TGT_CommonSum::to_GTObject ( ) const
inlineoverridevirtual

Implements l1t::L1TGT_BaseInterface.

Definition at line 91 of file L1GTEvaluationInterface.h.

References phi, pT, scalarSumPT, l1t::P2GTCandidate::setHwPhi(), l1t::P2GTCandidate::setHwPT(), and l1t::P2GTCandidate::setHwScalarSumPT().

91  {
92  P2GTCandidate gt_object;
93  gt_object.setHwPT(pT);
94  gt_object.setHwPhi(phi);
95  gt_object.setHwScalarSumPT(scalarSumPT);
96 
97  return gt_object;
98  }

Member Data Documentation

◆ phi

ap_int<13> l1t::L1TGT_CommonSum::phi

◆ pT

ap_uint<16> l1t::L1TGT_CommonSum::pT

Definition at line 76 of file L1GTEvaluationInterface.h.

Referenced by pack_common(), and to_GTObject().

◆ scalarSumPT

ap_uint<16> l1t::L1TGT_CommonSum::scalarSumPT

Definition at line 78 of file L1GTEvaluationInterface.h.

Referenced by pack_common(), and to_GTObject().

◆ valid

ap_uint<1> l1t::L1TGT_CommonSum::valid

Definition at line 75 of file L1GTEvaluationInterface.h.

Referenced by pack_common().