|
|
Go to the documentation of this file.
24 unsigned int theHitPattern,
25 unsigned int iSpare) {
26 setTrackWord(Momentum, POCA, theRinv, theChi2XY, theChi2Z, theBendChi2, theHitPattern, iSpare);
34 unsigned int theChi2XY,
35 unsigned int theChi2Z,
36 unsigned int theBendChi2,
37 unsigned int theHitPattern,
46 iBendChi2(theBendChi2),
48 iHitPattern(theHitPattern) {
59 unsigned int theChi2XY,
60 unsigned int theChi2Z,
61 unsigned int theBendChi2,
62 unsigned int theHitPattern,
63 unsigned int iSpare) {
85 unsigned int theHitPattern,
86 unsigned int iSpare) {
91 float rPhi = Momentum.
phi();
92 float rTanl = Momentum.
z() / Momentum.
perp();
94 float rD0 = POCA.
perp();
98 unsigned int seg1, seg2, seg3, seg4;
108 for (
unsigned int ibin = 0; ibin <
Nchi2; ++ibin) {
116 for (
unsigned int ibin = 0; ibin <
Nchi2; ++ibin) {
133 for (
unsigned int ibin = 0; ibin <
NBchi2; ++ibin) {
172 seg3 = theHitPattern;
322 unsigned int nBits = (maxBit - minBit + 1);
323 unsigned int myVar = std::floor(fabs(
var) /
lsb);
324 unsigned int maxVal = (1 << (nBits - 1)) - 1;
328 myVar = (1 << nBits) - myVar;
329 unsigned int seg = myVar;
335 unsigned int maxVal = (1 << nBits) - 1;
336 if (bits & (1 << nBits)) {
338 bits = (1 << (nBits + 1)) - bits;
340 float unpacked = (
float(bits & maxVal) + 0.5) *
lsb;
341 unpacked = isign * unpacked;
368 unsigned int CurvBins = (1 <<
NCurvBits);
369 unsigned int phiBins = (1 <<
NPhiBits);
370 unsigned int tanlBins = (1 <<
NTanlBits);
371 unsigned int z0Bins = (1 <<
NZ0Bits);
372 unsigned int d0Bins = (1 <<
ND0Bits);
unsigned int get_hitPattern()
unsigned int get_ispare()
const unsigned int NCurvBits
float unpack_Signed(unsigned int bits, unsigned int nBits, float lsb)
const unsigned int maskBendChi2
void setTrackWord(const GlobalVector &Momentum, const GlobalPoint &POCA, double Rinv, double Chi2XY, double Chi2Z, double BendChi2, unsigned int HitPattern, unsigned int iSpare)
unsigned int get_z0Bits()
unsigned int get_d0Bits()
const unsigned int maskChi2Z
unsigned int get_phiBits()
const unsigned int NTanlBits
const unsigned int nWordBits
const unsigned int NChi2Bits
const unsigned int NZ0Bits
const unsigned int maskZ0
unsigned int unpack_ispare()
const unsigned int NPhiBits
unsigned int get_chi2XYBits()
const unsigned int maskSpare
const unsigned int maskTanL
const unsigned int NBChi2Bits
const unsigned int maskPhi
unsigned int digitize_Signed(float var, unsigned int maxBit, unsigned int minBit, float lsb)
const unsigned int maskRinv
const unsigned int maskChi2XY
static constexpr float d0
unsigned int get_tanlBits()
const unsigned int maskD0
unsigned int unpack_hitPattern()
const unsigned int maskHitPat
Geom::Phi< T > phi() const
const unsigned int ND0Bits
unsigned int get_BendChi2Bits()