17 std::cout <<
"[HGCalDetId] request for new id for layer=" << lay
20 <<
" subsec=" << subsec
22 <<
" for subdet=" << subdet
23 <<
" has one or more fields out of bounds and will be reset"
26 cell=0; sec=0; subsec=0; lay=0;
31 if (subsec<0) subsec=0;
48 int mod,
int subsec,
int cell) {
52 (subsec == 0 || subsec == 1) &&
54 (zp == -1 || zp == 1));
57 std::cout <<
"HGCalDetId: subdet " << subdet <<
":"
59 <<
" Cell " << cell <<
":" << (cell >= 0 && cell <= 0xffff)
60 <<
" Module " << mod <<
":" << (mod >= 1 && mod <= 0x7f)
61 <<
" SubSector " << subsec <<
":" << (subsec == 0 || subsec == 1)
62 <<
" Layer " << lay <<
":" << (lay >= 0 && lay <= 0x7f)
63 <<
" zp " << zp <<
":" << (zp == -1 || zp == 1) << std::endl;
69 return s <<
"isHGCal=" <<
id.isHGCal() <<
" zpos=" <<
id.zside()
70 <<
" layer=" <<
id.layer() <<
" phi subSector=" <<
id.subsector()
71 <<
" sector=" <<
id.sector() <<
" cell=" <<
id.cell();
static const int kHGCalLayerOffset
static const int kHGCalLayerMask
static const int kHGCalSubSectorMask
std::ostream & operator<<(std::ostream &out, const ALILine &li)
uint32_t rawId() const
get the raw id
static const int kHGCalCellOffset
static const int kHGCalCellMask
static const int kHGCalSectorOffset
HGCalDetId & operator=(const DetId &id)
static const int kHGCalZsideMask
static bool isValid(ForwardSubdetector subdet, int zp, int lay, int mod, int subsec, int cell)
static const int kHGCalZsideOffset
static const int kHGCalSubSectorOffset
T mod(const T &a, const T &b)
static const int kHGCalSectorMask