14 if (wafertype < 0) wafertype = 0;
17 std::cout <<
"[HGCalDetId] request for new id for" 23 <<
" for subdet=" << subdet
24 <<
" has one or more fields out of bounds and will be reset" 27 zp = lay = wafertype = wafer = cell = 0;
52 (zp == -1 || zp == 1));
55 std::cout <<
"HGCalDetId: subdet " << subdet <<
":" 57 <<
" Cell " << cell <<
":" << (cell >= 0 && cell <=
kHGCalCellMask)
58 <<
" Wafer " << wafer <<
":" << (wafer >= 0 && wafer <=
kHGCalWaferMask)
61 <<
" zp " << zp <<
":" << (zp == -1 || zp == 1) << std::endl;
69 return s <<
"isHGCal=" <<
id.isHGCal() <<
" subdet= " <<
id.subdetId()
70 <<
" zpos=" <<
id.zside() <<
" layer=" <<
id.layer()
71 <<
" wafer type=" <<
id.waferType() <<
" wafer=" <<
id.wafer()
72 <<
" cell=" <<
id.cell();
static const int kHGCalLayerOffset
static const int kHGCalLayerMask
constexpr uint32_t rawId() const
get the raw id
static const int kHGCalWaferTypeOffset
std::ostream & operator<<(std::ostream &s, const HGCalDetId &id)
static const int kHGCalCellOffset
static const int kHGCalCellMask
static const int kHGCalWaferTypeMask
int wafer() const
get the wafer #
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
static bool isValid(ForwardSubdetector subdet, int zp, int lay, int wafertype, int wafer, int cell)
static const int kHGCalZsideOffset
static const int kHGCalWaferMask