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 293 of file layer1_objs.h.

Member Function Documentation

◆ clear()

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

Definition at line 298 of file layer1_objs.h.

References hwZ0.

Referenced by BeautifulSoup.Tag::setString().

298 { hwZ0 = 0; }

◆ floatZ0()

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

Definition at line 300 of file layer1_objs.h.

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

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

◆ operator==()

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

Definition at line 296 of file layer1_objs.h.

References hwZ0, and trackingPlots::other.

296 { return hwZ0 == other.hwZ0; }

◆ pack()

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

Definition at line 303 of file layer1_objs.h.

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

303  {
304  ap_uint<BITWIDTH> ret;
305  unsigned int start = 0;
307  return ret;
308  }
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 309 of file layer1_objs.h.

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

309  {
310  PVObj ret;
311  unsigned int start = 0;
312  unpack_from_bits(src, start, ret.hwZ0);
313  return ret;
314  }
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 302 of file layer1_objs.h.

◆ hwZ0

z0_t l1ct::PVObj::hwZ0

Definition at line 294 of file layer1_objs.h.

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