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
static const uint32_t kRodRingOffset
int ietaAbs(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
static constexpr int MIN_HASH
static constexpr uint32_t kBTLmodTypeOffset
int row(unsigned nrows=16) const
static constexpr uint32_t kBTLmodTypeMask
BTLDetId getUnhashedIndex(int hi, CrysLayout lay) const
static constexpr int MAX_IPHI_BARZ
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
int column(unsigned nrows=16) const
static constexpr int kCrystalsPerROD
static constexpr int kModulesPerRODBarZflat
static const uint32_t kRodRingMask
static constexpr int HALF_ROD
static constexpr int kModulesPerRODBarPhiFlat
static constexpr std::array< int, 4 > kTypeBoundariesBarPhiFlat
int hashedIndex(CrysLayout lay) const
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)
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 modulesPerType(CrysLayout lay) const
constexpr uint32_t rawId() const
get the raw id
int iphi(CrysLayout lay) const
static constexpr int kCrystalsInEtaBar
static constexpr std::array< int, 4 > kTypeBoundariesReference
static constexpr int MAX_IETA_BARZFLAT
int ieta(CrysLayout lay) const
static constexpr int kCrystalsPerRODBarPhiFlat
static constexpr int kCrystalsInEtaBarZ
std::ostream & operator<<(std::ostream &, const BTLDetId &)
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
static constexpr int kCrystalsInEtaTile
BTLDetId(const uint32_t &raw_id)
static constexpr uint32_t kBTLCrystalOffset
static constexpr int kCrystalsInPhiBarZ
BTLDetId geographicalId(CrysLayout lay) const
static constexpr uint32_t kBTLmoduleMask
static constexpr int MAX_IPHI_BARPHIFLAT
static constexpr uint32_t kBTLCrystalMask