CMS 3D CMS Logo

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

#include <HGCConditions.h>

Public Member Functions

constexpr HeterogeneousHGCScintillatorDetId (uint32_t id)
 
constexpr std::int32_t layer () const
 
constexpr std::int32_t type ()
 
constexpr std::int32_t zside () const
 

Private Attributes

std::uint32_t id_
 

Static Private Attributes

static constexpr std::uint32_t kHGCalLayerMask = 0x1F
 
static constexpr std::uint32_t kHGCalLayerOffset = 17
 
static constexpr std::uint32_t kHGCalPhiMask = 0x1FF
 
static constexpr std::uint32_t kHGCalPhiOffset = 0
 
static constexpr std::uint32_t kHGCalRadiusMask = 0xFF
 
static constexpr std::uint32_t kHGCalRadiusOffset = 9
 
static constexpr std::uint32_t kHGCalTriggerMask = 0x1
 
static constexpr std::uint32_t kHGCalTriggerOffset = 22
 
static constexpr std::uint32_t kHGCalTypeMask = 0x3
 
static constexpr std::uint32_t kHGCalTypeOffset = 26
 
static constexpr std::uint32_t kHGCalZsideMask = 0x1
 
static constexpr std::uint32_t kHGCalZsideOffset = 25
 

Detailed Description

Definition at line 62 of file HGCConditions.h.

Constructor & Destructor Documentation

◆ HeterogeneousHGCScintillatorDetId()

constexpr HeterogeneousHGCScintillatorDetId::HeterogeneousHGCScintillatorDetId ( uint32_t  id)
inlineconstexpr

Definition at line 64 of file HGCConditions.h.

64 : id_(id) {}

Member Function Documentation

◆ layer()

constexpr std::int32_t HeterogeneousHGCScintillatorDetId::layer ( ) const
inlineconstexpr

◆ type()

constexpr std::int32_t HeterogeneousHGCScintillatorDetId::type ( )
inlineconstexpr

Definition at line 65 of file HGCConditions.h.

65 { return (id_ >> kHGCalTypeOffset) & kHGCalTypeMask; }

References id_, kHGCalTypeMask, and kHGCalTypeOffset.

◆ zside()

constexpr std::int32_t HeterogeneousHGCScintillatorDetId::zside ( ) const
inlineconstexpr

Definition at line 66 of file HGCConditions.h.

66 { return (((id_ >> kHGCalZsideOffset) & kHGCalZsideMask) ? -1 : 1); }

References id_, kHGCalZsideMask, and kHGCalZsideOffset.

Member Data Documentation

◆ id_

std::uint32_t HeterogeneousHGCScintillatorDetId::id_
private

Definition at line 70 of file HGCConditions.h.

Referenced by layer(), type(), and zside().

◆ kHGCalLayerMask

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalLayerMask = 0x1F
staticconstexprprivate

Definition at line 76 of file HGCConditions.h.

Referenced by layer().

◆ kHGCalLayerOffset

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalLayerOffset = 17
staticconstexprprivate

Definition at line 75 of file HGCConditions.h.

Referenced by layer().

◆ kHGCalPhiMask

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalPhiMask = 0x1FF
staticconstexprprivate

Definition at line 72 of file HGCConditions.h.

◆ kHGCalPhiOffset

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalPhiOffset = 0
staticconstexprprivate

Definition at line 71 of file HGCConditions.h.

◆ kHGCalRadiusMask

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalRadiusMask = 0xFF
staticconstexprprivate

Definition at line 74 of file HGCConditions.h.

◆ kHGCalRadiusOffset

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalRadiusOffset = 9
staticconstexprprivate

Definition at line 73 of file HGCConditions.h.

◆ kHGCalTriggerMask

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalTriggerMask = 0x1
staticconstexprprivate

Definition at line 78 of file HGCConditions.h.

◆ kHGCalTriggerOffset

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalTriggerOffset = 22
staticconstexprprivate

Definition at line 77 of file HGCConditions.h.

◆ kHGCalTypeMask

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalTypeMask = 0x3
staticconstexprprivate

Definition at line 82 of file HGCConditions.h.

Referenced by type().

◆ kHGCalTypeOffset

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalTypeOffset = 26
staticconstexprprivate

Definition at line 81 of file HGCConditions.h.

Referenced by type().

◆ kHGCalZsideMask

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalZsideMask = 0x1
staticconstexprprivate

Definition at line 80 of file HGCConditions.h.

Referenced by zside().

◆ kHGCalZsideOffset

constexpr std::uint32_t HeterogeneousHGCScintillatorDetId::kHGCalZsideOffset = 25
staticconstexprprivate

Definition at line 79 of file HGCConditions.h.

Referenced by zside().

HeterogeneousHGCScintillatorDetId::kHGCalLayerOffset
static constexpr std::uint32_t kHGCalLayerOffset
Definition: HGCConditions.h:75
HeterogeneousHGCScintillatorDetId::kHGCalLayerMask
static constexpr std::uint32_t kHGCalLayerMask
Definition: HGCConditions.h:76
HeterogeneousHGCScintillatorDetId::kHGCalZsideMask
static constexpr std::uint32_t kHGCalZsideMask
Definition: HGCConditions.h:80
HeterogeneousHGCScintillatorDetId::kHGCalZsideOffset
static constexpr std::uint32_t kHGCalZsideOffset
Definition: HGCConditions.h:79
HeterogeneousHGCScintillatorDetId::id_
std::uint32_t id_
Definition: HGCConditions.h:70
HeterogeneousHGCScintillatorDetId::kHGCalTypeOffset
static constexpr std::uint32_t kHGCalTypeOffset
Definition: HGCConditions.h:81
HeterogeneousHGCScintillatorDetId::kHGCalTypeMask
static constexpr std::uint32_t kHGCalTypeMask
Definition: HGCConditions.h:82