1 #ifndef ECALDETID_ECALTRIGTOWERDETID_H
2 #define ECALDETID_ECALTRIGTOWERDETID_H
34 int zside()
const {
return (
id_&0x8000)?(1):(-1); }
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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
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