#include <tkinput_ref.h>
Public Types | |
enum | Encoding { Encoding::Stepping, Encoding::Biased, Encoding::Unbiased } |
encoding used in the digitized track word More... | |
enum | Region { Region::Barrel, Region::Endcap, Region::Any } |
Public Member Functions | |
l1ct::tkdeta_t | calcDEtaBarrel (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
l1ct::tkdeta_t | calcDEtaHGCal (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
l1ct::tkdphi_t | calcDPhiBarrel (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
l1ct::tkdphi_t | calcDPhiHGCal (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
void | configDEtaBarrel (int dEtaBarrelBits, int dEtaBarrelZ0PreShift, int dEtaBarrelZ0PostShift, float offs=0) |
void | configDEtaHGCal (int dEtaHGCalBits, int dEtaHGCalZ0PreShift, int dEtaHGCalRInvPreShift, int dEtaHGCalLUTBits, int dEtaHGCalLUTShift, float offs=0) |
void | configDPhiBarrel (int dPhiBarrelBits, int dPhiBarrelRInvPreShift, int dPhiBarrelRInvPostShift, float offs=0) |
void | configDPhiHGCal (int dPhiHGCalBits, int dPhiHGCalZ0PreShift, int dPhiHGCalZ0PostShift, int dPhiHGCalRInvShift, int dPhiHGCalTanlInvShift, int dPhiHGCalTanlLUTBits, float offs=0) |
void | configEta (int lutBits, int preOffs, int shift, int postOffs, bool lutSigned, bool endcap) |
void | configPhi (int bits) |
void | configPt (int lutBits) |
void | configZ0 (int bits) |
l1ct::glbeta_t | convEta (ap_int< 16 > tanl) const |
convert track-word int tanl into eta at vertex in layer 1 units More... | |
l1ct::phi_t | convPhi (ap_int< 12 > phi) const |
convert track-word int phi into phi at vertex in layer 1 units More... | |
l1ct::pt_t | convPt (ap_int< 15 > Rinv) const |
l1ct::z0_t | convZ0 (ap_int< 12 > z0) const |
std::pair< l1ct::TkObjEmu, bool > | decodeTrack (ap_uint< 96 > tkword, const l1ct::PFRegionEmu §or) const |
std::pair< l1ct::TkObjEmu, bool > | decodeTrack (ap_uint< 96 > tkword, const l1ct::PFRegionEmu §or, bool bitwise) const |
const std::vector< int > & | dEtaHGCalLUT () const |
const std::vector< int > & | dPhiHGCalTanlLUT () const |
float | floatDEtaBarrel (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
float | floatDEtaHGCal (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
float | floatDPhiBarrel (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
float | floatDPhiHGCal (ap_int< 12 > z0, ap_int< 15 > Rinv, ap_int< 16 > tanl) const |
float | floatEta (ap_int< 16 > tanl) const |
convert track-word int tanl into float eta (at vertex) in radiants (exact) More... | |
float | floatPhi (ap_int< 12 > phi) const |
convert track-word int phi into float phi (at vertex) in radiants (exact) More... | |
float | floatPt (ap_int< 15 > Rinv) const |
convert track-word Rinv into float pt (almost exact) More... | |
float | floatTanl (ap_int< 16 > tanl) const |
just unpack tanl to a float More... | |
float | floatZ0 (ap_int< 12 > z0) const |
convert track-word int z0 into float z0 in cm (exact) More... | |
const std::vector< l1ct::pt_t > & | ptLUT () const |
void | setDebug (bool debug=true) |
void | setDEtaBarrelParams (float pZ0) |
void | setDEtaHGCalParams (float pZ0, float pRinv2C, float pRinv2ITanl1, float pRinv2ITanl2) |
void | setDPhiBarrelParams (float pC) |
void | setDPhiHGCalParams (float pZ0, float pC) |
void | setPhiScale (float phiScale) |
void | setRinvToPtFactor (float rInvToPt) |
void | setZ0Scale (float z0Scale) |
const std::vector< int > & | tanlLUT () const |
TrackInputEmulator (const edm::ParameterSet &iConfig) | |
TrackInputEmulator (Region=Region::Endcap, Encoding encoding=Encoding::Stepping, bool bitwise=true) | |
Static Public Member Functions | |
static bool | charge (const ap_uint< 96 > &tkword) |
static bool | mayReachHGCal (ap_int< 16 > tanl) |
conservative cut to select tracks that may have |eta| > 1.25 or |calo eta| > 1.25 More... | |
static ap_int< 12 > | signedPhi (const ap_uint< 96 > &tkword) |
static ap_int< 15 > | signedRinv (const ap_uint< 96 > &tkword) |
static ap_int< 16 > | signedTanl (const ap_uint< 96 > &tkword) |
static ap_int< 12 > | signedZ0 (const ap_uint< 96 > &tkword) |
static bool | valid (const ap_uint< 96 > &tkword) |
static bool | withinBarrel (ap_int< 16 > tanl) |
conservative cut to avoid filling LUTs outside of the barrel range More... | |
static bool | withinTracker (ap_int< 16 > tanl) |
conservative cut to avoid filling LUTs outside of the tracker range More... | |
Protected Member Functions | |
template<int N> | |
float | toFloat_ (ap_int< N > signedVal) const |
Definition at line 13 of file tkinput_ref.h.
|
strong |
encoding used in the digitized track word
Enumerator | |
---|---|
Stepping | |
Biased | |
Unbiased |
Definition at line 18 of file tkinput_ref.h.
|
strong |
l1ct::TrackInputEmulator::TrackInputEmulator | ( | const edm::ParameterSet & | iConfig | ) |
l1ct::TrackInputEmulator::TrackInputEmulator | ( | Region | = Region::Endcap , |
Encoding | encoding = Encoding::Stepping , |
||
bool | bitwise = true |
||
) |
l1ct::tkdeta_t l1ct::TrackInputEmulator::calcDEtaBarrel | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
l1ct::tkdeta_t l1ct::TrackInputEmulator::calcDEtaHGCal | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
l1ct::tkdphi_t l1ct::TrackInputEmulator::calcDPhiBarrel | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
l1ct::tkdphi_t l1ct::TrackInputEmulator::calcDPhiHGCal | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
|
inlinestatic |
Definition at line 36 of file tkinput_ref.h.
void l1ct::TrackInputEmulator::configDEtaBarrel | ( | int | dEtaBarrelBits, |
int | dEtaBarrelZ0PreShift, | ||
int | dEtaBarrelZ0PostShift, | ||
float | offs = 0 |
||
) |
void l1ct::TrackInputEmulator::configDEtaHGCal | ( | int | dEtaHGCalBits, |
int | dEtaHGCalZ0PreShift, | ||
int | dEtaHGCalRInvPreShift, | ||
int | dEtaHGCalLUTBits, | ||
int | dEtaHGCalLUTShift, | ||
float | offs = 0 |
||
) |
void l1ct::TrackInputEmulator::configDPhiBarrel | ( | int | dPhiBarrelBits, |
int | dPhiBarrelRInvPreShift, | ||
int | dPhiBarrelRInvPostShift, | ||
float | offs = 0 |
||
) |
void l1ct::TrackInputEmulator::configDPhiHGCal | ( | int | dPhiHGCalBits, |
int | dPhiHGCalZ0PreShift, | ||
int | dPhiHGCalZ0PostShift, | ||
int | dPhiHGCalRInvShift, | ||
int | dPhiHGCalTanlInvShift, | ||
int | dPhiHGCalTanlLUTBits, | ||
float | offs = 0 |
||
) |
void l1ct::TrackInputEmulator::configEta | ( | int | lutBits, |
int | preOffs, | ||
int | shift, | ||
int | postOffs, | ||
bool | lutSigned, | ||
bool | endcap | ||
) |
void l1ct::TrackInputEmulator::configPhi | ( | int | bits | ) |
void l1ct::TrackInputEmulator::configPt | ( | int | lutBits | ) |
void l1ct::TrackInputEmulator::configZ0 | ( | int | bits | ) |
l1ct::glbeta_t l1ct::TrackInputEmulator::convEta | ( | ap_int< 16 > | tanl | ) | const |
convert track-word int tanl into eta at vertex in layer 1 units
l1ct::phi_t l1ct::TrackInputEmulator::convPhi | ( | ap_int< 12 > | phi | ) | const |
convert track-word int phi into phi at vertex in layer 1 units
l1ct::pt_t l1ct::TrackInputEmulator::convPt | ( | ap_int< 15 > | Rinv | ) | const |
l1ct::z0_t l1ct::TrackInputEmulator::convZ0 | ( | ap_int< 12 > | z0 | ) | const |
|
inline |
Definition at line 27 of file tkinput_ref.h.
References bitwise_, and hgcalTBTopologyTester_cfi::sector.
std::pair<l1ct::TkObjEmu, bool> l1ct::TrackInputEmulator::decodeTrack | ( | ap_uint< 96 > | tkword, |
const l1ct::PFRegionEmu & | sector, | ||
bool | bitwise | ||
) | const |
|
inline |
Definition at line 149 of file tkinput_ref.h.
References dEtaHGCalLUT_.
|
inline |
Definition at line 150 of file tkinput_ref.h.
References dPhiHGCalTanlLUT_.
float l1ct::TrackInputEmulator::floatDEtaBarrel | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
float l1ct::TrackInputEmulator::floatDEtaHGCal | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
float l1ct::TrackInputEmulator::floatDPhiBarrel | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
float l1ct::TrackInputEmulator::floatDPhiHGCal | ( | ap_int< 12 > | z0, |
ap_int< 15 > | Rinv, | ||
ap_int< 16 > | tanl | ||
) | const |
float l1ct::TrackInputEmulator::floatEta | ( | ap_int< 16 > | tanl | ) | const |
convert track-word int tanl into float eta (at vertex) in radiants (exact)
float l1ct::TrackInputEmulator::floatPhi | ( | ap_int< 12 > | phi | ) | const |
convert track-word int phi into float phi (at vertex) in radiants (exact)
float l1ct::TrackInputEmulator::floatPt | ( | ap_int< 15 > | Rinv | ) | const |
convert track-word Rinv into float pt (almost exact)
|
inline |
just unpack tanl to a float
Definition at line 45 of file tkinput_ref.h.
References toFloat_().
float l1ct::TrackInputEmulator::floatZ0 | ( | ap_int< 12 > | z0 | ) | const |
convert track-word int z0 into float z0 in cm (exact)
|
inlinestatic |
conservative cut to select tracks that may have |eta| > 1.25 or |calo eta| > 1.25
Definition at line 138 of file tkinput_ref.h.
|
inline |
|
inline |
Definition at line 144 of file tkinput_ref.h.
|
inline |
Definition at line 91 of file tkinput_ref.h.
References dEtaBarrelParamZ0_.
|
inline |
Definition at line 107 of file tkinput_ref.h.
References dEtaHGCalParamRInv2C_, dEtaHGCalParamRInv2ITanl1_, dEtaHGCalParamRInv2ITanl2_, and dEtaHGCalParamZ0_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 41 of file tkinput_ref.h.
|
inlinestatic |
Definition at line 38 of file tkinput_ref.h.
|
inlinestatic |
Definition at line 40 of file tkinput_ref.h.
|
inlinestatic |
Definition at line 39 of file tkinput_ref.h.
|
inline |
|
inlineprotected |
Definition at line 157 of file tkinput_ref.h.
References Biased, encoding_, runTheMatrix::ret, and Stepping.
Referenced by floatTanl().
|
inlinestatic |
Definition at line 35 of file tkinput_ref.h.
|
inlinestatic |
conservative cut to avoid filling LUTs outside of the barrel range
Definition at line 142 of file tkinput_ref.h.
|
inlinestatic |
conservative cut to avoid filling LUTs outside of the tracker range
Definition at line 140 of file tkinput_ref.h.
|
protected |
Whether to run the bitwise accurate or floating point conversions.
Definition at line 176 of file tkinput_ref.h.
Referenced by decodeTrack().
|
protected |
enable debug printout in some metods
Definition at line 221 of file tkinput_ref.h.
Referenced by setDebug().
|
protected |
Definition at line 196 of file tkinput_ref.h.
|
protected |
Definition at line 196 of file tkinput_ref.h.
|
protected |
Parameters for track propagation in floating point.
Definition at line 182 of file tkinput_ref.h.
Referenced by setDEtaBarrelParams().
|
protected |
Definition at line 196 of file tkinput_ref.h.
|
protected |
Definition at line 196 of file tkinput_ref.h.
|
protected |
Definition at line 196 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 204 of file tkinput_ref.h.
Referenced by dEtaHGCalLUT().
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 186 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Definition at line 186 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Definition at line 186 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Parameters for track propagation in floating point.
Definition at line 186 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 202 of file tkinput_ref.h.
|
protected |
Definition at line 199 of file tkinput_ref.h.
|
protected |
Definition at line 199 of file tkinput_ref.h.
|
protected |
Definition at line 199 of file tkinput_ref.h.
|
protected |
Definition at line 183 of file tkinput_ref.h.
Referenced by setDPhiBarrelParams().
|
protected |
Definition at line 199 of file tkinput_ref.h.
|
protected |
Definition at line 199 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 187 of file tkinput_ref.h.
Referenced by setDPhiHGCalParams().
|
protected |
Definition at line 187 of file tkinput_ref.h.
Referenced by setDPhiHGCalParams().
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 209 of file tkinput_ref.h.
Referenced by dPhiHGCalTanlLUT().
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Definition at line 207 of file tkinput_ref.h.
|
protected |
Encoding used for track word inputs.
Definition at line 173 of file tkinput_ref.h.
Referenced by toFloat_().
|
protected |
Definition at line 179 of file tkinput_ref.h.
Referenced by setPhiScale().
|
protected |
Definition at line 218 of file tkinput_ref.h.
Referenced by ptLUT().
|
protected |
Definition at line 217 of file tkinput_ref.h.
|
protected |
Region for which the emulation is configured.
Definition at line 170 of file tkinput_ref.h.
|
protected |
|
protected |
Definition at line 213 of file tkinput_ref.h.
Referenced by tanlLUT().
|
protected |
Definition at line 212 of file tkinput_ref.h.
|
protected |
Definition at line 212 of file tkinput_ref.h.
|
protected |
Definition at line 212 of file tkinput_ref.h.
|
protected |
Definition at line 214 of file tkinput_ref.h.
|
protected |
Definition at line 190 of file tkinput_ref.h.
|
protected |
Definition at line 190 of file tkinput_ref.h.
|
protected |
Definition at line 190 of file tkinput_ref.h.
|
protected |
Definition at line 190 of file tkinput_ref.h.
|
protected |
Definition at line 193 of file tkinput_ref.h.
|
protected |
Definition at line 193 of file tkinput_ref.h.
|
protected |
Definition at line 193 of file tkinput_ref.h.
|
protected |
Definition at line 193 of file tkinput_ref.h.
|
protected |
Definition at line 179 of file tkinput_ref.h.
Referenced by setZ0Scale().