Go to the documentation of this file. 1 #ifndef ECALDETID_ECALTRIGTOWERDETID_H
2 #define ECALDETID_ECALTRIGTOWERDETID_H
30 int zside()
const {
return (
id_ & 0x8000) ? (1) : (-1); }
38 return (
id_ >> 7) & 0x7f;
64 return (
id_ >> 7) & 0x7f;
66 throw(std::runtime_error(
"EcalTrigTowerDetId: ix not applicable for this subDetector."));
74 throw(std::runtime_error(
"EcalTrigTowerDetId: ix not applicable for this subDetector."));
std::ostream & operator<<(std::ostream &, const EcalTrigTowerDetId &id)
static const int SUBDETIJMODE
int iphi() const
get the tower iphi
uint32_t denseIndex() const
int ietaAbs() const
get the absolute value of the tower ieta
static const int SUBDETDCCTTMODE
int iTT() const
sequential index within one DCC
int zside() const
get the z-side of the tower (1/-1)
int ix() const
get the tower ix (Endcap case) */
int iy() const
get the tower iy (Endcap case) */
static const int kEBTowersInPhi
static bool validDetId(int iz, EcalSubdetector sd, int i, int j)
check if a valid index combination
int iDCC() const
get the ECAL DCC id - in the barrrel ism == iDCC
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
int ieta() const
get the tower ieta
static const int kEBTowersPerSM
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
static const int kEETowersInPhiPerQuadrant
EcalTrigTowerDetId & operator=(const DetId &id)
static bool validDenseIndex(uint32_t din)
static const int kEBTowersInEta