#include <TkJetWord.h>
Public Types | |
typedef ap_uint< kDispFlagSize > | dispflag_t |
typedef ap_int< kGlbEtaSize > | glbeta_t |
typedef ap_int< kGlbPhiSize > | glbphi_t |
typedef ap_uint< kNtSize > | nt_t |
typedef ap_uint< kXtSize > | nx_t |
typedef ap_ufixed< kPtSize, kPtMagSize, AP_TRN, AP_SAT > | pt_t |
enum | TkJetBitLocations { kPtLSB = 0, kPtMSB = kPtLSB + TkJetBitWidths::kPtSize - 1, kGlbPhiLSB = kPtMSB + 1, kGlbPhiMSB = kGlbPhiLSB + TkJetBitWidths::kGlbPhiSize - 1, kGlbEtaLSB = kGlbPhiMSB + 1, kGlbEtaMSB = kGlbEtaLSB + TkJetBitWidths::kGlbEtaSize - 1, kZ0LSB = kGlbEtaMSB + 1, kZ0MSB = kZ0LSB + TkJetBitWidths::kZ0Size - 1, kNtLSB = kZ0MSB + 1, kNtMSB = kNtLSB + TkJetBitWidths::kNtSize - 1, kXtLSB = kNtMSB + 1, kXtMSB = kXtLSB + TkJetBitWidths::kXtSize - 1, kDispFlagLSB = kXtMSB + 1, kDispFlagMSB = kDispFlagLSB + TkJetBitWidths::kDispFlagSize - 1, kUnassignedLSB = kDispFlagMSB + 1, kUnassignedMSB = kUnassignedLSB + TkJetBitWidths::kUnassignedSize - 1 } |
enum | TkJetBitWidths { kPtSize = 16, kPtMagSize = 11, kGlbEtaSize = 14, kGlbPhiSize = 13, kZ0Size = 10, kNtSize = 5, kXtSize = 4, kDispFlagSize = 1, kUnassignedSize = 65, kTkJetWordSize } |
typedef ap_uint< TkJetBitWidths::kUnassignedSize > | tkjetunassigned_t |
typedef std::bitset< TkJetBitWidths::kTkJetWordSize > | tkjetword_bs_t |
typedef ap_uint< TkJetBitWidths::kTkJetWordSize > | tkjetword_t |
typedef ap_int< kZ0Size > | z0_t |
Public Member Functions | |
int | dispflag () const |
unsigned int | dispFlagBits () const |
dispflag_t | dispFlagWord () const |
float | glbeta () const |
unsigned int | glbEtaBits () const |
glbeta_t | glbEtaWord () const |
float | glbphi () const |
unsigned int | glbPhiBits () const |
glbphi_t | glbPhiWord () const |
int | nt () const |
unsigned int | ntBits () const |
nt_t | ntWord () const |
TkJetWord & | operator= (const TkJetWord &word) |
float | pt () const |
unsigned int | ptBits () const |
pt_t | ptWord () const |
void | setTkJetWord (pt_t pt, glbeta_t eta, glbphi_t phi, z0_t z0, nt_t nt, nx_t nx, dispflag_t dispflag, tkjetunassigned_t unassigned) |
TkJetWord () | |
TkJetWord (pt_t pt, glbeta_t eta, glbphi_t phi, z0_t z0, nt_t nt, nx_t nx, dispflag_t dispflag, tkjetunassigned_t unassigned) | |
TkJetWord (const TkJetWord &word) | |
tkjetword_t | tkJetWord () const |
unsigned int | unassigned () const |
unsigned int | unassignedBits () const |
tkjetunassigned_t | unassignedWord () const |
int | xt () const |
unsigned int | xtBits () const |
nx_t | xtWord () const |
float | z0 () const |
unsigned int | z0Bits () const |
z0_t | z0Word () const |
~TkJetWord () | |
Static Public Attributes | |
static constexpr double | MAX_ETA = 8. |
static constexpr double | MAX_Z0 = 30. |
Private Member Functions | |
double | unpackSignedValue (unsigned int bits, unsigned int nBits, double lsb) const |
Private Attributes | |
tkjetword_bs_t | tkJetWord_ |
Definition at line 19 of file TkJetWord.h.
typedef ap_uint<kDispFlagSize> l1t::TkJetWord::dispflag_t |
Definition at line 64 of file TkJetWord.h.
typedef ap_int<kGlbEtaSize> l1t::TkJetWord::glbeta_t |
Definition at line 59 of file TkJetWord.h.
typedef ap_int<kGlbPhiSize> l1t::TkJetWord::glbphi_t |
Definition at line 60 of file TkJetWord.h.
typedef ap_uint<kNtSize> l1t::TkJetWord::nt_t |
Definition at line 62 of file TkJetWord.h.
typedef ap_uint<kXtSize> l1t::TkJetWord::nx_t |
Definition at line 63 of file TkJetWord.h.
typedef ap_ufixed<kPtSize, kPtMagSize, AP_TRN, AP_SAT> l1t::TkJetWord::pt_t |
Definition at line 58 of file TkJetWord.h.
typedef ap_uint<TkJetBitWidths::kUnassignedSize> l1t::TkJetWord::tkjetunassigned_t |
Definition at line 65 of file TkJetWord.h.
typedef std::bitset<TkJetBitWidths::kTkJetWordSize> l1t::TkJetWord::tkjetword_bs_t |
Definition at line 66 of file TkJetWord.h.
typedef ap_uint<TkJetBitWidths::kTkJetWordSize> l1t::TkJetWord::tkjetword_t |
Definition at line 67 of file TkJetWord.h.
typedef ap_int<kZ0Size> l1t::TkJetWord::z0_t |
Definition at line 61 of file TkJetWord.h.
Enumerator | |
---|---|
kPtLSB | |
kPtMSB | |
kGlbPhiLSB | |
kGlbPhiMSB | |
kGlbEtaLSB | |
kGlbEtaMSB | |
kZ0LSB | |
kZ0MSB | |
kNtLSB | |
kNtMSB | |
kXtLSB | |
kXtMSB | |
kDispFlagLSB | |
kDispFlagMSB | |
kUnassignedLSB | |
kUnassignedMSB |
Definition at line 39 of file TkJetWord.h.
Enumerator | |
---|---|
kPtSize | |
kPtMagSize | |
kGlbEtaSize | |
kGlbPhiSize | |
kZ0Size | |
kNtSize | |
kXtSize | |
kDispFlagSize | |
kUnassignedSize | |
kTkJetWordSize |
Definition at line 25 of file TkJetWord.h.
|
inline |
Definition at line 71 of file TkJetWord.h.
l1t::TkJetWord::TkJetWord | ( | pt_t | pt, |
glbeta_t | eta, | ||
glbphi_t | phi, | ||
z0_t | z0, | ||
nt_t | nt, | ||
nx_t | nx, | ||
dispflag_t | dispflag, | ||
tkjetunassigned_t | unassigned | ||
) |
Definition at line 7 of file TkJetWord.cc.
References dispflag(), PVValHelper::eta, nt(), pt(), setTkJetWord(), unassigned(), and z0().
|
inline |
Definition at line 81 of file TkJetWord.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 124 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by dispflag(), and dispFlagBits().
|
inline |
Definition at line 149 of file TkJetWord.h.
References glbEtaWord(), MAX_ETA, and unpackSignedValue().
|
inline |
|
inline |
Definition at line 99 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by glbeta(), and glbEtaBits().
|
inline |
Definition at line 153 of file TkJetWord.h.
References funct::abs(), glbPhiWord(), M_PI, and unpackSignedValue().
|
inline |
|
inline |
Definition at line 104 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by glbphi(), and glbPhiBits().
|
inline |
Definition at line 160 of file TkJetWord.h.
References ntWord().
Referenced by setTkJetWord(), and TkJetWord().
|
inline |
|
inline |
Definition at line 114 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by nt(), and ntBits().
|
inline |
Definition at line 148 of file TkJetWord.h.
References ptWord().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), datamodel.Object::p4(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), setTkJetWord(), and TkJetWord().
|
inline |
|
inline |
Definition at line 94 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by pt(), and ptBits().
void l1t::TkJetWord::setTkJetWord | ( | pt_t | pt, |
glbeta_t | eta, | ||
glbphi_t | phi, | ||
z0_t | z0, | ||
nt_t | nt, | ||
nx_t | nx, | ||
dispflag_t | dispflag, | ||
tkjetunassigned_t | unassigned | ||
) |
Definition at line 18 of file TkJetWord.cc.
References b, PVValHelper::eta, l1tmhtemu::kUnassignedSize, nt(), hltrates_dqm_sourceclient-live_cfg::offset, pt(), tkJetWord_, unassigned(), and z0().
Referenced by TkJetWord().
|
inline |
Definition at line 133 of file TkJetWord.h.
References tkJetWord_.
Referenced by dispFlagWord(), glbEtaWord(), glbPhiWord(), ntWord(), ptWord(), unassignedWord(), xtWord(), and z0Word().
|
inline |
Definition at line 163 of file TkJetWord.h.
References unassignedWord().
Referenced by setTkJetWord(), and TkJetWord().
|
inline |
|
inline |
Definition at line 130 of file TkJetWord.h.
References l1tmhtemu::kUnassignedLSB, l1tmhtemu::kUnassignedMSB, and tkJetWord().
Referenced by unassigned(), and unassignedBits().
|
inlineprivate |
Definition at line 177 of file TkJetWord.h.
References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and l1tHGCalVFEProducer_cfi::lsb.
Referenced by glbeta(), glbphi(), and z0().
|
inline |
|
inline |
|
inline |
Definition at line 119 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by xt(), and xtBits().
|
inline |
Definition at line 157 of file TkJetWord.h.
References MAX_Z0, unpackSignedValue(), and z0Word().
Referenced by setTkJetWord(), and TkJetWord().
|
inline |
|
inline |
Definition at line 109 of file TkJetWord.h.
References runTheMatrix::ret, and tkJetWord().
Referenced by z0(), and z0Bits().
|
static |
Definition at line 23 of file TkJetWord.h.
Referenced by glbeta().
|
static |
Definition at line 22 of file TkJetWord.h.
Referenced by z0().
|
private |
Definition at line 188 of file TkJetWord.h.
Referenced by operator=(), setTkJetWord(), TkJetWord(), and tkJetWord().