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
static const int kHGCalWaferTypeOffset
std::ostream & operator<<(std::ostream &out, const ALILine &li)
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
uint32_t rawId() const
get the raw id
static const int kHGCalCellOffset
static const int kHGCalCellMask
static const int kHGCalWaferTypeMask
HGCalDetId & operator=(const DetId &id)
static const int kHGCalZsideMask
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