CMS 3D CMS Logo

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

#include <L1GTEvaluationInterface.h>

Inheritance diagram for l1t::L1TGT_GTT_PrimaryVert:
l1t::L1TGT_Interface< 64 > l1t::L1TGT_BaseInterface

Public Member Functions

 L1TGT_GTT_PrimaryVert (int valid=0, int z0=0, int number_of_tracks_in_pv=0, int sum_pT_pv=0, int qual=0, int number_of_tracks_not_in_pv=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_Interface< 64 >
std::size_t packed_width () const override
 
virtual ap_uint< Nunpack (const ap_uint< N > &)=0
 
- Public Member Functions inherited from l1t::L1TGT_BaseInterface
virtual ~L1TGT_BaseInterface ()
 

Public Attributes

ap_uint< 8 > number_of_tracks_in_pv
 
ap_uint< 10 > number_of_tracks_not_in_pv
 
ap_uint< 3 > qual
 
ap_uint< 12 > sum_pT_pv
 
ap_uint< 1 > valid
 
ap_int< 15 > z0
 

Additional Inherited Members

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

Detailed Description

Definition at line 376 of file L1GTEvaluationInterface.h.

Constructor & Destructor Documentation

◆ L1TGT_GTT_PrimaryVert()

l1t::L1TGT_GTT_PrimaryVert::L1TGT_GTT_PrimaryVert ( int  valid = 0,
int  z0 = 0,
int  number_of_tracks_in_pv = 0,
int  sum_pT_pv = 0,
int  qual = 0,
int  number_of_tracks_not_in_pv = 0 
)
inline

Member Function Documentation

◆ pack()

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

Implements l1t::L1TGT_Interface< 64 >.

Definition at line 398 of file L1GTEvaluationInterface.h.

References valid, and z0.

398  {
399  return l1t_pack_int<ap_uint<WIDTH>>(
400  valid, z0 /*, number_of_tracks_in_pv, sum_pT_pv, qual, number_of_tracks_not_in_pv */); // TODO: Maybe later
401  }

◆ to_GTObject()

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

Implements l1t::L1TGT_BaseInterface.

Definition at line 407 of file L1GTEvaluationInterface.h.

References number_of_tracks_in_pv, number_of_tracks_not_in_pv, qual, l1t::P2GTCandidate::setHwNumber_of_tracks_in_pv(), l1t::P2GTCandidate::setHwNumber_of_tracks_not_in_pv(), l1t::P2GTCandidate::setHwQual(), l1t::P2GTCandidate::setHwSum_pT_pv(), l1t::P2GTCandidate::setHwZ0(), sum_pT_pv, and z0.

407  {
408  P2GTCandidate gt_object;
409  gt_object.setHwZ0(z0);
410  gt_object.setHwNumber_of_tracks_in_pv(number_of_tracks_in_pv);
411  gt_object.setHwSum_pT_pv(sum_pT_pv);
412  gt_object.setHwQual(qual);
413  gt_object.setHwNumber_of_tracks_not_in_pv(number_of_tracks_not_in_pv);
414 
415  return gt_object;
416  }

◆ unpack()

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

Member Data Documentation

◆ number_of_tracks_in_pv

ap_uint<8> l1t::L1TGT_GTT_PrimaryVert::number_of_tracks_in_pv

Definition at line 379 of file L1GTEvaluationInterface.h.

Referenced by to_GTObject(), and unpack().

◆ number_of_tracks_not_in_pv

ap_uint<10> l1t::L1TGT_GTT_PrimaryVert::number_of_tracks_not_in_pv

Definition at line 382 of file L1GTEvaluationInterface.h.

Referenced by to_GTObject(), and unpack().

◆ qual

ap_uint<3> l1t::L1TGT_GTT_PrimaryVert::qual

Definition at line 381 of file L1GTEvaluationInterface.h.

Referenced by to_GTObject(), and unpack().

◆ sum_pT_pv

ap_uint<12> l1t::L1TGT_GTT_PrimaryVert::sum_pT_pv

Definition at line 380 of file L1GTEvaluationInterface.h.

Referenced by to_GTObject(), and unpack().

◆ valid

ap_uint<1> l1t::L1TGT_GTT_PrimaryVert::valid

Definition at line 377 of file L1GTEvaluationInterface.h.

Referenced by pack(), and unpack().

◆ z0

ap_int<15> l1t::L1TGT_GTT_PrimaryVert::z0

Definition at line 378 of file L1GTEvaluationInterface.h.

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