1 #ifndef EventFilter_EcalRawToDigi_interface_ElectronicsIdGPU_h 2 #define EventFilter_EcalRawToDigi_interface_ElectronicsIdGPU_h 27 constexpr
ElectronicsIdGPU(uint8_t
const dccid, uint8_t
const towerid, uint8_t
const stripid, uint8_t
const xtalid)
28 :
id_{
static_cast<uint32_t
>((xtalid & 0x7) | ((stripid & 0x7) << 3) | ((towerid & 0x7F) << 6) |
29 ((dccid & 0x7F) << 13))} {}
32 constexpr uint32_t
rawId()
const {
return id_; }
35 constexpr uint8_t
dccId()
const {
return (
id_ >> 13) & 0x7F; }
37 constexpr uint8_t
towerId()
const {
return (
id_ >> 6) & 0x7F; }
39 constexpr uint8_t
stripId()
const {
return (
id_ >> 3) & 0x7; }
41 constexpr uint8_t
xtalId()
const {
return (
id_ & 0x7); }
91 #endif // EventFilter_EcalRawToDigi_interface_ElectronicsIdGPU_h static constexpr int MAX_DCCID_EBM
static constexpr int MAX_DCCID_EEM
constexpr ElectronicsIdGPU(uint32_t id)
static constexpr uint8_t MIN_TOWERID
static constexpr uint8_t MIN_STRIPID
constexpr uint32_t operator()()
constexpr uint8_t towerId() const
get the tower id
static constexpr uint8_t MAX_DCCID
constexpr uint8_t stripId() const
get the tower id
constexpr uint8_t xtalId() const
get the channel id
static constexpr int DCC_EEM
static constexpr int MIN_DCCID_EEM
constexpr ElectronicsIdGPU(uint8_t const dccid, uint8_t const towerid, uint8_t const stripid, uint8_t const xtalid)
static constexpr int MIN_DCCID_EBP
static constexpr int MAX_DCCID_EBP
static constexpr int MIN_DCCID_EBM
static constexpr uint8_t MAX_CHANNELID
static constexpr uint8_t MIN_XTALID
static constexpr uint8_t MIN_DCCID
static constexpr uint8_t MIN_CHANNELID
static constexpr uint8_t MAX_XTALID
static constexpr int kDCCChannelBoundary
constexpr uint32_t rawId() const
constexpr uint8_t dccId() const
get the DCC (Ecal Local DCC value not global one) id
static constexpr uint8_t MAX_TOWERID
static constexpr int DCC_EBM
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
constexpr ElectronicsIdGPU()
static constexpr int DCCID_PHI0_EBM
static constexpr int kTowersInPhi
so far for EndCap only :
static constexpr int DCC_EBP
static constexpr int MIN_DCCID_EEP
constexpr uint32_t linearIndex() const
get the subdet
static constexpr int MAX_DCCID_EEP
static constexpr uint8_t MAX_STRIPID
static constexpr int DCCID_PHI0_EBP
static constexpr int kCrystalsInPhi
static constexpr int DCC_EEP