CMS 3D CMS Logo

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

#include <pf.h>

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

Public Member Functions

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)
 

Public Attributes

eta_t hwEta
 
ParticleID hwId
 
phi_t hwPhi
 
pt_t hwPt
 

Static Public Attributes

static const int _PFCOMMON_BITWIDTH = pt_t::width + eta_t::width + phi_t::width + 3
 

Detailed Description

Definition at line 9 of file pf.h.

Member Function Documentation

◆ floatEta()

float l1ct::PFCommonObj::floatEta ( ) const
inline

Definition at line 19 of file pf.h.

References l1ct::Scales::floatEta(), and hwEta.

19 { return Scales::floatEta(hwEta); }
eta_t hwEta
Definition: pf.h:11
float floatEta(eta_t eta)
Definition: datatypes.h:157

◆ floatPhi()

float l1ct::PFCommonObj::floatPhi ( ) const
inline

Definition at line 20 of file pf.h.

References l1ct::Scales::floatPhi(), and hwPhi.

20 { return Scales::floatPhi(hwPhi); }
phi_t hwPhi
Definition: pf.h:12
float floatPhi(phi_t phi)
Definition: datatypes.h:158

◆ floatPt()

float l1ct::PFCommonObj::floatPt ( ) const
inline

Definition at line 18 of file pf.h.

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

18 { return Scales::floatPt(hwPt); }
float floatPt(pt_t pt)
Definition: datatypes.h:152
pt_t hwPt
Definition: pf.h:10

◆ intCharge()

int l1ct::PFCommonObj::intCharge ( ) const
inline

Definition at line 24 of file pf.h.

References hwId, and l1ct::ParticleID::intCharge().

24 { return hwId.intCharge(); }
ParticleID hwId
Definition: pf.h:13
int intCharge() const
Definition: datatypes.h:88

◆ intEta()

int l1ct::PFCommonObj::intEta ( ) const
inline

Definition at line 16 of file pf.h.

References hwEta.

16 { return hwEta.to_int(); }
eta_t hwEta
Definition: pf.h:11

◆ intId()

int l1ct::PFCommonObj::intId ( ) const
inline

Definition at line 21 of file pf.h.

References hwId, and l1ct::ParticleID::rawId().

21 { return hwId.rawId(); }
int rawId() const
Definition: datatypes.h:66
ParticleID hwId
Definition: pf.h:13

◆ intPhi()

int l1ct::PFCommonObj::intPhi ( ) const
inline

Definition at line 17 of file pf.h.

References hwPhi.

17 { return hwPhi.to_int(); }
phi_t hwPhi
Definition: pf.h:12

◆ intPt()

int l1ct::PFCommonObj::intPt ( ) const
inline

Definition at line 15 of file pf.h.

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

15 { return Scales::intPt(hwPt); }
int intPt(pt_t pt)
Definition: datatypes.h:155
pt_t hwPt
Definition: pf.h:10

◆ oldId()

int l1ct::PFCommonObj::oldId ( ) const
inline

Definition at line 22 of file pf.h.

References hwId, hwPt, and l1ct::ParticleID::oldId().

22 { return hwPt > 0 ? hwId.oldId() : 0; }
ParticleID hwId
Definition: pf.h:13
int oldId() const
Definition: datatypes.h:120
pt_t hwPt
Definition: pf.h:10

◆ pack_common()

template<typename U >
void l1ct::PFCommonObj::pack_common ( U &  out,
unsigned int &  start 
) const
inline

Definition at line 28 of file pf.h.

References l1ct::ParticleID::bits, hwEta, hwId, hwPhi, hwPt, MillePedeFileConverter_cfg::out, and pack_into_bits().

Referenced by l1ct::PFChargedObj::pack(), and l1ct::PFNeutralObj::pack().

28  {
33  }
Definition: start.py:1
eta_t hwEta
Definition: pf.h:11
ParticleID hwId
Definition: pf.h:13
phi_t hwPhi
Definition: pf.h:12
void pack_into_bits(U &u, unsigned int &start, const T &data)
Definition: bit_encoding.h:8
ap_uint< 3 > bits
Definition: datatypes.h:46
pt_t hwPt
Definition: pf.h:10

◆ pdgId()

int l1ct::PFCommonObj::pdgId ( ) const
inline

Definition at line 23 of file pf.h.

References hwId, and l1ct::ParticleID::pdgId().

Referenced by Particle.Particle::__str__().

23 { return hwId.pdgId(); }
ParticleID hwId
Definition: pf.h:13
int pdgId() const
Definition: datatypes.h:98

◆ unpack_common()

template<typename U >
void l1ct::PFCommonObj::unpack_common ( const U &  src,
unsigned int &  start 
)
inline

Definition at line 35 of file pf.h.

References l1ct::ParticleID::bits, hwEta, hwId, hwPhi, hwPt, TrackRefitter_38T_cff::src, and unpack_from_bits().

35  {
40  }
Definition: start.py:1
eta_t hwEta
Definition: pf.h:11
ParticleID hwId
Definition: pf.h:13
phi_t hwPhi
Definition: pf.h:12
ap_uint< 3 > bits
Definition: datatypes.h:46
void unpack_from_bits(const U &u, unsigned int &start, T &data)
Definition: bit_encoding.h:15
pt_t hwPt
Definition: pf.h:10

Member Data Documentation

◆ _PFCOMMON_BITWIDTH

const int l1ct::PFCommonObj::_PFCOMMON_BITWIDTH = pt_t::width + eta_t::width + phi_t::width + 3
static

Definition at line 26 of file pf.h.

◆ hwEta

eta_t l1ct::PFCommonObj::hwEta

◆ hwId

ParticleID l1ct::PFCommonObj::hwId

◆ hwPhi

phi_t l1ct::PFCommonObj::hwPhi

◆ hwPt

pt_t l1ct::PFCommonObj::hwPt