1 #ifndef ECALDETID_EBDETID_H
2 #define ECALDETID_EBDETID_H
40 int zside()
const {
return (
id_&0x10000)?(1):(-1); }
static bool validDetId(int i, int j)
check if a valid index combination
int hashedIndex() const
get a compact index for arrays
static const int MIN_IPHI
static bool isNextToEtaBoundary(EBDetId id)
static EcalSubdetector subdet()
get the subdetector .i.e EcalBarrel (what else?)
static const int kCrystalsInEta
static const int MAX_HASH
int tower_ieta() const
get the HCAL/trigger ieta of this crystal
int tower_iphi() const
get the HCAL/trigger iphi of this crystal
EBDetId switchZSide() const
static const int MIN_IETA
range constants
static const int kTowersInPhi
static const int kCrystalsPerSM
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int ism() const
get the ECAL/SM id
int iphiSM() const
get the crystal iphi (1-20)
int iphi() const
get the crystal iphi
static EBDetId detIdFromDenseIndex(uint32_t di)
int im() const
get the number of module inside the SM (1-4)
static const int kCrystalsInPhi
static int distanceEta(const EBDetId &a, const EBDetId &b)
static bool isNextToBoundary(EBDetId id)
static const int MIN_HASH
static int distancePhi(const EBDetId &a, const EBDetId &b)
static bool isNextToPhiBoundary(EBDetId id)
static const int kModulesPerSM
static const int kModuleBoundaries[4]
static const float crystalUnitToEta
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
EBDetId offsetBy(int nrStepsEta, int nrStepsPhi) const
int ieta() const
get the crystal ieta
EBDetId & operator=(const DetId &id)
static const int ETAPHIMODE
int ic() const
get ECAL/crystal number inside SM
int numberByEtaPhi() const
static const int MAX_IPHI
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
static const int MAX_IETA
static const int kChannelsPerCard
static bool validHashIndex(int i)
int ietaSM() const
get the crystal ieta in the SM convention (1-85)
static const int SMCRYSTALMODE
int ietaAbs() const
get the absolute value of the crystal ieta
uint32_t denseIndex() const
static bool validDenseIndex(uint32_t din)
int zside() const
get the z-side of the crystal (1/-1)