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