1 #ifndef DataFormats_ForwardDetId_HGCTriggerDetId_H
2 #define DataFormats_ForwardDetId_HGCTriggerDetId_H 1
25 const inline int getMaskedId(
const uint32_t&
shift,
const uint32_t& mask)
const {
return (
id_ >> shift) & mask; }
27 id_ |= ((value & mask) << shift);
71 bool isEE()
const {
return true; }
int zside() const
get the z-side of the cell (1/-1)
const int getMaskedId(const uint32_t &shift, const uint32_t &mask) const
bool isEE() const
consistency check : no bits left => no overhead
static const uint32_t cell_shift
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const uint32_t cell_mask
int module() const
get the degree module
static const uint32_t layer_shift
static const uint32_t zside_mask
static const uint32_t sector_mask
static const uint32_t layer_mask
static const uint32_t zside_shift
int cell() const
get the absolute value of the cell #'s in x and y
int sector() const
get the sector #
ForwardSubdetector subdet() const
get the subdetector
void setMaskedId(const uint32_t value, const uint32_t &shift, const uint32_t &mask)
static const uint32_t sector_shift
static const uint32_t module_shift
static const uint32_t UndefinedCell()
int layer() const
get the layer #
HGCTriggerDetId & operator=(const DetId &id)
virtual ~HGCTriggerDetId()
static unsigned int const shift
static const HGCTriggerDetId Undefined
T mod(const T &a, const T &b)
static const uint32_t module_mask