14 ((ieta>0)?(0x2000|((ieta&0x3F)<<7)):(((-ieta)&0x3f)<<7)) |
39 return s <<
"Tower (" <<
id.ieta() <<
"," <<
id.iphi() <<
")";
std::ostream & operator<<(std::ostream &s, const CaloTowerDetId &id)
constexpr bool null() const
is this a null id ?
constexpr uint32_t rawId() const
get the raw id
CaloTowerDetId & operator=(const DetId &id)
static const int SubdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int iphi() const
get the tower iphi
int ieta() const
get the tower ieta
constexpr Detector det() const
get the detector field from this detid