1 #ifndef DataFormats_ForwardDetId_HGCEEDetId_H 2 #define DataFormats_ForwardDetId_HGCEEDetId_H 1 45 int subsector()
const {
return ((
id_ >> kHGCEESubSectorOffset) & kHGCEESubSectorMask ? 1 : -1); }
51 int zside()
const {
return ((
id_ >> kHGCEEZsideOffset) & kHGCEEZsideMask ? 1 : -1); }
54 bool isEE()
const {
return true; }
static const int kHGCEELayerMask
static const int kHGCEECellMask
ForwardSubdetector subdet() const
get the subdetector
int subsector() const
get the degree subsector
int cell() const
get the absolute value of the cell #'s in x and y
static const int kHGCEELayerOffset
static const int kHGCEEZsideMask
static const int kHGCEESectorMask
static const HGCEEDetId Undefined
int zside() const
get the z-side of the cell (1/-1)
static const int kHGCEEZsideOffset
std::ostream & operator<<(std::ostream &, const HGCEEDetId &id)
int layer() const
get the layer #
HGCEEDetId geometryCell() const
static const int kHGCEESubSectorOffset
bool isEE() const
consistency check : no bits left => no overhead
static const int kHGCEESubSectorMask
static const int kHGCEESectorOffset
static const int kHGCEECellOffset
HGCEEDetId & operator=(const DetId &id)
int sector() const
get the sector #
T mod(const T &a, const T &b)