CMS 3D CMS Logo

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

#include <L1GTEvaluationInterface.h>

Inheritance diagram for l1t::L1TGT_GMT_PromptDisplacedMuon:
l1t::L1TGT_Common3Vector< 64 > l1t::L1TGT_Interface< N > l1t::L1TGT_BaseInterface

Public Member Functions

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

Public Attributes

ap_uint< 1 > charge
 
ap_int< 7 > d0
 
ap_uint< 4 > qualityScore
 
ap_uint< 5 > z0
 
- Public Attributes inherited from l1t::L1TGT_Common3Vector< 64 >
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 143 of file L1GTEvaluationInterface.h.

Constructor & Destructor Documentation

◆ L1TGT_GMT_PromptDisplacedMuon()

l1t::L1TGT_GMT_PromptDisplacedMuon::L1TGT_GMT_PromptDisplacedMuon ( int  valid = 0,
int  pT = 0,
int  phi = 0,
int  eta = 0,
int  z0 = 0,
int  d0 = 0,
int  charge = 0,
int  qualityScore = 0 
)
inline

Member Function Documentation

◆ from_GTObject()

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

Definition at line 163 of file L1GTEvaluationInterface.h.

References l1t::P2GTCandidate::hwCharge(), l1t::P2GTCandidate::hwD0(), l1t::P2GTCandidate::hwEta(), l1t::P2GTCandidate::hwPhi(), l1t::P2GTCandidate::hwPT(), l1t::P2GTCandidate::hwQualityScore(), l1t::P2GTCandidate::hwZ0(), and L1TGT_GMT_PromptDisplacedMuon().

163  {
165  gtObject.hwPT(),
166  gtObject.hwPhi(),
167  gtObject.hwEta(),
168  gtObject.hwZ0() >> 12,
169  gtObject.hwD0() >> 5,
170  gtObject.hwCharge(),
171  gtObject.hwQualityScore());
172  }
L1TGT_GMT_PromptDisplacedMuon(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int d0=0, int charge=0, int qualityScore=0)

◆ pack()

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

◆ to_GTObject()

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

Implements l1t::L1TGT_BaseInterface.

Definition at line 174 of file L1GTEvaluationInterface.h.

References charge, d0, qualityScore, l1t::P2GTCandidate::setHwCharge(), l1t::P2GTCandidate::setHwD0(), l1t::P2GTCandidate::setHwQualityScore(), l1t::P2GTCandidate::setHwZ0(), l1t::L1TGT_Common3Vector< N >::to_GTObject(), and z0.

174  {
175  P2GTCandidate gt_object(L1TGT_Common3Vector::to_GTObject());
176  gt_object.setHwZ0(static_cast<int>(z0) << 12);
177  gt_object.setHwD0(static_cast<int>(d0) << 5);
178  gt_object.setHwCharge(charge);
179  gt_object.setHwQualityScore(qualityScore);
180 
181  return gt_object;
182  }
P2GTCandidate to_GTObject() const override

Member Data Documentation

◆ charge

ap_uint<1> l1t::L1TGT_GMT_PromptDisplacedMuon::charge

Definition at line 146 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ d0

ap_int<7> l1t::L1TGT_GMT_PromptDisplacedMuon::d0

Definition at line 145 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ qualityScore

ap_uint<4> l1t::L1TGT_GMT_PromptDisplacedMuon::qualityScore

Definition at line 147 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().

◆ z0

ap_uint<5> l1t::L1TGT_GMT_PromptDisplacedMuon::z0

Definition at line 144 of file L1GTEvaluationInterface.h.

Referenced by pack(), and to_GTObject().