CMS 3D CMS Logo

List of all members | Public Member Functions | Static 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 qualityScore=0, int number_of_tracks_not_in_pv=0)
 
ap_uint< WIDTHpack () const override
 
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_GTT_PrimaryVert from_GTObject (const P2GTCandidate &gtObject)
 

Public Attributes

ap_uint< 8 > number_of_tracks_in_pv
 
ap_uint< 10 > number_of_tracks_not_in_pv
 
ap_uint< 3 > qualityScore
 
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 425 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  qualityScore = 0,
int  number_of_tracks_not_in_pv = 0 
)
inline

Member Function Documentation

◆ from_GTObject()

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

Definition at line 452 of file L1GTEvaluationInterface.h.

References l1t::P2GTCandidate::hwNumber_of_tracks_in_pv(), l1t::P2GTCandidate::hwNumber_of_tracks_not_in_pv(), l1t::P2GTCandidate::hwQualityScore(), l1t::P2GTCandidate::hwSum_pT_pv(), l1t::P2GTCandidate::hwZ0(), and L1TGT_GTT_PrimaryVert().

452  {
453  return L1TGT_GTT_PrimaryVert(1,
454  gtObject.hwZ0() / 5,
455  gtObject.hwNumber_of_tracks_in_pv(),
456  gtObject.hwSum_pT_pv(),
457  gtObject.hwQualityScore(),
458  gtObject.hwNumber_of_tracks_not_in_pv());
459  }
L1TGT_GTT_PrimaryVert(int valid=0, int z0=0, int number_of_tracks_in_pv=0, int sum_pT_pv=0, int qualityScore=0, int number_of_tracks_not_in_pv=0)

◆ pack()

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

◆ to_GTObject()

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

Implements l1t::L1TGT_BaseInterface.

Definition at line 461 of file L1GTEvaluationInterface.h.

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

461  {
462  P2GTCandidate gt_object;
463  gt_object.setHwZ0(static_cast<int>(z0) * 5);
464  gt_object.setHwNumber_of_tracks_in_pv(number_of_tracks_in_pv);
465  gt_object.setHwSum_pT_pv(sum_pT_pv);
466  gt_object.setHwQualityScore(qualityScore);
467  gt_object.setHwNumber_of_tracks_not_in_pv(number_of_tracks_not_in_pv);
468 
469  return gt_object;
470  }

Member Data Documentation

◆ number_of_tracks_in_pv

ap_uint<8> l1t::L1TGT_GTT_PrimaryVert::number_of_tracks_in_pv

Definition at line 428 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ number_of_tracks_not_in_pv

ap_uint<10> l1t::L1TGT_GTT_PrimaryVert::number_of_tracks_not_in_pv

Definition at line 431 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ qualityScore

ap_uint<3> l1t::L1TGT_GTT_PrimaryVert::qualityScore

Definition at line 430 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ sum_pT_pv

ap_uint<12> l1t::L1TGT_GTT_PrimaryVert::sum_pT_pv

Definition at line 429 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ valid

ap_uint<1> l1t::L1TGT_GTT_PrimaryVert::valid

Definition at line 426 of file L1GTEvaluationInterface.h.

Referenced by pack().

◆ z0

ap_int<15> l1t::L1TGT_GTT_PrimaryVert::z0

Definition at line 427 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().