13 const DetId&
id,
float energy,
float time, uint32_t
flags, uint32_t flagBits, uint8_t son,
float timeError)
17 uint32_t rawChi2 = 0x7F & (
flags() >> 4);
18 return (
float)rawChi2 / (
float)((1 << 7) - 1) * 64.
f;
22 uint32_t rawChi2Prob = 0x7F & (
flags() >> 24);
23 return (
float)rawChi2Prob / (
float)((1 << 7) - 1) * 64.
f;
27 uint32_t rawEnergy = (0x1FFF &
flags() >> 11);
29 uint16_t significand = ~(0xE << 9) & rawEnergy;
38 uint32_t rawChi2 = lround(
chi2 / 64.
f * ((1 << 7) - 1));
48 uint32_t rawEnergy =
exponent << 10 | significand;
50 setFlags((~(0x1FFF << 11) &
flags()) | ((rawEnergy & 0x1FFF) << 11));
59 uint32_t rawChi2 = lround(
chi2 / 64.
f * ((1 << 7) - 1));
61 setFlags((~(0x7F << 24) &
flags()) | ((rawChi2 & 0x7F) << 24));
66 if (sOverNoise > 32.
f)
99 for (std::vector<int>::const_iterator flagPtr = flagsvec.begin(); flagPtr != flagsvec.end();
113 return s <<
HcalDetId(
hit.detid()) <<
": " <<
hit.energy() <<
" GeV, " <<
hit.time() <<
" ns";
121 return s <<
"HGCRecHit undefined subdetector";
bool checkFlag(int flag) const
check if the flag is true
void setSignalOverSigmaNoise(float sOverNoise)
uint8_t signalOverSigmaNoise_
float signalOverSigmaNoise() const
bool isTimeErrorValid() const
constexpr float energy() const
void setOutOfTimeEnergy(float energy)
constexpr uint32_t flags() const
std::ostream & operator<<(std::ostream &s, const HGCRecHit &hit)
void setTimeError(float timeErr)
float outOfTimeChi2() const
bool checkFlags(const std::vector< int > &flagsvec) const
check if one of the flags in a set is true
void setOutOfTimeChi2(float chi2)
float outOfTimeEnergy() const
constexpr void setFlags(uint32_t flags)
Power< A, B >::type pow(const A &a, const B &b)