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."));
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
int iTT() const
sequential index within one DCC
int ieta() const
get the tower ieta
EcalSubdetector subDet() const
get the subDetector associated to the Trigger Tower
static const int SUBDETIJMODE
static const int kEBTowersInPhi
static const int kEETowersInPhiPerQuadrant
int zside() const
get the z-side of the tower (1/-1)
EcalTrigTowerDetId & operator=(const DetId &id)
static const int kEBTowersInEta
int ix() const
get the tower ix (Endcap case) */
int ietaAbs() const
get the absolute value of the tower ieta
static const int SUBDETDCCTTMODE
static bool validDenseIndex(uint32_t din)
std::ostream & operator<<(std::ostream &, const EcalTrigTowerDetId &id)
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 iy() const
get the tower iy (Endcap case) */
int iphi() const
get the tower iphi
static const int kEBTowersPerSM
uint32_t denseIndex() const