CMS 3D CMS Logo

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

#include <pf.h>

Inheritance diagram for l1ct::PFNeutralObj:
l1ct::PFCommonObj l1ct::PFNeutralObjEmu

Public Member Functions

void clear ()
 
float floatEmPt () const
 
int intEmPt () const
 
bool operator< (const PFNeutralObj &other) const
 
bool operator== (const PFNeutralObj &other) const
 
bool operator> (const PFNeutralObj &other) const
 
ap_uint< BITWIDTHpack () const
 
- Public Member Functions inherited from l1ct::PFCommonObj
float floatEta () const
 
float floatPhi () const
 
float floatPt () const
 
int intCharge () const
 
int intEta () const
 
int intId () const
 
int intPhi () const
 
int intPt () const
 
int oldId () const
 
template<typename U >
void pack_common (U &out, unsigned int &start) const
 
int pdgId () const
 
template<typename U >
void unpack_common (const U &src, unsigned int &start)
 

Static Public Member Functions

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

Public Attributes

emid_t hwEmID
 
pt_t hwEmPt
 
ap_uint< 6 > hwPUID
 
- Public Attributes inherited from l1ct::PFCommonObj
eta_t hwEta
 
ParticleID hwId
 
phi_t hwPhi
 
pt_t hwPt
 

Static Public Attributes

static const int BITWIDTH = _PFCOMMON_BITWIDTH + pt_t::width + ap_uint<6>::width + ap_uint<6>::width
 
- Static Public Attributes inherited from l1ct::PFCommonObj
static const int _PFCOMMON_BITWIDTH = pt_t::width + eta_t::width + phi_t::width + 3
 

Detailed Description

Definition at line 112 of file pf.h.

Member Function Documentation

◆ clear()

void l1ct::PFNeutralObj::clear ( void  )
inline

Definition at line 125 of file pf.h.

References l1ct::ParticleID::clear(), hwEmID, hwEmPt, l1ct::PFCommonObj::hwEta, l1ct::PFCommonObj::hwId, l1ct::PFCommonObj::hwPhi, l1ct::PFCommonObj::hwPt, and hwPUID.

Referenced by l1ct::PFNeutralObjEmu::clear().

125  {
126  hwPt = 0;
127  hwEta = 0;
128  hwPhi = 0;
129  hwId.clear();
130  hwEmPt = 0;
131  hwEmID = 0;
132  hwPUID = 0;
133  }
eta_t hwEta
Definition: pf.h:11
ParticleID hwId
Definition: pf.h:13
phi_t hwPhi
Definition: pf.h:12
ap_uint< 6 > hwPUID
Definition: pf.h:115
pt_t hwEmPt
Definition: pf.h:113
emid_t hwEmID
Definition: pf.h:114
pt_t hwPt
Definition: pf.h:10

◆ floatEmPt()

float l1ct::PFNeutralObj::floatEmPt ( ) const
inline

Definition at line 136 of file pf.h.

References l1ct::Scales::floatPt(), and hwEmPt.

136 { return Scales::floatPt(hwEmPt); }
float floatPt(pt_t pt)
Definition: datatypes.h:153
pt_t hwEmPt
Definition: pf.h:113

◆ intEmPt()

int l1ct::PFNeutralObj::intEmPt ( ) const
inline

Definition at line 135 of file pf.h.

References hwEmPt, and l1ct::Scales::intPt().

135 { return Scales::intPt(hwEmPt); }
int intPt(pt_t pt)
Definition: datatypes.h:156
pt_t hwEmPt
Definition: pf.h:113

◆ operator<()

bool l1ct::PFNeutralObj::operator< ( const PFNeutralObj other) const
inline

Definition at line 123 of file pf.h.

References l1ct::PFCommonObj::hwPt, and trackingPlots::other.

123 { return hwPt < other.hwPt; }
pt_t hwPt
Definition: pf.h:10

◆ operator==()

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

Definition at line 117 of file pf.h.

References hwEmID, hwEmPt, l1ct::PFCommonObj::hwEta, l1ct::PFCommonObj::hwId, l1ct::PFCommonObj::hwPhi, l1ct::PFCommonObj::hwPt, hwPUID, and trackingPlots::other.

117  {
118  return hwPt == other.hwPt && hwEta == other.hwEta && hwPhi == other.hwPhi && hwId == other.hwId &&
119  hwEmPt == other.hwEmPt && hwEmID == other.hwEmID && hwPUID == other.hwPUID;
120  }
eta_t hwEta
Definition: pf.h:11
ParticleID hwId
Definition: pf.h:13
phi_t hwPhi
Definition: pf.h:12
ap_uint< 6 > hwPUID
Definition: pf.h:115
pt_t hwEmPt
Definition: pf.h:113
emid_t hwEmID
Definition: pf.h:114
pt_t hwPt
Definition: pf.h:10

◆ operator>()

bool l1ct::PFNeutralObj::operator> ( const PFNeutralObj other) const
inline

Definition at line 122 of file pf.h.

References l1ct::PFCommonObj::hwPt, and trackingPlots::other.

122 { return hwPt > other.hwPt; }
pt_t hwPt
Definition: pf.h:10

◆ pack()

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

Definition at line 139 of file pf.h.

References hwEmID, hwEmPt, hwPUID, l1ct::PFCommonObj::pack_common(), pack_into_bits(), and runTheMatrix::ret.

139  {
140  ap_uint<BITWIDTH> ret;
141  unsigned int start = 0;
146  return ret;
147  }
Definition: start.py:1
ret
prodAgent to be discontinued
void pack_common(U &out, unsigned int &start) const
Definition: pf.h:28
void pack_into_bits(U &u, unsigned int &start, const T &data)
Definition: bit_encoding.h:8
ap_uint< 6 > hwPUID
Definition: pf.h:115
pt_t hwEmPt
Definition: pf.h:113
emid_t hwEmID
Definition: pf.h:114

◆ unpack()

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

Definition at line 148 of file pf.h.

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

148  {
149  PFNeutralObj ret;
150  unsigned int start = 0;
151  ret.unpack_common(src, start);
152  unpack_from_bits(src, start, ret.hwEmPt);
153  unpack_from_bits(src, start, ret.hwEmID);
154  unpack_from_bits(src, start, ret.hwPUID);
155  return ret;
156  }
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::PFNeutralObj::BITWIDTH = _PFCOMMON_BITWIDTH + pt_t::width + ap_uint<6>::width + ap_uint<6>::width
static

Definition at line 138 of file pf.h.

◆ hwEmID

emid_t l1ct::PFNeutralObj::hwEmID

Definition at line 114 of file pf.h.

Referenced by clear(), operator==(), and pack().

◆ hwEmPt

pt_t l1ct::PFNeutralObj::hwEmPt

Definition at line 113 of file pf.h.

Referenced by clear(), floatEmPt(), intEmPt(), operator==(), and pack().

◆ hwPUID

ap_uint<6> l1ct::PFNeutralObj::hwPUID

Definition at line 115 of file pf.h.

Referenced by clear(), operator==(), and pack().