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;
67 return s <<
"isHGCal=" <<
id.isHGCal() <<
" zpos=" <<
id.zside()
68 <<
" layer=" <<
id.layer() <<
" wafer type=" <<
id.waferType()
69 <<
" wafer=" <<
id.wafer() <<
" 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