#include <TkTripletWord.h>
Public Types | |
typedef ap_int< kChargeSize > | charge_t |
typedef ap_int< kDiTrackMaxMassSize > | ditrack_maxmass_t |
typedef ap_int< kDiTrackMaxZ0Size > | ditrack_maxz0_t |
typedef ap_int< kDiTrackMinMassSize > | ditrack_minmass_t |
typedef ap_int< kDiTrackMinZ0Size > | ditrack_minz0_t |
typedef ap_int< kGlbEtaSize > | glbeta_t |
typedef ap_int< kGlbPhiSize > | glbphi_t |
typedef ap_int< kMassSize > | mass_t |
typedef ap_ufixed< kPtSize, kPtMagSize, AP_TRN, AP_SAT > | pt_t |
enum | TkTripletBitLocations { kValidLSB = 0, kValidMSB = kValidLSB + TkTripletBitWidths::kValidSize - 1, kPtLSB = kValidMSB + 1, kPtMSB = kPtLSB + TkTripletBitWidths::kPtSize - 1, kGlbPhiLSB = kPtMSB + 1, kGlbPhiMSB = kGlbPhiLSB + TkTripletBitWidths::kGlbPhiSize - 1, kGlbEtaLSB = kGlbPhiMSB + 1, kGlbEtaMSB = kGlbEtaLSB + TkTripletBitWidths::kGlbEtaSize - 1, kMassLSB = kGlbEtaMSB + 1, kMassMSB = kMassLSB + TkTripletBitWidths::kMassSize - 1, kChargeLSB = kMassMSB + 1, kChargeMSB = kChargeLSB + TkTripletBitWidths::kChargeSize - 1, kDiTrackMinMassLSB = kChargeMSB + 1, kDiTrackMinMassMSB = kDiTrackMinMassLSB + TkTripletBitWidths::kDiTrackMinMassSize - 1, kDiTrackMaxMassLSB = kDiTrackMinMassMSB + 1, kDiTrackMaxMassMSB = kDiTrackMaxMassLSB + TkTripletBitWidths::kDiTrackMaxMassSize - 1, kDiTrackMinZ0LSB = kDiTrackMaxMassMSB + 1, kDiTrackMinZ0MSB = kDiTrackMinZ0LSB + TkTripletBitWidths::kDiTrackMinZ0Size - 1, kDiTrackMaxZ0LSB = kDiTrackMinZ0MSB + 1, kDiTrackMaxZ0MSB = kDiTrackMaxZ0LSB + TkTripletBitWidths::kDiTrackMaxZ0Size - 1, kUnassignedLSB = kDiTrackMaxZ0MSB + 1, kUnassignedMSB = kUnassignedLSB + TkTripletBitWidths::kUnassignedSize - 1 } |
enum | TkTripletBitWidths { kValidSize = 1, kPtSize = 16, kPtMagSize = 11, kGlbEtaSize = 14, kGlbPhiSize = 13, kMassSize = 16, kChargeSize = 3, kDiTrackMinMassSize = 16, kDiTrackMaxMassSize = 16, kDiTrackMinZ0Size = 8, kDiTrackMaxZ0Size = 8, kUnassignedSize = 17, kTkTripletWordSize } |
typedef std::bitset< TkTripletBitWidths::kTkTripletWordSize > | tktripletword_bs_t |
typedef ap_uint< TkTripletBitWidths::kTkTripletWordSize > | tktripletword_t |
typedef ap_uint< TkTripletBitWidths::kUnassignedSize > | unassigned_t |
typedef ap_uint< kValidSize > | valid_t |
Static Public Attributes | |
static constexpr double | MAX_CHARGE = 3. |
static constexpr double | MAX_ETA = 8. |
static constexpr double | MAX_MASS = 1000. |
static constexpr double | MAX_Z0 = 25. |
Private Member Functions | |
double | unpackSignedValue (unsigned int bits, unsigned int nBits, double lsb) const |
Private Attributes | |
tktripletword_bs_t | tkTripletWord_ |
Definition at line 17 of file TkTripletWord.h.
typedef ap_int<kChargeSize> l1t::TkTripletWord::charge_t |
Definition at line 76 of file TkTripletWord.h.
typedef ap_int<kDiTrackMaxMassSize> l1t::TkTripletWord::ditrack_maxmass_t |
Definition at line 78 of file TkTripletWord.h.
typedef ap_int<kDiTrackMaxZ0Size> l1t::TkTripletWord::ditrack_maxz0_t |
Definition at line 80 of file TkTripletWord.h.
typedef ap_int<kDiTrackMinMassSize> l1t::TkTripletWord::ditrack_minmass_t |
Definition at line 77 of file TkTripletWord.h.
typedef ap_int<kDiTrackMinZ0Size> l1t::TkTripletWord::ditrack_minz0_t |
Definition at line 79 of file TkTripletWord.h.
typedef ap_int<kGlbEtaSize> l1t::TkTripletWord::glbeta_t |
Definition at line 73 of file TkTripletWord.h.
typedef ap_int<kGlbPhiSize> l1t::TkTripletWord::glbphi_t |
Definition at line 74 of file TkTripletWord.h.
typedef ap_int<kMassSize> l1t::TkTripletWord::mass_t |
Definition at line 75 of file TkTripletWord.h.
typedef ap_ufixed<kPtSize, kPtMagSize, AP_TRN, AP_SAT> l1t::TkTripletWord::pt_t |
Definition at line 72 of file TkTripletWord.h.
typedef std::bitset<TkTripletBitWidths::kTkTripletWordSize> l1t::TkTripletWord::tktripletword_bs_t |
Definition at line 82 of file TkTripletWord.h.
typedef ap_uint<TkTripletBitWidths::kTkTripletWordSize> l1t::TkTripletWord::tktripletword_t |
Definition at line 83 of file TkTripletWord.h.
typedef ap_uint<TkTripletBitWidths::kUnassignedSize> l1t::TkTripletWord::unassigned_t |
Definition at line 81 of file TkTripletWord.h.
typedef ap_uint<kValidSize> l1t::TkTripletWord::valid_t |
Definition at line 71 of file TkTripletWord.h.
Definition at line 44 of file TkTripletWord.h.
Enumerator | |
---|---|
kValidSize | |
kPtSize | |
kPtMagSize | |
kGlbEtaSize | |
kGlbPhiSize | |
kMassSize | |
kChargeSize | |
kDiTrackMinMassSize | |
kDiTrackMaxMassSize | |
kDiTrackMinZ0Size | |
kDiTrackMaxZ0Size | |
kUnassignedSize | |
kTkTripletWordSize |
Definition at line 25 of file TkTripletWord.h.
|
inline |
Definition at line 87 of file TkTripletWord.h.
l1t::TkTripletWord::TkTripletWord | ( | valid_t | valid, |
pt_t | pt, | ||
glbeta_t | eta, | ||
glbphi_t | phi, | ||
mass_t | mass, | ||
charge_t | charge, | ||
ditrack_minmass_t | ditrack_minmass, | ||
ditrack_maxmass_t | ditrack_maxmass, | ||
ditrack_minz0_t | ditrack_minz0_t, | ||
ditrack_maxz0_t | ditrack_maxz0_t, | ||
unassigned_t | unassigned | ||
) |
Definition at line 7 of file TkTripletWord.cc.
References charge(), PVValHelper::eta, mass(), pt(), setTkTripletWord(), unassigned(), and valid().
|
inline |
Definition at line 100 of file TkTripletWord.h.
|
inline |
|
inline |
Definition at line 198 of file TkTripletWord.h.
References chargeWord(), MAX_CHARGE, and unpackSignedValue().
Referenced by setTkTripletWord(), and TkTripletWord().
|
inline |
|
inline |
Definition at line 136 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by charge(), and chargeBits().
|
inline |
Definition at line 207 of file TkTripletWord.h.
References ditrackMaxMassWord(), MAX_MASS, and unpackSignedValue().
|
inline |
Definition at line 176 of file TkTripletWord.h.
References ditrackMaxMassWord().
|
inline |
Definition at line 147 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by ditrackMaxMass(), and ditrackMaxMassBits().
|
inline |
Definition at line 217 of file TkTripletWord.h.
References ditrackMaxZ0Word(), MAX_Z0, and unpackSignedValue().
|
inline |
Definition at line 178 of file TkTripletWord.h.
References ditrackMaxZ0Word().
|
inline |
Definition at line 157 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by ditrackMaxZ0(), and ditrackMaxZ0Bits().
|
inline |
Definition at line 202 of file TkTripletWord.h.
References ditrackMinMassWord(), MAX_MASS, and unpackSignedValue().
|
inline |
Definition at line 175 of file TkTripletWord.h.
References ditrackMinMassWord().
|
inline |
Definition at line 142 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by ditrackMinMass(), and ditrackMinMassBits().
|
inline |
Definition at line 212 of file TkTripletWord.h.
References ditrackMinZ0Word(), MAX_Z0, and unpackSignedValue().
|
inline |
Definition at line 177 of file TkTripletWord.h.
References ditrackMinZ0Word().
|
inline |
Definition at line 152 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by ditrackMinZ0(), and ditrackMinZ0Bits().
|
inline |
Definition at line 185 of file TkTripletWord.h.
References glbEtaWord(), MAX_ETA, and unpackSignedValue().
|
inline |
|
inline |
Definition at line 121 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by glbeta(), and glbEtaBits().
|
inline |
Definition at line 189 of file TkTripletWord.h.
References funct::abs(), glbPhiWord(), M_PI, and unpackSignedValue().
|
inline |
|
inline |
Definition at line 126 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by glbphi(), and glbPhiBits().
|
inline |
Definition at line 194 of file TkTripletWord.h.
References massWord(), MAX_MASS, and unpackSignedValue().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), datamodel.Object::p4(), setTkTripletWord(), and TkTripletWord().
|
inline |
|
inline |
Definition at line 131 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by mass(), and massBits().
|
inline |
|
inline |
Definition at line 23 of file TkTripletWord.cc.
References b, and tkTripletWord_.
Referenced by setTkTripletWord().
|
inline |
Definition at line 184 of file TkTripletWord.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(), setTkTripletWord(), and TkTripletWord().
|
inline |
|
inline |
Definition at line 116 of file TkTripletWord.h.
References runTheMatrix::ret, and tkTripletWord().
Referenced by pt(), and ptBits().
void l1t::TkTripletWord::setTkTripletWord | ( | valid_t | valid, |
pt_t | pt, | ||
glbeta_t | eta, | ||
glbphi_t | phi, | ||
mass_t | mass, | ||
charge_t | charge, | ||
ditrack_minmass_t | ditrack_minmass, | ||
ditrack_maxmass_t | ditrack_maxmass, | ||
ditrack_minz0_t | ditrack_minz0, | ||
ditrack_maxz0_t | ditrack_maxz0, | ||
unassigned_t | unassigned | ||
) |
Definition at line 32 of file TkTripletWord.cc.
References charge(), PVValHelper::eta, l1tmhtemu::kValidSize, mass(), HLT_IsoTrack_cff::offset, packIntoWord(), pt(), and valid().
Referenced by TkTripletWord().
|
inline |
Definition at line 165 of file TkTripletWord.h.
References tkTripletWord_.
Referenced by chargeWord(), ditrackMaxMassWord(), ditrackMaxZ0Word(), ditrackMinMassWord(), ditrackMinZ0Word(), glbEtaWord(), glbPhiWord(), massWord(), ptWord(), unassignedWord(), and validWord().
|
inline |
Definition at line 222 of file TkTripletWord.h.
References unassignedWord().
Referenced by TkTripletWord().
|
inline |
Definition at line 179 of file TkTripletWord.h.
References unassignedWord().
|
inline |
Definition at line 162 of file TkTripletWord.h.
References l1tmhtemu::kUnassignedLSB, l1tmhtemu::kUnassignedMSB, and tkTripletWord().
Referenced by unassigned(), and unassignedBits().
|
inlineprivate |
Definition at line 242 of file TkTripletWord.h.
References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and l1tHGCalVFEProducer_cfi::lsb.
Referenced by charge(), ditrackMaxMass(), ditrackMaxZ0(), ditrackMinMass(), ditrackMinZ0(), glbeta(), glbphi(), and mass().
|
inline |
Definition at line 183 of file TkTripletWord.h.
References validWord().
Referenced by setTkTripletWord(), and TkTripletWord().
|
inline |
|
inline |
Definition at line 113 of file TkTripletWord.h.
References l1tmhtemu::kValidLSB, l1tmhtemu::kValidMSB, and tkTripletWord().
Referenced by valid(), and validBits().
|
static |
Definition at line 22 of file TkTripletWord.h.
Referenced by charge().
|
static |
Definition at line 21 of file TkTripletWord.h.
Referenced by glbeta().
|
static |
Definition at line 20 of file TkTripletWord.h.
Referenced by ditrackMaxMass(), ditrackMinMass(), and mass().
|
static |
Definition at line 23 of file TkTripletWord.h.
Referenced by ditrackMaxZ0(), and ditrackMinZ0().
|
private |
Definition at line 253 of file TkTripletWord.h.
Referenced by operator=(), packIntoWord(), TkTripletWord(), and tkTripletWord().