CMS 3D CMS Logo

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

#include <gt_datatypes.h>

Public Member Functions

void initFromBits (const ap_uint< BITWIDTH > &src)
 
ap_uint< BITWIDTHpack () const
 

Static Public Member Functions

static Electron unpack (const std::array< uint64_t, 2 > &src, int parity)
 
static Electron unpack_ap (const ap_uint< BITWIDTH > &src)
 

Public Attributes

ap_uint< 1 > charge
 
iso_t isolationPT
 
egquality_t qualityFlags
 
ThreeVector v3
 
valid_t valid
 
z0_t z0
 

Static Public Attributes

static const int BITWIDTH = 96
 

Detailed Description

Definition at line 261 of file gt_datatypes.h.

Member Function Documentation

◆ initFromBits()

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

◆ pack()

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

Definition at line 270 of file gt_datatypes.h.

References charge, isolationPT, l1gt::ThreeVector::pack(), pack_into_bits(), qualityFlags, runTheMatrix::ret, v3, valid, and z0.

270  {
271  ap_uint<BITWIDTH> ret(0);
272  unsigned int start = 0;
279  return ret;
280  }
Definition: start.py:1
ap_uint< BITWIDTH > pack() const
Definition: gt_datatypes.h:63
ret
prodAgent to be discontinued
void pack_into_bits(U &u, unsigned int &start, const T &data)
Definition: bit_encoding.h:8
egquality_t qualityFlags
Definition: gt_datatypes.h:264
ThreeVector v3
Definition: gt_datatypes.h:263
ap_uint< 1 > charge
Definition: gt_datatypes.h:265

◆ unpack()

static Electron l1gt::Electron::unpack ( const std::array< uint64_t, 2 > &  src,
int  parity 
)
inlinestatic

Definition at line 300 of file gt_datatypes.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, TrackRefitter_38T_cff::src, and unpack_ap().

300  {
301  ap_uint<BITWIDTH> bits;
302  if (parity == 0) {
303  bits(63, 0) = src[0];
304  bits(95, 64) = src[1];
305  } else {
306  bits(63, 0) = src[1];
307  bits(95, 64) = (src[0] >> 32);
308  }
309  return unpack_ap(bits);
310  }
static Electron unpack_ap(const ap_uint< BITWIDTH > &src)
Definition: gt_datatypes.h:294

◆ unpack_ap()

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

Definition at line 294 of file gt_datatypes.h.

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

Referenced by l1t::TkElectron::hwObj(), and unpack().

294  {
295  Electron ret;
296  ret.initFromBits(src);
297  return ret;
298  }
ret
prodAgent to be discontinued

Member Data Documentation

◆ BITWIDTH

const int l1gt::Electron::BITWIDTH = 96
static

Definition at line 269 of file gt_datatypes.h.

◆ charge

ap_uint<1> l1gt::Electron::charge

◆ isolationPT

iso_t l1gt::Electron::isolationPT

◆ qualityFlags

egquality_t l1gt::Electron::qualityFlags

◆ v3

ThreeVector l1gt::Electron::v3

◆ valid

valid_t l1gt::Electron::valid

Definition at line 262 of file gt_datatypes.h.

Referenced by initFromBits(), pack(), and l1ct::EGIsoEleObj::toGT().

◆ z0

z0_t l1gt::Electron::z0