CMS 3D CMS Logo

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

#include <L1GTEvaluationInterface.h>

Inheritance diagram for l1t::L1TGT_CL2_Photon:
l1t::L1TGT_Common3Vector< 96 > l1t::L1TGT_Interface< N > l1t::L1TGT_BaseInterface

Public Member Functions

 L1TGT_CL2_Photon (int valid=0, int pT=0, int phi=0, int eta=0, int qual=0, int iso=0)
 
ap_uint< WIDTHpack () const override
 
P2GTCandidate to_GTObject () const override
 
ap_uint< WIDTHunpack (const ap_uint< WIDTH > &packed) override
 
- Public Member Functions inherited from l1t::L1TGT_Common3Vector< 96 >
 L1TGT_Common3Vector (int valid=0, int pT=0, int phi=0, int eta=0)
 
ap_uint< Npack () const override
 
virtual ap_uint< 44 > 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_uint< 11 > iso
 
ap_uint< 4 > qual
 
- Public Attributes inherited from l1t::L1TGT_Common3Vector< 96 >
ap_int< 14 > eta
 
ap_int< 13 > phi
 
ap_uint< 16 > 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

Definition at line 514 of file L1GTEvaluationInterface.h.

Constructor & Destructor Documentation

◆ L1TGT_CL2_Photon()

l1t::L1TGT_CL2_Photon::L1TGT_CL2_Photon ( int  valid = 0,
int  pT = 0,
int  phi = 0,
int  eta = 0,
int  qual = 0,
int  iso = 0 
)
inline

Member Function Documentation

◆ pack()

ap_uint<WIDTH> l1t::L1TGT_CL2_Photon::pack ( ) const
inlineoverridevirtual

Implements l1t::L1TGT_Interface< N >.

Definition at line 521 of file L1GTEvaluationInterface.h.

References iso, l1t::L1TGT_Common3Vector< N >::pack_common(), and qual.

521  {
522  return l1t_pack_int<ap_uint<WIDTH>>(L1TGT_Common3Vector::pack_common(), qual, iso);
523  }
virtual ap_uint< 44 > pack_common() const

◆ to_GTObject()

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

Implements l1t::L1TGT_BaseInterface.

Definition at line 529 of file L1GTEvaluationInterface.h.

References iso, qual, l1t::P2GTCandidate::setHwIso(), l1t::P2GTCandidate::setHwQual(), and l1t::L1TGT_Common3Vector< N >::to_GTObject().

529  {
530  P2GTCandidate gt_object(L1TGT_Common3Vector::to_GTObject());
531  gt_object.setHwQual(qual);
532  gt_object.setHwIso(iso);
533 
534  return gt_object;
535  }
P2GTCandidate to_GTObject() const override

◆ unpack()

ap_uint<WIDTH> l1t::L1TGT_CL2_Photon::unpack ( const ap_uint< WIDTH > &  packed)
inlineoverride

Definition at line 525 of file L1GTEvaluationInterface.h.

References iso, l1t::l1t_unpack_int(), qual, and l1t::L1TGT_Common3Vector< N >::unpack().

525  {
527  }
A l1t_unpack_int(const A &packed, Args &&... args)
ap_uint< N > unpack(const ap_uint< N > &packed) override

Member Data Documentation

◆ iso

ap_uint<11> l1t::L1TGT_CL2_Photon::iso

Definition at line 516 of file L1GTEvaluationInterface.h.

Referenced by pack(), to_GTObject(), and unpack().

◆ qual

ap_uint<4> l1t::L1TGT_CL2_Photon::qual

Definition at line 515 of file L1GTEvaluationInterface.h.

Referenced by pack(), to_GTObject(), and unpack().