5 amplitude_(0.), pedestal_(0.), jitter_(0.), chi2_(10000.), OOTamplitude_(0.), OOTchi2_(10000.), flags_(0), aux_(0) { }
9 amplitude_(ampl), pedestal_(ped), jitter_(jit), chi2_(chi2), OOTamplitude_(0.), OOTchi2_(10000.), flags_(flags), aux_(aux), id_(id) { }
23 if( (0xFF & jitterErrorBits) == 0x00)
26 if( (0xFF & jitterErrorBits) == 0xFF)
30 uint8_t
exponent = jitterErrorBits>>5;
31 uint8_t significand = jitterErrorBits & ~(0x7<<5);
32 return (
float)(
pow(2.,exponent)*significand*LSB)/(25.*1000);
45 if(25*jitterErr >= 5) {
51 float quantityInLSB = (1000*25*jitterErr)/LSB;
52 int log2OfQuantity = (int) (log2( quantityInLSB ));
53 int exponentTmp = log2OfQuantity - 4;
55 if (exponentTmp>0) exponent = exponentTmp;
56 uint8_t significand = (int) ( lround( quantityInLSB /
pow(2.,exponent) ) );
59 if( (0xFF & jitterErrorBits) == 0xFF)
60 jitterErrorBits = 0xFE;
61 if( (0xFF & jitterErrorBits) == 0x00)
62 jitterErrorBits = 0x01;
64 aux_ = (~0xFF &
aux_) | (jitterErrorBits & 0xFF);
103 if(flag ==
kGood){
if ( !
flags_ )
return true;
else return false;}
104 return flags_ & ( 0x1<<flag);
bool isJitterValid() const
bool isJitterErrorValid() const
std::vector< Variable::Flags > flags
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)