CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
l1ct::PVObj Struct Reference

#include <layer1_objs.h>

Inheritance diagram for l1ct::PVObj:
l1ct::PVObjEmu

Public Member Functions

void clear ()
 
float floatZ0 () const
 
bool operator== (const PVObj &other) const
 
ap_uint< BITWIDTHpack () const
 

Static Public Member Functions

static PVObj unpack (const ap_uint< BITWIDTH > &src)
 

Public Attributes

z0_t hwZ0
 

Static Public Attributes

static const int BITWIDTH = z0_t::width
 

Detailed Description

Definition at line 358 of file layer1_objs.h.

Member Function Documentation

◆ clear()

void l1ct::PVObj::clear ( void  )
inline

Definition at line 363 of file layer1_objs.h.

References hwZ0.

363 { hwZ0 = 0; }

◆ floatZ0()

float l1ct::PVObj::floatZ0 ( ) const
inline

Definition at line 365 of file layer1_objs.h.

References l1ct::Scales::floatZ0(), and hwZ0.

365 { return Scales::floatZ0(hwZ0); }
float floatZ0(z0_t z0)
Definition: datatypes.h:172

◆ operator==()

bool l1ct::PVObj::operator== ( const PVObj other) const
inline

Definition at line 361 of file layer1_objs.h.

References hwZ0, and trackingPlots::other.

361 { return hwZ0 == other.hwZ0; }

◆ pack()

ap_uint<BITWIDTH> l1ct::PVObj::pack ( ) const
inline

Definition at line 368 of file layer1_objs.h.

References hwZ0, pack_into_bits(), and runTheMatrix::ret.

368  {
369  ap_uint<BITWIDTH> ret;
370  unsigned int start = 0;
372  return ret;
373  }
Definition: start.py:1
ret
prodAgent to be discontinued
void pack_into_bits(U &u, unsigned int &start, const T &data)
Definition: bit_encoding.h:8

◆ unpack()

static PVObj l1ct::PVObj::unpack ( const ap_uint< BITWIDTH > &  src)
inlinestatic

Definition at line 374 of file layer1_objs.h.

References runTheMatrix::ret, TrackRefitter_38T_cff::src, and unpack_from_bits().

374  {
375  PVObj ret;
376  unsigned int start = 0;
377  unpack_from_bits(src, start, ret.hwZ0);
378  return ret;
379  }
Definition: start.py:1
ret
prodAgent to be discontinued
void unpack_from_bits(const U &u, unsigned int &start, T &data)
Definition: bit_encoding.h:15

Member Data Documentation

◆ BITWIDTH

const int l1ct::PVObj::BITWIDTH = z0_t::width
static

Definition at line 367 of file layer1_objs.h.

◆ hwZ0

z0_t l1ct::PVObj::hwZ0

Definition at line 359 of file layer1_objs.h.

Referenced by clear(), floatZ0(), operator==(), pack(), and L1TCorrelatorLayer1Producer::produce().