CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Private Attributes
HGCalTileIndex Class Reference

#include <HGCalTileIndex.h>

Public Member Functions

 HGCalTileIndex ()
 
 ~HGCalTileIndex ()
 

Static Public Member Functions

static int32_t tileIndex (int32_t layer, int32_t ring, int32_t phi)
 
static int32_t tileLayer (int32_t index)
 
static int32_t tilePhi (int32_t index)
 
static int32_t tileRing (int32_t index)
 

Static Private Attributes

static constexpr int32_t kHGCalLayerMask = 0x1F
 
static constexpr int32_t kHGCalLayerOffset = 18
 
static constexpr int32_t kHGCalPhiMask = 0x1FF
 
static constexpr int32_t kHGCalPhiOffset = 0
 
static constexpr int32_t kHGCalRingMask = 0x1FF
 
static constexpr int32_t kHGCalRingOffset = 9
 

Detailed Description

Definition at line 7 of file HGCalTileIndex.h.

Constructor & Destructor Documentation

◆ HGCalTileIndex()

HGCalTileIndex::HGCalTileIndex ( )
inline

Definition at line 9 of file HGCalTileIndex.h.

9 {}

◆ ~HGCalTileIndex()

HGCalTileIndex::~HGCalTileIndex ( )
inline

Definition at line 10 of file HGCalTileIndex.h.

10 {}

Member Function Documentation

◆ tileIndex()

int32_t HGCalTileIndex::tileIndex ( int32_t  layer,
int32_t  ring,
int32_t  phi 
)
static

◆ tileLayer()

int32_t HGCalTileIndex::tileLayer ( int32_t  index)
static

Definition at line 10 of file HGCalTileIndex.cc.

10 { return ((id >> kHGCalLayerOffset) & kHGCalLayerMask); }

References kHGCalLayerMask, and kHGCalLayerOffset.

◆ tilePhi()

int32_t HGCalTileIndex::tilePhi ( int32_t  index)
static

Definition at line 14 of file HGCalTileIndex.cc.

14 { return ((id >> kHGCalPhiOffset) & kHGCalPhiMask); }

References kHGCalPhiMask, and kHGCalPhiOffset.

◆ tileRing()

int32_t HGCalTileIndex::tileRing ( int32_t  index)
static

Definition at line 12 of file HGCalTileIndex.cc.

12 { return ((id >> kHGCalRingOffset) & kHGCalRingMask); }

References kHGCalRingMask, and kHGCalRingOffset.

Member Data Documentation

◆ kHGCalLayerMask

constexpr int32_t HGCalTileIndex::kHGCalLayerMask = 0x1F
staticconstexprprivate

Definition at line 18 of file HGCalTileIndex.h.

Referenced by tileIndex(), and tileLayer().

◆ kHGCalLayerOffset

constexpr int32_t HGCalTileIndex::kHGCalLayerOffset = 18
staticconstexprprivate

Definition at line 17 of file HGCalTileIndex.h.

Referenced by tileIndex(), and tileLayer().

◆ kHGCalPhiMask

constexpr int32_t HGCalTileIndex::kHGCalPhiMask = 0x1FF
staticconstexprprivate

Definition at line 20 of file HGCalTileIndex.h.

Referenced by tileIndex(), and tilePhi().

◆ kHGCalPhiOffset

constexpr int32_t HGCalTileIndex::kHGCalPhiOffset = 0
staticconstexprprivate

Definition at line 19 of file HGCalTileIndex.h.

Referenced by tileIndex(), and tilePhi().

◆ kHGCalRingMask

constexpr int32_t HGCalTileIndex::kHGCalRingMask = 0x1FF
staticconstexprprivate

Definition at line 22 of file HGCalTileIndex.h.

Referenced by tileIndex(), and tileRing().

◆ kHGCalRingOffset

constexpr int32_t HGCalTileIndex::kHGCalRingOffset = 9
staticconstexprprivate

Definition at line 21 of file HGCalTileIndex.h.

Referenced by tileIndex(), and tileRing().

HGCalTileIndex::kHGCalPhiOffset
static constexpr int32_t kHGCalPhiOffset
Definition: HGCalTileIndex.h:19
HGCalTileIndex::kHGCalLayerOffset
static constexpr int32_t kHGCalLayerOffset
Definition: HGCalTileIndex.h:17
HGCalTileIndex::kHGCalLayerMask
static constexpr int32_t kHGCalLayerMask
Definition: HGCalTileIndex.h:18
HGCalTileIndex::kHGCalRingOffset
static constexpr int32_t kHGCalRingOffset
Definition: HGCalTileIndex.h:21
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::kHGCalRingMask
static constexpr int32_t kHGCalRingMask
Definition: HGCalTileIndex.h:22