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.

18 { return (id & kTotemT2PhiMask); }

References kTotemT2PhiMask.

Referenced by packID().

◆ 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.

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

References kTotemT2ZsideMask.

Referenced by packID().

Member Data Documentation

◆ kTotemT2LayerMask

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2LayerMask = 0x7
staticconstexpr

Definition at line 10 of file TotemT2ScintNumberingScheme.h.

Referenced by layer(), and packID().

◆ kTotemT2LayerOffset

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2LayerOffset = 4
staticconstexpr

Definition at line 9 of file TotemT2ScintNumberingScheme.h.

Referenced by layer(), and packID().

◆ kTotemT2PhiMask

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2PhiMask = 0xF
staticconstexpr

Definition at line 8 of file TotemT2ScintNumberingScheme.h.

Referenced by iphi(), and packID().

◆ kTotemT2ZsideMask

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2ZsideMask = 0x80
staticconstexpr

Definition at line 11 of file TotemT2ScintNumberingScheme.h.

Referenced by packID(), and zside().

TotemT2ScintNumberingScheme::kTotemT2PhiMask
static constexpr uint32_t kTotemT2PhiMask
Definition: TotemT2ScintNumberingScheme.h:8
TotemT2ScintNumberingScheme::kTotemT2ZsideMask
static constexpr uint32_t kTotemT2ZsideMask
Definition: TotemT2ScintNumberingScheme.h:11
TotemT2ScintNumberingScheme::iphi
static int iphi(const uint32_t &id)
Definition: TotemT2ScintNumberingScheme.h:18
TotemT2ScintNumberingScheme::zside
static int zside(const uint32_t &id)
Definition: TotemT2ScintNumberingScheme.h:16
TotemT2ScintNumberingScheme::kTotemT2LayerOffset
static constexpr uint32_t kTotemT2LayerOffset
Definition: TotemT2ScintNumberingScheme.h:9
TotemT2ScintNumberingScheme::layer
static int layer(const uint32_t &id)
Definition: TotemT2ScintNumberingScheme.h:17
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
TotemT2ScintNumberingScheme::kTotemT2LayerMask
static constexpr uint32_t kTotemT2LayerMask
Definition: TotemT2ScintNumberingScheme.h:10