21 const int ones = depth % 10;
22 const int tens = (depth - ones) / 10;
32 edm::LogError(
"HcalTrigTowerDetId")<<
"in its ctor using depth, version larger than 9 (too many of it!)?"<<std::endl;
65 s <<
"(HcalTrigTower v" <<
id.version() <<
": " <<
id.ieta() <<
',' <<
id.iphi();
66 if (
id.
depth()>0) s <<
',' <<
id.depth();
static const int kHcalVersMask
void setVersion(int version)
static const int kHcalEtaOffset
constexpr bool null() const
is this a null id ?
constexpr uint32_t rawId() const
get the raw id
int ieta() const
get the tower ieta
int depth() const
get the depth (zero for LHC Run 1, may be nonzero for later runs)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const int kHcalDepthMask
static const int kHcalPhiMask
static const int kHcalDepthOffset
HcalTrigTowerDetId & operator=(const DetId &id)
static const int kHcalVersOffset
int version() const
get the version code for the trigger tower
static const HcalTrigTowerDetId Undefined
static const int kHcalZsideMask
std::ostream & operator<<(std::ostream &s, const HcalTrigTowerDetId &id)
int iphi() const
get the tower iphi
constexpr Detector det() const
get the detector field from this detid