#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 |
unsigned int | countSetBits (unsigned int n) 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 |
std::pair< l1ct::TkObjEmu, bool > | decodeTrack (ap_uint< 96 > tkword, const l1ct::PFRegionEmu §or, bool bitwise, bool slim) 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, bool slim=true) | |
Static Public Member Functions | |
static bool | charge (const ap_uint< 96 > &tkword) |
static edm::ParameterSetDescription | getParameterSetDescription () |
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 14 of file tkinput_ref.h.
|
strong |
encoding used in the digitized track word
Enumerator | |
---|---|
Stepping | |
Biased | |
Unbiased |
Definition at line 19 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 , |
||
bool | slim = 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 49 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 167 of file tkinput_ref.h.
References submitPVResolutionJobs::count, and create_idmaps::n.
|
inline |
Definition at line 33 of file tkinput_ref.h.
References bitwise_, nano_mu_digi_cff::sector, and slim_.
Referenced by decodeTrack().
|
inline |
Definition at line 36 of file tkinput_ref.h.
References decodeTrack(), nano_mu_digi_cff::sector, and slim_.
std::pair<l1ct::TkObjEmu, bool> l1ct::TrackInputEmulator::decodeTrack | ( | ap_uint< 96 > | tkword, |
const l1ct::PFRegionEmu & | sector, | ||
bool | bitwise, | ||
bool | slim | ||
) | const |
|
inline |
Definition at line 162 of file tkinput_ref.h.
References dEtaHGCalLUT_.
|
inline |
Definition at line 163 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 58 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)
|
static |
|
inlinestatic |
conservative cut to select tracks that may have |eta| > 1.25 or |calo eta| > 1.25
Definition at line 151 of file tkinput_ref.h.
|
inline |
|
inline |
Definition at line 157 of file tkinput_ref.h.
|
inline |
Definition at line 104 of file tkinput_ref.h.
References dEtaBarrelParamZ0_.
|
inline |
Definition at line 120 of file tkinput_ref.h.
References dEtaHGCalParamRInv2C_, dEtaHGCalParamRInv2ITanl1_, dEtaHGCalParamRInv2ITanl2_, and dEtaHGCalParamZ0_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 54 of file tkinput_ref.h.
|
inlinestatic |
Definition at line 51 of file tkinput_ref.h.
|
inlinestatic |
Definition at line 53 of file tkinput_ref.h.
|
inlinestatic |
Definition at line 52 of file tkinput_ref.h.
|
inline |
|
inlineprotected |
Definition at line 179 of file tkinput_ref.h.
References Biased, encoding_, runTheMatrix::ret, and Stepping.
Referenced by floatTanl().
|
inlinestatic |
Definition at line 48 of file tkinput_ref.h.
|
inlinestatic |
conservative cut to avoid filling LUTs outside of the barrel range
Definition at line 155 of file tkinput_ref.h.
|
inlinestatic |
conservative cut to avoid filling LUTs outside of the tracker range
Definition at line 153 of file tkinput_ref.h.
|
protected |
Whether to run the bitwise accurate or floating point conversions.
Definition at line 198 of file tkinput_ref.h.
Referenced by decodeTrack().
|
protected |
enable debug printout in some metods
Definition at line 246 of file tkinput_ref.h.
Referenced by setDebug().
|
protected |
Definition at line 221 of file tkinput_ref.h.
|
protected |
Definition at line 221 of file tkinput_ref.h.
|
protected |
Parameters for track propagation in floating point.
Definition at line 207 of file tkinput_ref.h.
Referenced by setDEtaBarrelParams().
|
protected |
Definition at line 221 of file tkinput_ref.h.
|
protected |
Definition at line 221 of file tkinput_ref.h.
|
protected |
Definition at line 221 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 229 of file tkinput_ref.h.
Referenced by dEtaHGCalLUT().
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 211 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Definition at line 211 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Definition at line 211 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Parameters for track propagation in floating point.
Definition at line 211 of file tkinput_ref.h.
Referenced by setDEtaHGCalParams().
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 227 of file tkinput_ref.h.
|
protected |
Definition at line 224 of file tkinput_ref.h.
|
protected |
Definition at line 224 of file tkinput_ref.h.
|
protected |
Definition at line 224 of file tkinput_ref.h.
|
protected |
Definition at line 208 of file tkinput_ref.h.
Referenced by setDPhiBarrelParams().
|
protected |
Definition at line 224 of file tkinput_ref.h.
|
protected |
Definition at line 224 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 212 of file tkinput_ref.h.
Referenced by setDPhiHGCalParams().
|
protected |
Definition at line 212 of file tkinput_ref.h.
Referenced by setDPhiHGCalParams().
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 234 of file tkinput_ref.h.
Referenced by dPhiHGCalTanlLUT().
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Definition at line 232 of file tkinput_ref.h.
|
protected |
Encoding used for track word inputs.
Definition at line 195 of file tkinput_ref.h.
Referenced by toFloat_().
|
protected |
Definition at line 204 of file tkinput_ref.h.
Referenced by setPhiScale().
|
protected |
Definition at line 243 of file tkinput_ref.h.
Referenced by ptLUT().
|
protected |
Definition at line 242 of file tkinput_ref.h.
|
protected |
Region for which the emulation is configured.
Definition at line 192 of file tkinput_ref.h.
|
protected |
|
protected |
Whether to unpack and populate also nstubs and various chi2 variables (needed for CompibedID in the endcap)
Definition at line 201 of file tkinput_ref.h.
Referenced by decodeTrack().
|
protected |
Definition at line 238 of file tkinput_ref.h.
Referenced by tanlLUT().
|
protected |
Definition at line 237 of file tkinput_ref.h.
|
protected |
Definition at line 237 of file tkinput_ref.h.
|
protected |
Definition at line 237 of file tkinput_ref.h.
|
protected |
Definition at line 239 of file tkinput_ref.h.
|
protected |
Definition at line 215 of file tkinput_ref.h.
|
protected |
Definition at line 215 of file tkinput_ref.h.
|
protected |
Definition at line 215 of file tkinput_ref.h.
|
protected |
Definition at line 215 of file tkinput_ref.h.
|
protected |
Definition at line 218 of file tkinput_ref.h.
|
protected |
Definition at line 218 of file tkinput_ref.h.
|
protected |
Definition at line 218 of file tkinput_ref.h.
|
protected |
Definition at line 218 of file tkinput_ref.h.
|
protected |
Definition at line 204 of file tkinput_ref.h.
Referenced by setZ0Scale().