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 Attributes | Private Attributes
ecal::raw::ElectronicsIdGPU Class Reference

Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [2:0] xtal Index starts from 1. More...

#include <ElectronicsIdGPU.h>

Public Member Functions

constexpr uint8_t dccId () const
 get the DCC (Ecal Local DCC value not global one) id More...
 
constexpr ElectronicsIdGPU ()
 
constexpr ElectronicsIdGPU (uint32_t id)
 
constexpr ElectronicsIdGPU (uint8_t const dccid, uint8_t const towerid, uint8_t const stripid, uint8_t const xtalid)
 
constexpr uint32_t linearIndex () const
 get the subdet More...
 
constexpr uint32_t operator() ()
 
constexpr uint32_t rawId () const
 
constexpr uint8_t stripId () const
 get the tower id More...
 
constexpr uint8_t towerId () const
 get the tower id More...
 
constexpr uint8_t xtalId () const
 get the channel id More...
 

Static Public Attributes

static constexpr int DCC_EBM = 10
 
static constexpr int DCC_EBP = 28
 
static constexpr int DCC_EEM = 1
 
static constexpr int DCC_EEP = 46
 
static constexpr int DCCID_PHI0_EBM = 10
 
static constexpr int DCCID_PHI0_EBP = 28
 
static constexpr int kCrystalsInPhi = 20
 
static constexpr int kDCCChannelBoundary = 17
 
static constexpr int kTowersInPhi = 4
 so far for EndCap only : More...
 
static constexpr uint8_t MAX_CHANNELID = 25
 
static constexpr uint8_t MAX_DCCID = 54
 
static constexpr int MAX_DCCID_EBM = 27
 
static constexpr int MAX_DCCID_EBP = 45
 
static constexpr int MAX_DCCID_EEM = 9
 
static constexpr int MAX_DCCID_EEP = 54
 
static constexpr uint8_t MAX_STRIPID = 5
 
static constexpr uint8_t MAX_TOWERID = 70
 
static constexpr uint8_t MAX_XTALID = 5
 
static constexpr uint8_t MIN_CHANNELID = 1
 
static constexpr uint8_t MIN_DCCID = 1
 
static constexpr int MIN_DCCID_EBM = 10
 
static constexpr int MIN_DCCID_EBP = 28
 
static constexpr int MIN_DCCID_EEM = 1
 
static constexpr int MIN_DCCID_EEP = 46
 
static constexpr uint8_t MIN_STRIPID = 1
 
static constexpr uint8_t MIN_TOWERID = 1
 
static constexpr uint8_t MIN_XTALID = 1
 

Private Attributes

uint32_t id_
 

Detailed Description

Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [2:0] xtal Index starts from 1.

Definition at line 20 of file ElectronicsIdGPU.h.

Constructor & Destructor Documentation

constexpr ecal::raw::ElectronicsIdGPU::ElectronicsIdGPU ( )
inline

Default constructor – invalid value

Definition at line 23 of file ElectronicsIdGPU.h.

23 : id_{0xFFFFFFFFu} {}
constexpr ecal::raw::ElectronicsIdGPU::ElectronicsIdGPU ( uint32_t  id)
inline

from raw

Definition at line 25 of file ElectronicsIdGPU.h.

25 : id_{id} {}
constexpr ecal::raw::ElectronicsIdGPU::ElectronicsIdGPU ( uint8_t const  dccid,
uint8_t const  towerid,
uint8_t const  stripid,
uint8_t const  xtalid 
)
inline

Constructor from dcc,tower,channel

Definition at line 27 of file ElectronicsIdGPU.h.

28  : id_{static_cast<uint32_t>((xtalid & 0x7) | ((stripid & 0x7) << 3) | ((towerid & 0x7F) << 6) |
29  ((dccid & 0x7F) << 13))} {}

Member Function Documentation

constexpr uint8_t ecal::raw::ElectronicsIdGPU::dccId ( ) const
inline

get the DCC (Ecal Local DCC value not global one) id

Definition at line 35 of file ElectronicsIdGPU.h.

References id_.

35 { return (id_ >> 13) & 0x7F; }
constexpr uint32_t ecal::raw::ElectronicsIdGPU::linearIndex ( ) const
inline

get the subdet

get a fast, compact, unique index for linear lookups (maximum value = 4194303)

Definition at line 47 of file ElectronicsIdGPU.h.

References id_.

47 { return id_ & 0x3FFFFF; }
constexpr uint32_t ecal::raw::ElectronicsIdGPU::operator() ( )
inline

Definition at line 31 of file ElectronicsIdGPU.h.

References id_.

31 { return id_; }
constexpr uint32_t ecal::raw::ElectronicsIdGPU::rawId ( ) const
inline

Definition at line 32 of file ElectronicsIdGPU.h.

References id_.

32 { return id_; }
constexpr uint8_t ecal::raw::ElectronicsIdGPU::stripId ( ) const
inline

get the tower id

Definition at line 39 of file ElectronicsIdGPU.h.

References id_.

39 { return (id_ >> 3) & 0x7; }
constexpr uint8_t ecal::raw::ElectronicsIdGPU::towerId ( ) const
inline

get the tower id

Definition at line 37 of file ElectronicsIdGPU.h.

References id_.

37 { return (id_ >> 6) & 0x7F; }
constexpr uint8_t ecal::raw::ElectronicsIdGPU::xtalId ( ) const
inline

get the channel id

Definition at line 41 of file ElectronicsIdGPU.h.

References id_.

41 { return (id_ & 0x7); }

Member Data Documentation

constexpr int ecal::raw::ElectronicsIdGPU::DCC_EBM = 10
static

Definition at line 79 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::DCC_EBP = 28
static

Definition at line 80 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::DCC_EEM = 1
static

Definition at line 81 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::DCC_EEP = 46
static

Definition at line 82 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::DCCID_PHI0_EBM = 10
static

Definition at line 75 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::DCCID_PHI0_EBP = 28
static

Definition at line 76 of file ElectronicsIdGPU.h.

uint32_t ecal::raw::ElectronicsIdGPU::id_
private

Definition at line 85 of file ElectronicsIdGPU.h.

Referenced by dccId(), linearIndex(), operator()(), rawId(), stripId(), towerId(), and xtalId().

constexpr int ecal::raw::ElectronicsIdGPU::kCrystalsInPhi = 20
static

Definition at line 53 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::kDCCChannelBoundary = 17
static

Definition at line 78 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::kTowersInPhi = 4
static

so far for EndCap only :

Definition at line 52 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MAX_CHANNELID = 25
static

Definition at line 61 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MAX_DCCID = 54
static

Definition at line 55 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MAX_DCCID_EBM = 27
static

Definition at line 69 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MAX_DCCID_EBP = 45
static

Definition at line 71 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MAX_DCCID_EEM = 9
static

Definition at line 67 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MAX_DCCID_EEP = 54
static

Definition at line 73 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MAX_STRIPID = 5
static

Definition at line 59 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MAX_TOWERID = 70
static

Definition at line 57 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MAX_XTALID = 5
static

Definition at line 63 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MIN_CHANNELID = 1
static

Definition at line 62 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MIN_DCCID = 1
static

Definition at line 56 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MIN_DCCID_EBM = 10
static

Definition at line 68 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MIN_DCCID_EBP = 28
static

Definition at line 70 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MIN_DCCID_EEM = 1
static

Definition at line 66 of file ElectronicsIdGPU.h.

constexpr int ecal::raw::ElectronicsIdGPU::MIN_DCCID_EEP = 46
static

Definition at line 72 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MIN_STRIPID = 1
static

Definition at line 60 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MIN_TOWERID = 1
static

Definition at line 58 of file ElectronicsIdGPU.h.

constexpr uint8_t ecal::raw::ElectronicsIdGPU::MIN_XTALID = 1
static

Definition at line 64 of file ElectronicsIdGPU.h.