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

constexpr HeterogeneousHGCScintillatorDetId::HeterogeneousHGCScintillatorDetId ( uint32_t  id)
inline

Definition at line 64 of file HGCConditions.h.

64 : id_(id) {}

Member Function Documentation

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

Definition at line 67 of file HGCConditions.h.

References id_, kHGCalLayerMask, and kHGCalLayerOffset.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

67 { return (id_ >> kHGCalLayerOffset) & kHGCalLayerMask; }
static constexpr std::uint32_t kHGCalLayerMask
Definition: HGCConditions.h:76
static constexpr std::uint32_t kHGCalLayerOffset
Definition: HGCConditions.h:75
constexpr std::int32_t HeterogeneousHGCScintillatorDetId::type ( )
inline

Definition at line 65 of file HGCConditions.h.

References id_, kHGCalTypeMask, and kHGCalTypeOffset.

65 { return (id_ >> kHGCalTypeOffset) & kHGCalTypeMask; }
static constexpr std::uint32_t kHGCalTypeMask
Definition: HGCConditions.h:82
static constexpr std::uint32_t kHGCalTypeOffset
Definition: HGCConditions.h:81
constexpr std::int32_t HeterogeneousHGCScintillatorDetId::zside ( ) const
inline

Definition at line 66 of file HGCConditions.h.

References id_, kHGCalZsideMask, and kHGCalZsideOffset.

66 { return (((id_ >> kHGCalZsideOffset) & kHGCalZsideMask) ? -1 : 1); }
static constexpr std::uint32_t kHGCalZsideOffset
Definition: HGCConditions.h:79
static constexpr std::uint32_t kHGCalZsideMask
Definition: HGCConditions.h:80

Member Data Documentation

std::uint32_t HeterogeneousHGCScintillatorDetId::id_
private

Definition at line 70 of file HGCConditions.h.

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

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

Definition at line 76 of file HGCConditions.h.

Referenced by layer().

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

Definition at line 75 of file HGCConditions.h.

Referenced by layer().

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

Definition at line 72 of file HGCConditions.h.

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

Definition at line 71 of file HGCConditions.h.

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

Definition at line 74 of file HGCConditions.h.

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

Definition at line 73 of file HGCConditions.h.

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

Definition at line 78 of file HGCConditions.h.

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

Definition at line 77 of file HGCConditions.h.

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

Definition at line 82 of file HGCConditions.h.

Referenced by type().

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

Definition at line 81 of file HGCConditions.h.

Referenced by type().

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

Definition at line 80 of file HGCConditions.h.

Referenced by zside().

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

Definition at line 79 of file HGCConditions.h.

Referenced by zside().