CMS 3D CMS Logo

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

#include <L1GTEvaluationInterface.h>

Inheritance diagram for l1t::L1TGT_GTT_DisplacedJet:
l1t::L1TGT_Common3Vector< 128 > l1t::L1TGT_Interface< N > l1t::L1TGT_BaseInterface

Public Member Functions

 L1TGT_GTT_DisplacedJet (int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int number_of_tracks=0, int d0=0)
 
ap_uint< WIDTHpack () const override
 
P2GTCandidate to_GTObject () const override
 
- Public Member Functions inherited from l1t::L1TGT_Common3Vector< 128 >
 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_GTT_DisplacedJet from_GTObject (const P2GTCandidate &gtObject)
 
- Static Public Member Functions inherited from l1t::L1TGT_Common3Vector< 128 >
static L1TGT_Common3Vector from_GTObject (const P2GTCandidate &gtObject)
 

Public Attributes

ap_int< 12 > d0
 
ap_uint< 5 > number_of_tracks
 
ap_int< 10 > z0
 
- Public Attributes inherited from l1t::L1TGT_Common3Vector< 128 >
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 308 of file L1GTEvaluationInterface.h.

Constructor & Destructor Documentation

◆ L1TGT_GTT_DisplacedJet()

l1t::L1TGT_GTT_DisplacedJet::L1TGT_GTT_DisplacedJet ( int  valid = 0,
int  pT = 0,
int  phi = 0,
int  eta = 0,
int  z0 = 0,
int  number_of_tracks = 0,
int  d0 = 0 
)
inline

Member Function Documentation

◆ from_GTObject()

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

Definition at line 322 of file L1GTEvaluationInterface.h.

References l1t::P2GTCandidate::hwD0(), l1t::P2GTCandidate::hwEta(), l1t::P2GTCandidate::hwNumber_of_tracks(), l1t::P2GTCandidate::hwPhi(), l1t::P2GTCandidate::hwPT(), l1t::P2GTCandidate::hwZ0(), and L1TGT_GTT_DisplacedJet().

322  {
323  return L1TGT_GTT_DisplacedJet(1,
324  gtObject.hwPT(),
325  gtObject.hwPhi(),
326  gtObject.hwEta(),
327  gtObject.hwZ0() >> 7,
328  gtObject.hwNumber_of_tracks(),
329  gtObject.hwD0());
330  }
L1TGT_GTT_DisplacedJet(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int number_of_tracks=0, int d0=0)

◆ pack()

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

Implements l1t::L1TGT_Interface< N >.

Definition at line 318 of file L1GTEvaluationInterface.h.

References d0, number_of_tracks, l1t::L1TGT_Common3Vector< N >::pack_common(), and z0.

318  {
319  return l1t_pack_int<ap_uint<WIDTH>>(L1TGT_Common3Vector::pack_common(), z0, number_of_tracks, ap_uint<5>(0), d0);
320  }
virtual ap_uint< 44 > pack_common() const

◆ to_GTObject()

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

Implements l1t::L1TGT_BaseInterface.

Definition at line 332 of file L1GTEvaluationInterface.h.

References d0, number_of_tracks, l1t::P2GTCandidate::setHwD0(), l1t::P2GTCandidate::setHwNumber_of_tracks(), l1t::P2GTCandidate::setHwZ0(), l1t::L1TGT_Common3Vector< N >::to_GTObject(), and z0.

332  {
333  P2GTCandidate gt_object(L1TGT_Common3Vector::to_GTObject());
334  gt_object.setHwZ0(static_cast<int>(z0) << 7);
335  gt_object.setHwNumber_of_tracks(number_of_tracks);
336  gt_object.setHwD0(d0);
337 
338  return gt_object;
339  }
P2GTCandidate to_GTObject() const override

Member Data Documentation

◆ d0

ap_int<12> l1t::L1TGT_GTT_DisplacedJet::d0

Definition at line 312 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ number_of_tracks

ap_uint<5> l1t::L1TGT_GTT_DisplacedJet::number_of_tracks

Definition at line 310 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ z0

ap_int<10> l1t::L1TGT_GTT_DisplacedJet::z0

Definition at line 309 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().