CMS 3D CMS Logo

HGCalTileIndex.h
Go to the documentation of this file.
1 #ifndef Geometry_HGCalCommonData_HGCalTileIndex_h
2 #define Geometry_HGCalCommonData_HGCalTileIndex_h
3 
4 #include <cmath>
5 #include <cstdint>
6 
8 public:
11  static int32_t tileIndex(int32_t layer, int32_t ring, int32_t phi);
12  static int32_t tileLayer(int32_t index);
13  static int32_t tileRing(int32_t index);
14  static int32_t tilePhi(int32_t index);
15 
16 private:
17  static constexpr int32_t kHGCalLayerOffset = 18;
18  static constexpr int32_t kHGCalLayerMask = 0x1F;
19  static constexpr int32_t kHGCalPhiOffset = 0;
20  static constexpr int32_t kHGCalPhiMask = 0x1FF;
21  static constexpr int32_t kHGCalRingOffset = 9;
22  static constexpr int32_t kHGCalRingMask = 0x1FF;
23 };
24 
25 #endif
HGCalTileIndex::~HGCalTileIndex
~HGCalTileIndex()
Definition: HGCalTileIndex.h:10
HGCalTileIndex::kHGCalPhiOffset
static constexpr int32_t kHGCalPhiOffset
Definition: HGCalTileIndex.h:19
HGCalTileIndex::tileIndex
static int32_t tileIndex(int32_t layer, int32_t ring, int32_t phi)
Definition: HGCalTileIndex.cc:3
HGCalTileIndex::HGCalTileIndex
HGCalTileIndex()
Definition: HGCalTileIndex.h:9
HGCalTileIndex::kHGCalLayerOffset
static constexpr int32_t kHGCalLayerOffset
Definition: HGCalTileIndex.h:17
HGCalTileIndex::tilePhi
static int32_t tilePhi(int32_t index)
Definition: HGCalTileIndex.cc:14
HGCalTileIndex::tileRing
static int32_t tileRing(int32_t index)
Definition: HGCalTileIndex.cc:12
HGCalTileIndex::kHGCalLayerMask
static constexpr int32_t kHGCalLayerMask
Definition: HGCalTileIndex.h:18
HGCalTileIndex::kHGCalRingOffset
static constexpr int32_t kHGCalRingOffset
Definition: HGCalTileIndex.h:21
HGCalTileIndex
Definition: HGCalTileIndex.h:7
DDAxes::phi
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
HGCalTileIndex::kHGCalPhiMask
static constexpr int32_t kHGCalPhiMask
Definition: HGCalTileIndex.h:20
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HGCalTileIndex::tileLayer
static int32_t tileLayer(int32_t index)
Definition: HGCalTileIndex.cc:10
HGCalTileIndex::kHGCalRingMask
static constexpr int32_t kHGCalRingMask
Definition: HGCalTileIndex.h:22