CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
l1gt::Sum Struct Reference

#include <gt_datatypes.h>

Public Member Functions

void clear ()
 
void initFromBits (const ap_uint< BITWIDTH > &src)
 
bool operator== (const Sum &other) const
 
ap_uint< BITWIDTHpack () const
 

Static Public Member Functions

static Sum unpack_ap (const ap_uint< BITWIDTH > &src)
 

Public Attributes

pt_t scalar_pt
 
valid_t valid
 
phi_t vector_phi
 
pt_t vector_pt
 

Static Public Attributes

static const int BITWIDTH = 64
 

Detailed Description

Definition at line 137 of file gt_datatypes.h.

Member Function Documentation

◆ clear()

void l1gt::Sum::clear ( void  )
inline

Definition at line 148 of file gt_datatypes.h.

References scalar_pt, valid, vector_phi, and vector_pt.

Referenced by BeautifulSoup.Tag::setString().

148  {
149  valid = 0;
150  vector_pt = 0;
151  vector_phi = 0;
152  scalar_pt = 0;
153  }
pt_t vector_pt
Definition: gt_datatypes.h:139
phi_t vector_phi
Definition: gt_datatypes.h:140
pt_t scalar_pt
Definition: gt_datatypes.h:141
valid_t valid
Definition: gt_datatypes.h:138

◆ initFromBits()

void l1gt::Sum::initFromBits ( const ap_uint< BITWIDTH > &  src)
inline

Definition at line 172 of file gt_datatypes.h.

References scalar_pt, TrackRefitter_38T_cff::src, unpack_from_bits(), valid, vector_phi, and vector_pt.

172  {
173  unsigned int start = 0;
178  }
Definition: start.py:1
pt_t vector_pt
Definition: gt_datatypes.h:139
phi_t vector_phi
Definition: gt_datatypes.h:140
void unpack_from_bits(const U &u, unsigned int &start, T &data)
Definition: bit_encoding.h:15
pt_t scalar_pt
Definition: gt_datatypes.h:141
valid_t valid
Definition: gt_datatypes.h:138

◆ operator==()

bool l1gt::Sum::operator== ( const Sum other) const
inline

Definition at line 143 of file gt_datatypes.h.

References trackingPlots::other, scalar_pt, valid, vector_phi, and vector_pt.

143  {
144  return valid == other.valid && vector_pt == other.vector_pt && vector_phi == other.vector_phi &&
145  scalar_pt == other.scalar_pt;
146  }
pt_t vector_pt
Definition: gt_datatypes.h:139
phi_t vector_phi
Definition: gt_datatypes.h:140
pt_t scalar_pt
Definition: gt_datatypes.h:141
valid_t valid
Definition: gt_datatypes.h:138

◆ pack()

ap_uint<BITWIDTH> l1gt::Sum::pack ( ) const
inline

Definition at line 156 of file gt_datatypes.h.

References pack_into_bits(), runTheMatrix::ret, scalar_pt, valid, vector_phi, and vector_pt.

156  {
157  ap_uint<BITWIDTH> ret;
158  unsigned int start = 0;
163  return ret;
164  }
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
pt_t vector_pt
Definition: gt_datatypes.h:139
phi_t vector_phi
Definition: gt_datatypes.h:140
pt_t scalar_pt
Definition: gt_datatypes.h:141
valid_t valid
Definition: gt_datatypes.h:138

◆ unpack_ap()

static Sum l1gt::Sum::unpack_ap ( const ap_uint< BITWIDTH > &  src)
inlinestatic

Definition at line 166 of file gt_datatypes.h.

References runTheMatrix::ret, and TrackRefitter_38T_cff::src.

166  {
167  Sum ret;
168  ret.initFromBits(src);
169  return ret;
170  }
ret
prodAgent to be discontinued

Member Data Documentation

◆ BITWIDTH

const int l1gt::Sum::BITWIDTH = 64
static

Definition at line 155 of file gt_datatypes.h.

◆ scalar_pt

pt_t l1gt::Sum::scalar_pt

Definition at line 141 of file gt_datatypes.h.

Referenced by clear(), initFromBits(), operator==(), pack(), and l1ct::Sum::toGT().

◆ valid

valid_t l1gt::Sum::valid

Definition at line 138 of file gt_datatypes.h.

Referenced by clear(), initFromBits(), operator==(), pack(), and l1ct::Sum::toGT().

◆ vector_phi

phi_t l1gt::Sum::vector_phi

Definition at line 140 of file gt_datatypes.h.

Referenced by clear(), initFromBits(), operator==(), pack(), and l1ct::Sum::toGT().

◆ vector_pt

pt_t l1gt::Sum::vector_pt

Definition at line 139 of file gt_datatypes.h.

Referenced by clear(), initFromBits(), operator==(), pack(), and l1ct::Sum::toGT().