CMS 3D CMS Logo

List of all members | Public Member Functions | Static 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 qualityFlags=0, int isolationPT=0)
 
ap_uint< WIDTHpack () const override
 
P2GTCandidate to_GTObject () const 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
 
- 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 ()
 

Static Public Member Functions

static L1TGT_CL2_Photon from_GTObject (const P2GTCandidate &gtObject)
 
- Static Public Member Functions inherited from l1t::L1TGT_Common3Vector< 96 >
static L1TGT_Common3Vector from_GTObject (const P2GTCandidate &gtObject)
 

Public Attributes

ap_uint< 11 > isolationPT
 
ap_uint< 4 > qualityFlags
 
- 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 592 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  qualityFlags = 0,
int  isolationPT = 0 
)
inline

Member Function Documentation

◆ from_GTObject()

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

Definition at line 603 of file L1GTEvaluationInterface.h.

References l1t::P2GTCandidate::hwEta(), l1t::P2GTCandidate::hwIsolationPT(), l1t::P2GTCandidate::hwPhi(), l1t::P2GTCandidate::hwPT(), l1t::P2GTCandidate::hwQualityFlags(), and L1TGT_CL2_Photon().

603  {
604  return L1TGT_CL2_Photon(
605  1, gtObject.hwPT(), gtObject.hwPhi(), gtObject.hwEta(), gtObject.hwQualityFlags(), gtObject.hwIsolationPT());
606  }
L1TGT_CL2_Photon(int valid=0, int pT=0, int phi=0, int eta=0, int qualityFlags=0, int isolationPT=0)

◆ pack()

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

Implements l1t::L1TGT_Interface< N >.

Definition at line 599 of file L1GTEvaluationInterface.h.

References isolationPT, l1t::L1TGT_Common3Vector< N >::pack_common(), and qualityFlags.

599  {
600  return l1t_pack_int<ap_uint<WIDTH>>(L1TGT_Common3Vector::pack_common(), qualityFlags, isolationPT);
601  }
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 608 of file L1GTEvaluationInterface.h.

References isolationPT, qualityFlags, l1t::P2GTCandidate::setHwIsolationPT(), l1t::P2GTCandidate::setHwQualityFlags(), and l1t::L1TGT_Common3Vector< N >::to_GTObject().

608  {
609  P2GTCandidate gt_object(L1TGT_Common3Vector::to_GTObject());
610  gt_object.setHwQualityFlags(qualityFlags);
611  gt_object.setHwIsolationPT(isolationPT);
612 
613  return gt_object;
614  }
P2GTCandidate to_GTObject() const override

Member Data Documentation

◆ isolationPT

ap_uint<11> l1t::L1TGT_CL2_Photon::isolationPT

Definition at line 594 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ qualityFlags

ap_uint<4> l1t::L1TGT_CL2_Photon::qualityFlags

Definition at line 593 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().