16 int iPlane = indexPlane;
17 int iFibr = indexFibr;
18 if (iPlane < MIN_PLANE || iPlane >
MAX_PLANE ||
19 iFibr < MIN_FIBR || iFibr >
MAX_FIBR) {
20 throw cms::Exception(
"InvalidDetId") <<
"HodoscopeDetId: Cannot create object. Indexes out of bounds.";
22 id_ |= ((iPlane&0x3) | ((iFibr&0x3F)<<2)) ;
41 return s <<
"(Plane " <<
id.planeId() <<
", fiber " <<
id.fibrId() <<
')';
std::ostream & operator<<(std::ostream &out, const ALILine &li)
HodoscopeDetId & operator=(const DetId &id)
uint32_t rawId() const
get the raw id
static const int MAX_FIBR
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool null() const
is this a null id ?
static const int MAX_PLANE
Detector det() const
get the detector field from this detid