#include <TTTrack_TrackWord.h>
Public Types | |
typedef ap_uint < TrackBitWidths::kBendChi2Size > | bendChi2_t |
typedef ap_uint < TrackBitWidths::kChi2RPhiSize > | chi2rphi_t |
typedef ap_uint < TrackBitWidths::kChi2RZSize > | chi2rz_t |
typedef ap_uint < TrackBitWidths::kD0Size > | d0_t |
typedef ap_uint < TrackBitWidths::kHitPatternSize > | hit_t |
typedef ap_uint < TrackBitWidths::kMVAOtherSize > | otherMVA_t |
typedef ap_uint < TrackBitWidths::kPhiSize > | phi_t |
typedef ap_uint < TrackBitWidths::kMVAQualitySize > | qualityMVA_t |
typedef ap_uint < TrackBitWidths::kRinvSize > | rinv_t |
typedef ap_uint < TrackBitWidths::kTanlSize > | tanl_t |
typedef std::bitset < TrackBitWidths::kTrackWordSize > | tkword_bs_t |
typedef ap_uint < TrackBitWidths::kTrackWordSize > | tkword_t |
enum | TrackBitLocations { kMVAOtherLSB = 0, kMVAOtherMSB = kMVAOtherLSB + TrackBitWidths::kMVAOtherSize - 1, kMVAQualityLSB = kMVAOtherMSB + 1, kMVAQualityMSB = kMVAQualityLSB + TrackBitWidths::kMVAQualitySize - 1, kHitPatternLSB = kMVAQualityMSB + 1, kHitPatternMSB = kHitPatternLSB + TrackBitWidths::kHitPatternSize - 1, kBendChi2LSB = kHitPatternMSB + 1, kBendChi2MSB = kBendChi2LSB + TrackBitWidths::kBendChi2Size - 1, kD0LSB = kBendChi2MSB + 1, kD0MSB = kD0LSB + TrackBitWidths::kD0Size - 1, kChi2RZLSB = kD0MSB + 1, kChi2RZMSB = kChi2RZLSB + TrackBitWidths::kChi2RZSize - 1, kZ0LSB = kChi2RZMSB + 1, kZ0MSB = kZ0LSB + TrackBitWidths::kZ0Size - 1, kTanlLSB = kZ0MSB + 1, kTanlMSB = kTanlLSB + TrackBitWidths::kTanlSize - 1, kChi2RPhiLSB = kTanlMSB + 1, kChi2RPhiMSB = kChi2RPhiLSB + TrackBitWidths::kChi2RPhiSize - 1, kPhiLSB = kChi2RPhiMSB + 1, kPhiMSB = kPhiLSB + TrackBitWidths::kPhiSize - 1, kRinvLSB = kPhiMSB + 1, kRinvMSB = kRinvLSB + TrackBitWidths::kRinvSize - 1, kValidLSB = kRinvMSB + 1, kValidMSB = kValidLSB + TrackBitWidths::kValidSize - 1 } |
enum | TrackBitWidths { kMVAOtherSize = 6, kMVAQualitySize = 3, kHitPatternSize = 7, kBendChi2Size = 3, kD0Size = 13, kChi2RZSize = 4, kZ0Size = 12, kTanlSize = 16, kChi2RPhiSize = 4, kPhiSize = 12, kRinvSize = 15, kValidSize = 1, kTrackWordSize } |
typedef ap_uint < TrackBitWidths::kValidSize > | valid_t |
typedef ap_uint < TrackBitWidths::kZ0Size > | z0_t |
Public Member Functions | |
double | getBendChi2 () const |
unsigned int | getBendChi2Bits () const |
bendChi2_t | getBendChi2Word () const |
double | getChi2RPhi () const |
unsigned int | getChi2RPhiBits () const |
chi2rphi_t | getChi2RPhiWord () const |
double | getChi2RZ () const |
unsigned int | getChi2RZBits () const |
chi2rz_t | getChi2RZWord () const |
double | getD0 () const |
unsigned int | getD0Bits () const |
d0_t | getD0Word () const |
unsigned int | getHitPattern () const |
unsigned int | getHitPatternBits () const |
hit_t | getHitPatternWord () const |
unsigned int | getMVAOther () const |
unsigned int | getMVAOtherBits () const |
otherMVA_t | getMVAOtherWord () const |
unsigned int | getMVAQuality () const |
unsigned int | getMVAQualityBits () const |
qualityMVA_t | getMVAQualityWord () const |
double | getPhi () const |
unsigned int | getPhiBits () const |
phi_t | getPhiWord () const |
double | getRinv () const |
unsigned int | getRinvBits () const |
rinv_t | getRinvWord () const |
double | getTanl () const |
unsigned int | getTanlBits () const |
tanl_t | getTanlWord () const |
tkword_t | getTrackWord () const |
bool | getValid () const |
unsigned int | getValidBits () const |
valid_t | getValidWord () const |
double | getZ0 () const |
unsigned int | getZ0Bits () const |
z0_t | getZ0Word () const |
TTTrack_TrackWord & | operator= (const TTTrack_TrackWord &word) |
void | setTrackWord (unsigned int valid, const GlobalVector &momentum, const GlobalPoint &POCA, double rInv, double chi2RPhi, double chi2RZ, double bendChi2, unsigned int hitPattern, unsigned int mvaQuality, unsigned int mvaOther, unsigned int sector) |
void | setTrackWord (unsigned int valid, unsigned int rInv, unsigned int phi0, unsigned int tanl, unsigned int z0, unsigned int d0, unsigned int chi2RPhi, unsigned int chi2RZ, unsigned int bendChi2, unsigned int hitPattern, unsigned int mvaQuality, unsigned int mvaOther) |
void | setTrackWord (ap_uint< TrackBitWidths::kValidSize > valid, ap_uint< TrackBitWidths::kRinvSize > rInv, ap_uint< TrackBitWidths::kPhiSize > phi0, ap_uint< TrackBitWidths::kTanlSize > tanl, ap_uint< TrackBitWidths::kZ0Size > z0, ap_uint< TrackBitWidths::kD0Size > d0, ap_uint< TrackBitWidths::kChi2RPhiSize > chi2RPhi, ap_uint< TrackBitWidths::kChi2RZSize > chi2RZ, ap_uint< TrackBitWidths::kBendChi2Size > bendChi2, ap_uint< TrackBitWidths::kHitPatternSize > hitPattern, ap_uint< TrackBitWidths::kMVAQualitySize > mvaQuality, ap_uint< TrackBitWidths::kMVAOtherSize > mvaOther) |
bool | singleDigitizationSchemeTest (const double floatingPointValue, const unsigned int nBits, const double lsb) const |
void | testDigitizationScheme () const |
TTTrack_TrackWord () | |
TTTrack_TrackWord (unsigned int valid, const GlobalVector &momentum, const GlobalPoint &POCA, double rInv, double chi2RPhi, double chi2RZ, double bendChi2, unsigned int hitPattern, unsigned int mvaQuality, unsigned int mvaOther, unsigned int sector) | |
TTTrack_TrackWord (unsigned int valid, unsigned int rInv, unsigned int phi0, unsigned int tanl, unsigned int z0, unsigned int d0, unsigned int chi2RPhi, unsigned int chi2RZ, unsigned int bendChi2, unsigned int hitPattern, unsigned int mvaQuality, unsigned int mvaOther) | |
TTTrack_TrackWord (const TTTrack_TrackWord &word) | |
Static Public Attributes | |
static constexpr std::array < double, 1 << TrackBitWidths::kBendChi2Size > | bendChi2Bins |
static constexpr std::array < double, 1 << TrackBitWidths::kChi2RPhiSize > | chi2RPhiBins |
static constexpr std::array < double, 1 << TrackBitWidths::kChi2RZSize > | chi2RZBins |
static constexpr double | minD0 = -16. |
static constexpr double | minPhi0 = -0.7853981696 |
static constexpr double | minRinv = -0.006 |
static constexpr double | minTanl = -8. |
static constexpr double | minZ0 = -20.46912512 |
static constexpr unsigned int | nSectors = 9 |
static constexpr double | sectorWidth = (2. * M_PI) / nSectors |
static constexpr double | stepD0 = (1. / (1 << 8)) |
static constexpr double | stepPhi0 = (2. * std::abs(minPhi0)) / (1 << TrackBitWidths::kPhiSize) |
static constexpr double | stepRinv = (2. * std::abs(minRinv)) / (1 << TrackBitWidths::kRinvSize) |
static constexpr double | stepTanL = (1. / (1 << 12)) |
static constexpr double | stepZ0 = (2. * std::abs(minZ0)) / (1 << TrackBitWidths::kZ0Size) |
Protected Member Functions | |
float | localPhi (float globalPhi, unsigned int sector) const |
Private Member Functions | |
unsigned int | digitizeSignedValue (double value, unsigned int nBits, double lsb) const |
template<typename T > | |
constexpr unsigned int | getBin (double value, const T &bins) const |
double | undigitizeSignedValue (unsigned int twosValue, unsigned int nBits, double lsb) const |
Private Attributes | |
tkword_bs_t | trackWord_ |
Definition at line 35 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kBendChi2Size> TTTrack_TrackWord::bendChi2_t |
Definition at line 124 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kChi2RPhiSize> TTTrack_TrackWord::chi2rphi_t |
Definition at line 122 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kChi2RZSize> TTTrack_TrackWord::chi2rz_t |
Definition at line 123 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kD0Size> TTTrack_TrackWord::d0_t |
Definition at line 119 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kHitPatternSize> TTTrack_TrackWord::hit_t |
Definition at line 125 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kMVAOtherSize> TTTrack_TrackWord::otherMVA_t |
Definition at line 127 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kPhiSize> TTTrack_TrackWord::phi_t |
Definition at line 116 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kMVAQualitySize> TTTrack_TrackWord::qualityMVA_t |
Definition at line 126 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kRinvSize> TTTrack_TrackWord::rinv_t |
Definition at line 115 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kTanlSize> TTTrack_TrackWord::tanl_t |
Definition at line 117 of file TTTrack_TrackWord.h.
typedef std::bitset<TrackBitWidths::kTrackWordSize> TTTrack_TrackWord::tkword_bs_t |
Definition at line 130 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kTrackWordSize> TTTrack_TrackWord::tkword_t |
Definition at line 131 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kValidSize> TTTrack_TrackWord::valid_t |
Definition at line 112 of file TTTrack_TrackWord.h.
typedef ap_uint<TrackBitWidths::kZ0Size> TTTrack_TrackWord::z0_t |
Definition at line 118 of file TTTrack_TrackWord.h.
Definition at line 58 of file TTTrack_TrackWord.h.
Enumerator | |
---|---|
kMVAOtherSize | |
kMVAQualitySize | |
kHitPatternSize | |
kBendChi2Size | |
kD0Size | |
kChi2RZSize | |
kZ0Size | |
kTanlSize | |
kChi2RPhiSize | |
kPhiSize | |
kRinvSize | |
kValidSize | |
kTrackWordSize |
Definition at line 38 of file TTTrack_TrackWord.h.
|
inline |
Definition at line 135 of file TTTrack_TrackWord.h.
TTTrack_TrackWord::TTTrack_TrackWord | ( | unsigned int | valid, |
const GlobalVector & | momentum, | ||
const GlobalPoint & | POCA, | ||
double | rInv, | ||
double | chi2RPhi, | ||
double | chi2RZ, | ||
double | bendChi2, | ||
unsigned int | hitPattern, | ||
unsigned int | mvaQuality, | ||
unsigned int | mvaOther, | ||
unsigned int | sector | ||
) |
Definition at line 30 of file TTTrack_TrackWord.cc.
References setTrackWord().
TTTrack_TrackWord::TTTrack_TrackWord | ( | unsigned int | valid, |
unsigned int | rInv, | ||
unsigned int | phi0, | ||
unsigned int | tanl, | ||
unsigned int | z0, | ||
unsigned int | d0, | ||
unsigned int | chi2RPhi, | ||
unsigned int | chi2RZ, | ||
unsigned int | bendChi2, | ||
unsigned int | hitPattern, | ||
unsigned int | mvaQuality, | ||
unsigned int | mvaOther | ||
) |
Definition at line 44 of file TTTrack_TrackWord.cc.
References setTrackWord().
|
inline |
|
inlineprivate |
Definition at line 280 of file TTTrack_TrackWord.h.
Referenced by setTrackWord(), and singleDigitizationSchemeTest().
|
inline |
Definition at line 224 of file TTTrack_TrackWord.h.
References bendChi2Bins, and getBendChi2Bits().
|
inline |
Definition at line 209 of file TTTrack_TrackWord.h.
References getBendChi2Word().
Referenced by getBendChi2().
|
inline |
Definition at line 184 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getBendChi2Bits().
|
inlineprivate |
Definition at line 301 of file TTTrack_TrackWord.h.
References up, cuda_std::upper_bound(), and relativeConstraints::value.
Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl(), and setTrackWord().
|
inline |
Definition at line 222 of file TTTrack_TrackWord.h.
References chi2RPhiBins, and getChi2RPhiBits().
|
inline |
Definition at line 207 of file TTTrack_TrackWord.h.
References getChi2RPhiWord().
Referenced by getChi2RPhi().
|
inline |
Definition at line 178 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getChi2RPhiBits().
|
inline |
Definition at line 223 of file TTTrack_TrackWord.h.
References chi2RZBins, and getChi2RZBits().
|
inline |
Definition at line 208 of file TTTrack_TrackWord.h.
References getChi2RZWord().
Referenced by getChi2RZ().
|
inline |
Definition at line 181 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getChi2RZBits().
|
inline |
Definition at line 221 of file TTTrack_TrackWord.h.
References getD0Bits(), stepD0, and undigitizeSignedValue().
|
inline |
|
inline |
Definition at line 177 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getD0Bits().
|
inline |
Definition at line 225 of file TTTrack_TrackWord.h.
References getHitPatternBits().
|
inline |
Definition at line 210 of file TTTrack_TrackWord.h.
References getHitPatternWord().
Referenced by getHitPattern().
|
inline |
Definition at line 187 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getHitPatternBits().
|
inline |
Definition at line 227 of file TTTrack_TrackWord.h.
References getMVAOtherBits().
|
inline |
Definition at line 212 of file TTTrack_TrackWord.h.
References getMVAOtherWord().
Referenced by getMVAOther().
|
inline |
Definition at line 193 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getMVAOtherBits().
|
inline |
Definition at line 226 of file TTTrack_TrackWord.h.
References getMVAQualityBits().
|
inline |
Definition at line 211 of file TTTrack_TrackWord.h.
References getMVAQualityWord().
Referenced by getMVAQuality().
|
inline |
Definition at line 190 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getMVAQualityBits().
|
inline |
Definition at line 218 of file TTTrack_TrackWord.h.
References getPhiBits(), stepPhi0, and undigitizeSignedValue().
|
inline |
Definition at line 203 of file TTTrack_TrackWord.h.
References getPhiWord().
Referenced by getPhi().
|
inline |
Definition at line 174 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getPhiBits().
|
inline |
Definition at line 217 of file TTTrack_TrackWord.h.
References getRinvBits(), stepRinv, and undigitizeSignedValue().
|
inline |
Definition at line 202 of file TTTrack_TrackWord.h.
References getRinvWord().
Referenced by getRinv().
|
inline |
Definition at line 173 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getRinvBits().
|
inline |
Definition at line 219 of file TTTrack_TrackWord.h.
References getTanlBits(), stepTanL, and undigitizeSignedValue().
|
inline |
Definition at line 204 of file TTTrack_TrackWord.h.
References getTanlWord().
Referenced by getTanl().
|
inline |
Definition at line 175 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getTanlBits().
|
inline |
Definition at line 196 of file TTTrack_TrackWord.h.
References trackWord_.
Referenced by getBendChi2Word(), getChi2RPhiWord(), getChi2RZWord(), getD0Word(), getHitPatternWord(), getMVAOtherWord(), getMVAQualityWord(), getPhiWord(), getRinvWord(), getTanlWord(), getValidWord(), and getZ0Word().
|
inline |
|
inline |
|
inline |
Definition at line 172 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getValid(), and getValidBits().
|
inline |
Definition at line 220 of file TTTrack_TrackWord.h.
References getZ0Bits(), stepZ0, and undigitizeSignedValue().
|
inline |
|
inline |
Definition at line 176 of file TTTrack_TrackWord.h.
References getTrackWord().
Referenced by getZ0Bits().
|
inlineprotected |
Definition at line 274 of file TTTrack_TrackWord.h.
References reco::deltaPhi(), and sectorWidth.
Referenced by TTTrack< T >::localPhi(), and setTrackWord().
|
inline |
void TTTrack_TrackWord::setTrackWord | ( | unsigned int | valid, |
const GlobalVector & | momentum, | ||
const GlobalPoint & | POCA, | ||
double | rInv, | ||
double | chi2RPhi, | ||
double | chi2RZ, | ||
double | bendChi2, | ||
unsigned int | hitPattern, | ||
unsigned int | mvaQuality, | ||
unsigned int | mvaOther, | ||
unsigned int | sector | ||
) |
Definition at line 60 of file TTTrack_TrackWord.cc.
References bendChi2Bins, chi2RPhiBins, chi2RZBins, digitizeSignedValue(), getBin(), localPhi(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), stepD0, stepPhi0, stepRinv, stepTanL, stepZ0, sistrip::valid_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by setTrackWord(), and TTTrack_TrackWord().
void TTTrack_TrackWord::setTrackWord | ( | unsigned int | valid, |
unsigned int | rInv, | ||
unsigned int | phi0, | ||
unsigned int | tanl, | ||
unsigned int | z0, | ||
unsigned int | d0, | ||
unsigned int | chi2RPhi, | ||
unsigned int | chi2RZ, | ||
unsigned int | bendChi2, | ||
unsigned int | hitPattern, | ||
unsigned int | mvaQuality, | ||
unsigned int | mvaOther | ||
) |
Definition at line 98 of file TTTrack_TrackWord.cc.
References d0, setTrackWord(), and sistrip::valid_.
void TTTrack_TrackWord::setTrackWord | ( | ap_uint< TrackBitWidths::kValidSize > | valid, |
ap_uint< TrackBitWidths::kRinvSize > | rInv, | ||
ap_uint< TrackBitWidths::kPhiSize > | phi0, | ||
ap_uint< TrackBitWidths::kTanlSize > | tanl, | ||
ap_uint< TrackBitWidths::kZ0Size > | z0, | ||
ap_uint< TrackBitWidths::kD0Size > | d0, | ||
ap_uint< TrackBitWidths::kChi2RPhiSize > | chi2RPhi, | ||
ap_uint< TrackBitWidths::kChi2RZSize > | chi2RZ, | ||
ap_uint< TrackBitWidths::kBendChi2Size > | bendChi2, | ||
ap_uint< TrackBitWidths::kHitPatternSize > | hitPattern, | ||
ap_uint< TrackBitWidths::kMVAQualitySize > | mvaQuality, | ||
ap_uint< TrackBitWidths::kMVAOtherSize > | mvaOther | ||
) |
Definition at line 132 of file TTTrack_TrackWord.cc.
References b, hltrates_dqm_sourceclient-live_cfg::offset, and trackWord_.
bool TTTrack_TrackWord::singleDigitizationSchemeTest | ( | const double | floatingPointValue, |
const unsigned int | nBits, | ||
const double | lsb | ||
) | const |
Definition at line 196 of file TTTrack_TrackWord.cc.
References funct::abs(), digitizeSignedValue(), tttrack_trackword::infoTestDigitizationScheme(), and undigitizeSignedValue().
Referenced by testDigitizationScheme().
void TTTrack_TrackWord::testDigitizationScheme | ( | ) | const |
Definition at line 208 of file TTTrack_TrackWord.cc.
References cms::cuda::assert(), and singleDigitizationSchemeTest().
|
inlineprivate |
Definition at line 306 of file TTTrack_TrackWord.h.
References cms::cuda::assert().
Referenced by getD0(), getPhi(), getRinv(), getTanl(), getZ0(), and singleDigitizationSchemeTest().
|
static |
Definition at line 104 of file TTTrack_TrackWord.h.
Referenced by getBendChi2(), and setTrackWord().
|
static |
Definition at line 100 of file TTTrack_TrackWord.h.
Referenced by getChi2RPhi(), and setTrackWord().
|
static |
Definition at line 102 of file TTTrack_TrackWord.h.
Referenced by getChi2RZ(), and setTrackWord().
|
static |
Definition at line 91 of file TTTrack_TrackWord.h.
|
static |
Definition at line 88 of file TTTrack_TrackWord.h.
|
static |
Definition at line 87 of file TTTrack_TrackWord.h.
|
static |
Definition at line 89 of file TTTrack_TrackWord.h.
|
static |
Definition at line 90 of file TTTrack_TrackWord.h.
|
static |
Definition at line 108 of file TTTrack_TrackWord.h.
Definition at line 109 of file TTTrack_TrackWord.h.
Referenced by localPhi().
|
static |
Definition at line 97 of file TTTrack_TrackWord.h.
Referenced by getD0(), and setTrackWord().
|
static |
Definition at line 94 of file TTTrack_TrackWord.h.
Referenced by getPhi(), and setTrackWord().
|
static |
Definition at line 93 of file TTTrack_TrackWord.h.
Referenced by getRinv(), and setTrackWord().
|
static |
Definition at line 95 of file TTTrack_TrackWord.h.
Referenced by getTanl(), and setTrackWord().
|
static |
Definition at line 96 of file TTTrack_TrackWord.h.
Referenced by getZ0(), and setTrackWord().
|
private |
Definition at line 323 of file TTTrack_TrackWord.h.
Referenced by getTrackWord(), operator=(), setTrackWord(), and TTTrack_TrackWord().