15 const DetId&
id,
float ampl,
float ped,
float jit,
float chi2, uint32_t
flags, uint32_t
aux)
34 if ((0xFF & jitterErrorBits) == 0x00)
37 if ((0xFF & jitterErrorBits) == 0xFF)
41 uint8_t
exponent = jitterErrorBits >> 5;
42 uint8_t significand = jitterErrorBits & ~(0x7 << 5);
43 return (
float)(
pow(2., exponent) * significand * LSB) / (25. * 1000);
56 if (25 * jitterErr >= 5) {
62 float quantityInLSB = (1000 * 25 * jitterErr) / LSB;
63 int log2OfQuantity = (
int)(log2(quantityInLSB));
64 int exponentTmp = log2OfQuantity - 4;
67 exponent = exponentTmp;
68 uint8_t significand = (
int)(lround(quantityInLSB /
pow(2., exponent)));
71 if ((0xFF & jitterErrorBits) == 0xFF)
72 jitterErrorBits = 0xFE;
73 if ((0xFF & jitterErrorBits) == 0x00)
74 jitterErrorBits = 0x01;
76 aux_ = (~0xFF &
aux_) | (jitterErrorBits & 0xFF);
bool isJitterValid() const
bool isJitterErrorValid() const
uint8_t jitterErrorBits() const
bool checkFlag(Flags flag) const
float jitterError() const
virtual ~HGCUncalibratedRecHit()
void setFlagBit(Flags flag)
void setJitterError(float jitterErr)
Power< A, B >::type pow(const A &a, const B &b)