6 amplitude_(0.), pedestal_(0.), jitter_(0.), chi2_(10000.), OOTamplitude_(0.), OOTchi2_(10000.), flags_(0), aux_(0) { }
9 float jit,
float chi2, uint32_t
flags, uint32_t
aux) :
10 amplitude_(ampl), pedestal_(ped), jitter_(jit), chi2_(chi2), OOTamplitude_(0.), OOTchi2_(10000.), flags_(flags), aux_(aux), id_(id) { }
25 if( (0xFF & jitterErrorBits) == 0x00)
28 if( (0xFF & jitterErrorBits) == 0xFF)
32 uint8_t exponent = jitterErrorBits>>5;
33 uint8_t significand = jitterErrorBits & ~(0x7<<5);
34 return (
float)(
pow(2.,exponent)*significand*LSB)/(25.*1000);
56 float quantityInLSB = (1000*25*jitterErr)/LSB;
57 int log2OfQuantity = (int) (log2( quantityInLSB ));
58 int exponentTmp = log2OfQuantity - 4;
60 if (exponentTmp>0) exponent = exponentTmp;
61 uint8_t significand = (int) ( lround( quantityInLSB /
pow(2.,exponent) ) );
64 if( (0xFF & jitterErrorBits) == 0xFF)
65 jitterErrorBits = 0xFE;
66 if( (0xFF & jitterErrorBits) == 0x00)
67 jitterErrorBits = 0x01;
69 aux_ = (~0xFF &
aux_) | (jitterErrorBits & 0xFF);
111 if(flag ==
kGood){
if ( !
flags_ )
return true;
else return false;}
bool isJitterValid() const
virtual ~EcalUncalibratedRecHit()
std::vector< Variable::Flags > flags
void setJitterError(float jitterErr)
uint8_t jitterErrorBits() const
bool checkFlag(Flags flag) const
float jitterError() const
void setFlagBit(Flags flag)
bool isJitterErrorValid() const
Power< A, B >::type pow(const A &a, const B &b)