CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( )
inline

Definition at line 13 of file TotemT2ScintNumberingScheme.h.

13 {}

Member Function Documentation

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

Definition at line 18 of file TotemT2ScintNumberingScheme.h.

References kTotemT2PhiMask.

18 { return (id & kTotemT2PhiMask); }
static constexpr uint32_t kTotemT2PhiMask
static int TotemT2ScintNumberingScheme::layer ( const uint32_t &  id)
inlinestatic
uint32_t TotemT2ScintNumberingScheme::packID ( const int &  zside,
const int &  layer,
const int &  iphi 
)
static

Definition at line 3 of file TotemT2ScintNumberingScheme.cc.

References gpuClustering::id, kTotemT2LayerMask, kTotemT2LayerOffset, kTotemT2PhiMask, and kTotemT2ZsideMask.

3  {
4  uint32_t id = (((layer & kTotemT2LayerMask) << kTotemT2LayerOffset) | ((zside > 0) ? kTotemT2ZsideMask : 0) |
6  return id;
7 }
static constexpr uint32_t kTotemT2ZsideMask
uint16_t *__restrict__ id
static constexpr uint32_t kTotemT2LayerOffset
static int iphi(const uint32_t &id)
static int zside(const uint32_t &id)
static int layer(const uint32_t &id)
static constexpr uint32_t kTotemT2LayerMask
static constexpr uint32_t kTotemT2PhiMask
static int TotemT2ScintNumberingScheme::zside ( const uint32_t &  id)
inlinestatic

Definition at line 16 of file TotemT2ScintNumberingScheme.h.

References kTotemT2ZsideMask.

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

Member Data Documentation

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2LayerMask = 0x7
static

Definition at line 10 of file TotemT2ScintNumberingScheme.h.

Referenced by layer(), and packID().

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2LayerOffset = 4
static

Definition at line 9 of file TotemT2ScintNumberingScheme.h.

Referenced by layer(), and packID().

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2PhiMask = 0xF
static

Definition at line 8 of file TotemT2ScintNumberingScheme.h.

Referenced by iphi(), and packID().

constexpr uint32_t TotemT2ScintNumberingScheme::kTotemT2ZsideMask = 0x80
static

Definition at line 11 of file TotemT2ScintNumberingScheme.h.

Referenced by packID(), and zside().