1 #ifndef DATAFORMATS_CALORECHIT_CALORECHIT_H 2 #define DATAFORMATS_CALORECHIT_CALORECHIT_H 1 12 uint32_t
calo_rechit_masks[] = {0x00000000u, 0x00000001u, 0x00000003u, 0x00000007u, 0x0000000fu, 0x0000001fu,
13 0x0000003fu, 0x0000007fu, 0x000000ffu, 0x000001ffu, 0x000003ffu, 0x000007ffu,
14 0x00000fffu, 0x00001fffu, 0x00003fffu, 0x00007fffu, 0x0000ffffu, 0x0001ffffu,
15 0x0003ffffu, 0x0007ffffu, 0x000fffffu, 0x001fffffu, 0x003fffffu, 0x007fffffu,
16 0x00ffffffu, 0x01ffffffu, 0x03ffffffu, 0x07ffffffu, 0x0fffffffu, 0x1fffffffu,
17 0x3fffffffu, 0x7fffffffu, 0xffffffffu};
50 constexpr uint32_t
aux()
const {
return aux_; }
constexpr const DetId & detid() const
constexpr void setTime(float time)
constexpr CaloRecHit(const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0)
constexpr uint32_t calo_rechit_masks[]
constexpr void setFlagField(uint32_t value, int base, int width=1)
constexpr float energy() const
constexpr uint32_t flags() const
constexpr uint32_t aux() const
std::ostream & operator<<(std::ostream &s, const CaloRecHit &hit)
constexpr float time() const
constexpr void setFlags(uint32_t flags)
constexpr uint32_t flagField(int base, int width=1) const
constexpr void setAux(uint32_t value)
constexpr void setEnergy(float energy)