1 #ifndef DataFormats_BTLDetId_BTLDetId_h
2 #define DataFormats_BTLDetId_BTLDetId_h
105 inline int row(
unsigned nrows = 16)
const {
106 return (
crystal() - 1) % nrows;
110 inline int column(
unsigned nrows = 16)
const {
return (
crystal() - 1) / nrows; }
137 #endif // DataFormats_BTLDetId_BTLDetId_h
static constexpr int MAX_IETA_BAR
int ieta(CrysLayout lay) const
static const uint32_t kRodRingOffset
int modulesPerType(CrysLayout lay) const
static constexpr int MIN_IPHI
static constexpr int kCrystalsInPhiBarPhi
static constexpr int kSizeForDenseIndexing
static bool validHashedIndex(uint32_t din)
static constexpr int MIN_ROD
int ietaAbs(CrysLayout lay) const
static constexpr int MIN_HASH
static constexpr uint32_t kBTLmodTypeOffset
constexpr uint32_t rawId() const
get the raw id
static constexpr uint32_t kBTLmodTypeMask
static constexpr int MAX_IPHI_BARZ
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const uint32_t kZsideOffset
static const uint32_t kMTDsubdOffset
Detector identifier base class for the MIP Timing Layer.
static constexpr int MAX_IPHI_BAR
static constexpr std::array< int, 4 > kTypeBoundariesBarZflat
static constexpr int kCrystalsPerROD
static constexpr int kModulesPerRODBarZflat
BTLDetId geographicalId(CrysLayout lay) const
static const uint32_t kRodRingMask
static constexpr int HALF_ROD
static constexpr int kModulesPerRODBarPhiFlat
static constexpr std::array< int, 4 > kTypeBoundariesBarPhiFlat
static constexpr uint32_t kBTLmoduleOffset
static constexpr int MAX_IETA_TILE
static constexpr int MAX_IPHI_BARZFLAT
static const uint32_t kMTDsubdMask
static constexpr int kCrystalsPerRODBarZflat
static const uint32_t kZsideMask
static constexpr int MAX_IPHI_TILE
static constexpr int MIN_IETA
static constexpr int kCrystalsInPhiBar
static constexpr int MAX_IETA_BARPHIFLAT
static constexpr int MAX_IETA_BARZ
static constexpr int kModulesPerROD
range constants, need two sets for the time being (one for tiles and one for bars) ...
BTLDetId(const DetId &det_id)
int hashedIndex(CrysLayout lay) const
static constexpr int MAX_ROD
BTLDetId(uint32_t zside, uint32_t rod, uint32_t module, uint32_t modtyp, uint32_t crystal)
static constexpr int MAX_HASH
static constexpr int kCrystalsInEtaBarPhi
static constexpr int kCrystalsInPhiTile
int iphi(CrysLayout lay) const
BTLDetId getUnhashedIndex(int hi, CrysLayout lay) const
static constexpr int kCrystalsInEtaBar
static constexpr std::array< int, 4 > kTypeBoundariesReference
static constexpr int MAX_IETA_BARZFLAT
static constexpr int kCrystalsPerRODBarPhiFlat
static constexpr int kCrystalsInEtaBarZ
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
static constexpr int kCrystalsInEtaTile
int column(unsigned nrows=16) const
BTLDetId(const uint32_t &raw_id)
static constexpr uint32_t kBTLCrystalOffset
static constexpr int kCrystalsInPhiBarZ
static constexpr uint32_t kBTLmoduleMask
static constexpr int MAX_IPHI_BARPHIFLAT
static constexpr uint32_t kBTLCrystalMask
int row(unsigned nrows=16) const