CMS 3D CMS Logo

HGCalTileIndex.cc
Go to the documentation of this file.
2 
3 int32_t HGCalTileIndex::tileIndex(int32_t layer, int32_t ring, int32_t phi) {
4  int32_t id(0);
6  ((layer & kHGCalLayerMask) << kHGCalLayerOffset));
7  return id;
8 }
9 
10 int32_t HGCalTileIndex::tileLayer(int32_t id) { return ((id >> kHGCalLayerOffset) & kHGCalLayerMask); }
11 
12 int32_t HGCalTileIndex::tileRing(int32_t id) { return ((id >> kHGCalRingOffset) & kHGCalRingMask); }
13 
14 int32_t HGCalTileIndex::tilePhi(int32_t id) { return ((id >> kHGCalPhiOffset) & kHGCalPhiMask); }
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::kHGCalLayerOffset
static constexpr int32_t kHGCalLayerOffset
Definition: HGCalTileIndex.h:17
HGCalTileIndex.h
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
PVValHelper::phi
Definition: PVValidationHelpers.h:68
DDAxes::phi
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
HGCalTileIndex::kHGCalPhiMask
static constexpr int32_t kHGCalPhiMask
Definition: HGCalTileIndex.h:20
HGCalTileIndex::tileLayer
static int32_t tileLayer(int32_t index)
Definition: HGCalTileIndex.cc:10
HGCalTileIndex::kHGCalRingMask
static constexpr int32_t kHGCalRingMask
Definition: HGCalTileIndex.h:22