14 ((ieta>0)?(0x2000|((ieta&0x3F)<<7)):(((-ieta)&0x3f)<<7)) |
20 throw cms::Exception(
"Invalid DetId") <<
"Cannot initialize CaloTowerDetId from " << std::hex << gen.
rawId() << std::dec;
27 throw cms::Exception(
"Invalid DetId") <<
"Cannot assign CaloTowerDetId from " << std::hex << gen.
rawId() << std::dec;
41 const int ia (
abs( ie ) ) ;
42 return ( ( ia >= 1 ) &&
50 ( (ip-1)%2 == 0 ) ) ||
53 ( (ip-3)%4 == 0 ) ) ) ) ;
59 const uint32_t ie (
ietaAbs() ) ;
60 const uint32_t ip (
iphi() - 1 ) ;
71 const int iz ( din <
kAllNTot ? -1 : 1 ) ;
89 return s <<
"Tower (" <<
id.ieta() <<
"," <<
id.iphi() <<
")";
static bool validDetId(int ie, int ip)
int ietaAbs() const
get the absolute value of the tower ieta
uint32_t denseIndex() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static CaloTowerDetId detIdFromDenseIndex(uint32_t din)
uint32_t rawId() const
get the raw id
CaloTowerDetId & operator=(const DetId &id)
static const int SubdetId
int iphi() const
get the tower iphi
Abs< T >::type abs(const T &t)
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 ?
int zside() const
get the z-side of the tower (1/-1)
static bool validDenseIndex(uint32_t din)
Detector det() const
get the detector field from this detid