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