11 throw cms::Exception(
"InvalidDetId") <<
"EcalPnDiodeDetId: Cannot create object. Indexes out of bounds.";
12 id_ |= ((((EcalSubDetectorId ==
EcalBarrel) ? (0) : (1)) << 11) | ((DCCId & 0x7F) << 4) | (PnId & 0xF));
33 return s <<
"(EcalPnDiode " <<
id.iEcalSubDetectorId() <<
',' <<
id.iDCCId() <<
',' <<
id.iPnId() <<
')';
EcalPnDiodeDetId & operator=(const DetId &id)
static const int MIN_DCCID
static const int MAX_PNID
static const int MAX_DCCID
std::ostream & operator<<(std::ostream &s, const EcalPnDiodeDetId &id)
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
static const int MIN_PNID