1 #ifndef DataFormats_ForwardDetId_HGCalDetId_H 2 #define DataFormats_ForwardDetId_HGCalDetId_H 1 45 int waferType()
const {
return ((
id_>>kHGCalWaferTypeOffset)&kHGCalWaferTypeMask ? 1 : -1); }
51 int zside()
const {
return ((
id_>>kHGCalZsideOffset) & kHGCalZsideMask ? 1 : -1); }
static const int kHGCalLayerOffset
static const int kHGCalLayerMask
static const HGCalDetId Undefined
static const int kHGCalWaferTypeOffset
std::ostream & operator<<(std::ostream &, const HGCalDetId &id)
static const int kHGCalCellOffset
static const int kHGCalCellMask
HGCalDetId geometryCell() const
int zside() const
get the z-side of the cell (1/-1)
static const int kHGCalWaferTypeMask
int wafer() const
get the wafer #
static const int kHGCalMaskCell
HGCalDetId & operator=(const DetId &id)
static const int kHGCalZsideMask
int cell() const
get the absolute value of the cell #'s in x and y
static const int kHGCalWaferOffset
bool isHGCal() const
consistency check : no bits left => no overhead
static bool isValid(ForwardSubdetector subdet, int zp, int lay, int wafertype, int wafer, int cell)
int waferType() const
get the wafer type
static const int kHGCalZsideOffset
int layer() const
get the layer #
static const int kHGCalWaferMask