CMS 3D CMS Logo

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

#include <TotemT2ScintNumberingScheme.h>

Public Member Functions

 TotemT2ScintNumberingScheme ()
 

Static Public Member Functions

static int iphi (const uint32_t &id)
 
static int layer (const uint32_t &id)
 
static uint32_t packID (const int &zside, const int &layer, const int &iphi)
 
static int zside (const uint32_t &id)
 

Static Public Attributes

static constexpr uint32_t kTotemT2LayerMask = 0x7
 
static constexpr uint32_t kTotemT2LayerOffset = 4
 
static constexpr uint32_t kTotemT2PhiMask = 0xF
 
static constexpr uint32_t kTotemT2ZsideMask = 0x80
 

Detailed Description

Definition at line 6 of file TotemT2ScintNumberingScheme.h.

Constructor & Destructor Documentation

◆ TotemT2ScintNumberingScheme()

TotemT2ScintNumberingScheme::TotemT2ScintNumberingScheme ( )
inline

Definition at line 13 of file TotemT2ScintNumberingScheme.h.

13 {}

Member Function Documentation

◆ iphi()

static int TotemT2ScintNumberingScheme::iphi ( const uint32_t &  id)
inlinestatic

Definition at line 18 of file TotemT2ScintNumberingScheme.h.

References kTotemT2PhiMask.

Referenced by packID().

18 { return (id & kTotemT2PhiMask); }
static constexpr uint32_t kTotemT2PhiMask

◆ layer()

static int TotemT2ScintNumberingScheme::layer ( const uint32_t &  id)
inlinestatic

◆ packID()

uint32_t TotemT2ScintNumberingScheme::packID ( const int &  zside,
const int &  layer,
const int &  iphi 
)
static

◆ zside()

static int TotemT2ScintNumberingScheme::zside ( const uint32_t &  id)
inlinestatic

Definition at line 16 of file TotemT2ScintNumberingScheme.h.

References kTotemT2ZsideMask.

Referenced by packID().

16 { return (id & kTotemT2ZsideMask) ? (1) : (-1); }
static constexpr uint32_t kTotemT2ZsideMask

Member Data Documentation

◆ kTotemT2LayerMask

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2LayerMask = 0x7
static

Definition at line 10 of file TotemT2ScintNumberingScheme.h.

Referenced by layer(), and packID().

◆ kTotemT2LayerOffset

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2LayerOffset = 4
static

Definition at line 9 of file TotemT2ScintNumberingScheme.h.

Referenced by layer(), and packID().

◆ kTotemT2PhiMask

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2PhiMask = 0xF
static

Definition at line 8 of file TotemT2ScintNumberingScheme.h.

Referenced by iphi(), and packID().

◆ kTotemT2ZsideMask

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2ZsideMask = 0x80
static

Definition at line 11 of file TotemT2ScintNumberingScheme.h.

Referenced by packID(), and zside().