CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes
HGCSiliconDetId Class Reference

#include <HGCSiliconDetId.h>

Inheritance diagram for HGCSiliconDetId:
DetId

Public Types

enum  waferType { HGCalHD120 = 0, HGCalLD200 = 1, HGCalLD300 = 2, HGCalHD200 = 3 }
 
- Public Types inherited from DetId
enum  Detector {
  Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4,
  Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8,
  HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11
}
 

Public Member Functions

constexpr int32_t cellU () const
 get the cell #'s in u,v or in x,y More...
 
constexpr std::pair< int32_t, int32_t > cellUV () const
 
constexpr int32_t cellV () const
 
constexpr int32_t cellX () const
 
constexpr std::pair< int32_t, int32_t > cellXY () const
 
constexpr int32_t cellY () const
 
constexpr int32_t depletion () const
 
constexpr HGCSiliconDetId geometryCell () const
 
constexpr HGCSiliconDetId ()
 
constexpr HGCSiliconDetId (uint32_t rawid)
 
constexpr HGCSiliconDetId (DetId::Detector det, int32_t zp, int32_t type, int32_t layer, int32_t waferU, int32_t waferV, int32_t cellU, int32_t cellV)
 
constexpr HGCSiliconDetId (const DetId &gen)
 
constexpr bool highDensity () const
 
constexpr bool isEE () const
 consistency check : no bits left => no overhead More...
 
constexpr bool isForward () const
 
constexpr bool isHE () const
 
constexpr int32_t layer () const
 get the layer # More...
 
constexpr bool lowDensity () const
 
constexpr HGCSiliconDetId moduleId () const
 
constexpr HGCSiliconDetIdoperator= (const DetId &gen)
 
constexpr DetId::Detector subdet () const
 get the subdetector More...
 
constexpr int32_t triggerCellU () const
 
constexpr std::pair< int32_t, int32_t > triggerCellUV () const
 
constexpr int32_t triggerCellV () const
 
constexpr int32_t type () const
 get the type More...
 
constexpr void unpack (int32_t &ty, int32_t &zs, int32_t &ly, int32_t &wU, int32_t &wV, int32_t &cU, int32_t &cV) const
 
constexpr int32_t waferU () const
 
constexpr int32_t waferUAbs () const
 get the wafer #'s in u,v or in x,y More...
 
constexpr std::pair< int32_t, int32_t > waferUV () const
 
constexpr int32_t waferV () const
 
constexpr int32_t waferVAbs () const
 
constexpr int32_t waferX () const
 
constexpr std::pair< int32_t, int32_t > waferXY () const
 
constexpr int32_t waferY () const
 
constexpr int32_t zside () const
 get the z-side of the cell (1/-1) More...
 
- Public Member Functions inherited from DetId
constexpr Detector det () const
 get the detector field from this detid More...
 
constexpr DetId ()
 Create an empty or null id (also for persistence) More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. More...
 
constexpr DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr bool null () const
 is this a null id ? More...
 
constexpr operator uint32_t () const
 
constexpr bool operator!= (DetId id) const
 inequality More...
 
constexpr uint32_t operator() () const
 
constexpr bool operator< (DetId id) const
 comparison More...
 
constexpr bool operator== (DetId id) const
 equality More...
 
constexpr uint32_t rawId () const
 get the raw id More...
 
constexpr int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Public Attributes

static constexpr int32_t HGCal0Depletion = 120
 
static constexpr int32_t HGCal1Depletion = 200
 
static constexpr int32_t HGCal2Depletion = 300
 
static constexpr int32_t HGCalCoarseTrigger = 2
 
static constexpr int32_t HGCalFineTrigger = 3
 
static constexpr int32_t HGCalHighDensityN = 12
 
static constexpr int32_t HGCalLowDensityN = 8
 
static constexpr uint32_t kHGCalCellUMask = 0x1F
 
static constexpr uint32_t kHGCalCellUOffset = 0
 
static constexpr uint32_t kHGCalCellVMask = 0x1F
 
static constexpr uint32_t kHGCalCellVOffset = 5
 
static constexpr uint32_t kHGCalLayerMask = 0x1F
 
static constexpr uint32_t kHGCalLayerOffset = 20
 
static constexpr uint32_t kHGCalTypeMask = 0x3
 
static constexpr uint32_t kHGCalTypeOffset = 26
 
static constexpr uint32_t kHGCalWaferUMask = 0xF
 
static constexpr uint32_t kHGCalWaferUOffset = 10
 
static constexpr uint32_t kHGCalWaferUSignMask = 0x1
 
static constexpr uint32_t kHGCalWaferUSignOffset = 14
 
static constexpr uint32_t kHGCalWaferVMask = 0xF
 
static constexpr uint32_t kHGCalWaferVOffset = 15
 
static constexpr uint32_t kHGCalWaferVSignMask = 0x1
 
static constexpr uint32_t kHGCalWaferVSignOffset = 19
 
static constexpr uint32_t kHGCalZsideMask = 0x1
 
static constexpr uint32_t kHGCalZsideOffset = 25
 
static const HGCSiliconDetId Undefined
 
- Static Public Attributes inherited from DetId
static const int kDetMask = 0xF
 
static const int kDetOffset = 28
 
static const int kSubdetMask = 0x7
 
static const int kSubdetOffset = 25
 

Additional Inherited Members

- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Definition at line 24 of file HGCSiliconDetId.h.

Member Enumeration Documentation

◆ waferType

Enumerator
HGCalHD120 
HGCalLD200 
HGCalLD300 
HGCalHD200 

Definition at line 26 of file HGCSiliconDetId.h.

Constructor & Destructor Documentation

◆ HGCSiliconDetId() [1/4]

constexpr HGCSiliconDetId::HGCSiliconDetId ( )
inline

Create a null cellid

Definition at line 36 of file HGCSiliconDetId.h.

Referenced by geometryCell(), and moduleId().

36 : DetId() {}
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ HGCSiliconDetId() [2/4]

constexpr HGCSiliconDetId::HGCSiliconDetId ( uint32_t  rawid)
inline

Create cellid from raw id (0=invalid tower id)

Definition at line 38 of file HGCSiliconDetId.h.

38 : DetId(rawid) {}
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ HGCSiliconDetId() [3/4]

constexpr HGCSiliconDetId::HGCSiliconDetId ( DetId::Detector  det,
int32_t  zp,
int32_t  type,
int32_t  layer,
int32_t  waferU,
int32_t  waferV,
int32_t  cellU,
int32_t  cellV 
)
inline

Constructor from subdetector, zplus, layer, module, cell numbers

Definition at line 40 of file HGCSiliconDetId.h.

References funct::abs(), cellU(), cellV(), DetId::id_, kHGCalCellUMask, kHGCalCellUOffset, kHGCalCellVMask, kHGCalCellVOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalTypeMask, kHGCalTypeOffset, kHGCalWaferUMask, kHGCalWaferUOffset, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, kHGCalWaferVMask, kHGCalWaferVOffset, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, kHGCalZsideMask, kHGCalZsideOffset, layer(), waferU(), waferV(), and zside().

48  : DetId(det, ForwardEmpty) {
49  int32_t waferUabs(std::abs(waferU)), waferVabs(std::abs(waferV));
50  int32_t waferUsign = (waferU >= 0) ? 0 : 1;
51  int32_t waferVsign = (waferV >= 0) ? 0 : 1;
52  int32_t zside = (zp < 0) ? 1 : 0;
54  ((waferUabs & kHGCalWaferUMask) << kHGCalWaferUOffset) |
55  ((waferUsign & kHGCalWaferUSignMask) << kHGCalWaferUSignOffset) |
56  ((waferVabs & kHGCalWaferVMask) << kHGCalWaferVOffset) |
57  ((waferVsign & kHGCalWaferVSignMask) << kHGCalWaferVSignOffset) |
60  }
static constexpr uint32_t kHGCalCellUOffset
static constexpr uint32_t kHGCalCellVMask
static constexpr uint32_t kHGCalTypeOffset
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int32_t waferV() const
static constexpr uint32_t kHGCalWaferUMask
static constexpr uint32_t kHGCalWaferVOffset
constexpr int32_t zside() const
get the z-side of the cell (1/-1)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static constexpr uint32_t kHGCalWaferUOffset
constexpr int32_t cellU() const
get the cell #&#39;s in u,v or in x,y
static constexpr uint32_t kHGCalWaferVSignMask
static constexpr uint32_t kHGCalTypeMask
static constexpr uint32_t kHGCalLayerOffset
static constexpr uint32_t kHGCalCellUMask
static constexpr uint32_t kHGCalZsideOffset
uint32_t id_
Definition: DetId.h:69
constexpr int32_t layer() const
get the layer #
constexpr int32_t cellV() const
static constexpr uint32_t kHGCalLayerMask
static constexpr uint32_t kHGCalWaferUSignMask
static constexpr uint32_t kHGCalWaferVMask
static constexpr uint32_t kHGCalWaferUSignOffset
static constexpr uint32_t kHGCalWaferVSignOffset
constexpr int32_t waferU() const
static constexpr uint32_t kHGCalZsideMask
static constexpr uint32_t kHGCalCellVOffset
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ HGCSiliconDetId() [4/4]

constexpr HGCSiliconDetId::HGCSiliconDetId ( const DetId gen)
inline

Constructor from a generic cell id

Definition at line 63 of file HGCSiliconDetId.h.

References TauDecayModes::dec, Exception, DetId::HGCalEE, DetId::HGCalHSi, and DetId::id_.

63  {
64  if (!gen.null()) {
65  if ((gen.det() != HGCalEE) && (gen.det() != HGCalHSi)) {
66  throw cms::Exception("Invalid DetId")
67  << "Cannot initialize HGCSiliconDetId from " << std::hex << gen.rawId() << std::dec;
68  }
69  }
70  id_ = gen.rawId();
71  }
uint32_t id_
Definition: DetId.h:69

Member Function Documentation

◆ cellU()

constexpr int32_t HGCSiliconDetId::cellU ( ) const
inline

◆ cellUV()

constexpr std::pair<int32_t, int32_t> HGCSiliconDetId::cellUV ( ) const
inline

Definition at line 113 of file HGCSiliconDetId.h.

References cellU(), and cellV().

113 { return std::pair<int32_t, int32_t>(cellU(), cellV()); }
constexpr int32_t cellU() const
get the cell #&#39;s in u,v or in x,y
constexpr int32_t cellV() const

◆ cellV()

constexpr int32_t HGCSiliconDetId::cellV ( ) const
inline

◆ cellX()

constexpr int32_t HGCSiliconDetId::cellX ( ) const
inline

Definition at line 114 of file HGCSiliconDetId.h.

References cellV(), HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().

Referenced by cellXY().

114  {
115  int32_t N = ((type() == HGCalHD120) || (type() == HGCalHD200)) ? HGCalHighDensityN : HGCalLowDensityN;
116  return (3 * (cellV() - N) + 2);
117  }
static constexpr int32_t HGCalLowDensityN
static constexpr int32_t HGCalHighDensityN
#define N
Definition: blowfish.cc:9
constexpr int32_t cellV() const
constexpr int32_t type() const
get the type

◆ cellXY()

constexpr std::pair<int32_t, int32_t> HGCSiliconDetId::cellXY ( ) const
inline

Definition at line 122 of file HGCSiliconDetId.h.

References cellX(), and cellY().

122 { return std::pair<int32_t, int32_t>(cellX(), cellY()); }
constexpr int32_t cellY() const
constexpr int32_t cellX() const

◆ cellY()

constexpr int32_t HGCSiliconDetId::cellY ( ) const
inline

Definition at line 118 of file HGCSiliconDetId.h.

References cellU(), cellV(), HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().

Referenced by cellXY().

118  {
119  int32_t N = ((type() == HGCalHD120) || (type() == HGCalHD200)) ? HGCalHighDensityN : HGCalLowDensityN;
120  return (2 * cellU() - (N + cellV()));
121  }
static constexpr int32_t HGCalLowDensityN
static constexpr int32_t HGCalHighDensityN
constexpr int32_t cellU() const
get the cell #&#39;s in u,v or in x,y
#define N
Definition: blowfish.cc:9
constexpr int32_t cellV() const
constexpr int32_t type() const
get the type

◆ depletion()

constexpr int32_t HGCSiliconDetId::depletion ( ) const
inline

Definition at line 100 of file HGCSiliconDetId.h.

References HGCal0Depletion, HGCal1Depletion, HGCal2Depletion, HGCalHD120, HGCalLD300, and type().

100  {
102  }
static constexpr int32_t HGCal0Depletion
static constexpr int32_t HGCal2Depletion
static constexpr int32_t HGCal1Depletion
constexpr int32_t type() const
get the type

◆ geometryCell()

constexpr HGCSiliconDetId HGCSiliconDetId::geometryCell ( ) const
inline

Converter for a geometry cell id

Definition at line 86 of file HGCSiliconDetId.h.

References DetId::det(), HGCSiliconDetId(), layer(), waferU(), waferV(), and zside().

Referenced by HGCalGeometry::getGeometryDetId().

86  {
87  return HGCSiliconDetId(det(), zside(), 0, layer(), waferU(), waferV(), 0, 0);
88  }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int32_t waferV() const
constexpr int32_t zside() const
get the z-side of the cell (1/-1)
constexpr int32_t layer() const
get the layer #
constexpr HGCSiliconDetId()
constexpr int32_t waferU() const

◆ highDensity()

constexpr bool HGCSiliconDetId::highDensity ( ) const
inline

Definition at line 99 of file HGCSiliconDetId.h.

References HGCalHD120, HGCalHD200, and type().

99 { return ((type() == HGCalHD120) || (type() == HGCalHD200)); }
constexpr int32_t type() const
get the type

◆ isEE()

constexpr bool HGCSiliconDetId::isEE ( ) const
inline

consistency check : no bits left => no overhead

Definition at line 168 of file HGCSiliconDetId.h.

References DetId::det(), and DetId::HGCalEE.

168 { return (det() == HGCalEE); }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46

◆ isForward()

constexpr bool HGCSiliconDetId::isForward ( ) const
inline

Definition at line 170 of file HGCSiliconDetId.h.

170 { return true; }

◆ isHE()

constexpr bool HGCSiliconDetId::isHE ( ) const
inline

Definition at line 169 of file HGCSiliconDetId.h.

References DetId::det(), and DetId::HGCalHSi.

169 { return (det() == HGCalHSi); }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46

◆ layer()

constexpr int32_t HGCSiliconDetId::layer ( ) const
inline

◆ lowDensity()

constexpr bool HGCSiliconDetId::lowDensity ( ) const
inline

Definition at line 98 of file HGCSiliconDetId.h.

References HGCalLD200, HGCalLD300, and type().

98 { return ((type() == HGCalLD200) || (type() == HGCalLD300)); }
constexpr int32_t type() const
get the type

◆ moduleId()

constexpr HGCSiliconDetId HGCSiliconDetId::moduleId ( ) const
inline

Definition at line 89 of file HGCSiliconDetId.h.

References DetId::det(), HGCSiliconDetId(), layer(), type(), waferU(), waferV(), and zside().

Referenced by HGCSiliconDetIdToModule::getModule(), and hgcal::mappingtools::getModuleCellIndicesForSiCell().

89  {
90  return HGCSiliconDetId(det(), zside(), type(), layer(), waferU(), waferV(), 0, 0);
91  }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int32_t waferV() const
constexpr int32_t zside() const
get the z-side of the cell (1/-1)
constexpr int32_t layer() const
get the layer #
constexpr HGCSiliconDetId()
constexpr int32_t waferU() const
constexpr int32_t type() const
get the type

◆ operator=()

constexpr HGCSiliconDetId& HGCSiliconDetId::operator= ( const DetId gen)
inline

Assignment from a generic cell id

Definition at line 74 of file HGCSiliconDetId.h.

References TauDecayModes::dec, Exception, DetId::HGCalEE, DetId::HGCalHSi, and DetId::id_.

74  {
75  if (!gen.null()) {
76  if ((gen.det() != HGCalEE) && (gen.det() != HGCalHSi)) {
77  throw cms::Exception("Invalid DetId")
78  << "Cannot assign HGCSiliconDetId from " << std::hex << gen.rawId() << std::dec;
79  }
80  }
81  id_ = gen.rawId();
82  return (*this);
83  }
uint32_t id_
Definition: DetId.h:69

◆ subdet()

constexpr DetId::Detector HGCSiliconDetId::subdet ( ) const
inline

get the subdetector

Definition at line 94 of file HGCSiliconDetId.h.

References DetId::det().

94 { return det(); }
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46

◆ triggerCellU()

constexpr int32_t HGCSiliconDetId::triggerCellU ( ) const
inline

Definition at line 149 of file HGCSiliconDetId.h.

References cellU(), cellV(), HGCalCoarseTrigger, HGCalFineTrigger, HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().

Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), and triggerCellUV().

149  {
150  int32_t N = ((type() == HGCalHD120) || (type() == HGCalHD200)) ? HGCalHighDensityN : HGCalLowDensityN;
151  int32_t NT = ((type() == HGCalHD120) || (type() == HGCalHD200)) ? HGCalFineTrigger : HGCalCoarseTrigger;
152  return (cellU() >= N && cellV() >= N)
153  ? cellU() / NT
154  : ((cellU() < N && cellU() <= cellV()) ? cellU() / NT : (1 + (cellU() - (cellV() % NT + 1)) / NT));
155  }
static constexpr int32_t HGCalLowDensityN
static constexpr int32_t HGCalCoarseTrigger
static constexpr int32_t HGCalHighDensityN
static constexpr int32_t HGCalFineTrigger
constexpr int32_t cellU() const
get the cell #&#39;s in u,v or in x,y
#define N
Definition: blowfish.cc:9
constexpr int32_t cellV() const
constexpr int32_t type() const
get the type

◆ triggerCellUV()

constexpr std::pair<int32_t, int32_t> HGCSiliconDetId::triggerCellUV ( ) const
inline

Definition at line 163 of file HGCSiliconDetId.h.

References triggerCellU(), and triggerCellV().

163  {
164  return std::pair<int32_t, int32_t>(triggerCellU(), triggerCellV());
165  }
constexpr int32_t triggerCellV() const
constexpr int32_t triggerCellU() const

◆ triggerCellV()

constexpr int32_t HGCSiliconDetId::triggerCellV ( ) const
inline

Definition at line 156 of file HGCSiliconDetId.h.

References cellU(), cellV(), HGCalCoarseTrigger, HGCalFineTrigger, HGCalHD120, HGCalHD200, HGCalHighDensityN, HGCalLowDensityN, N, and type().

Referenced by HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp3::getTriggerCellFromCell(), and triggerCellUV().

156  {
157  int32_t N = ((type() == HGCalHD120) || (type() == HGCalHD200)) ? HGCalHighDensityN : HGCalLowDensityN;
158  int32_t NT = ((type() == HGCalHD120) || (type() == HGCalHD200)) ? HGCalFineTrigger : HGCalCoarseTrigger;
159  return (cellU() >= N && cellV() >= N)
160  ? cellV() / NT
161  : ((cellU() < N && cellU() <= cellV()) ? ((cellV() - cellU()) / NT + cellU() / NT) : cellV() / NT);
162  }
static constexpr int32_t HGCalLowDensityN
static constexpr int32_t HGCalCoarseTrigger
static constexpr int32_t HGCalHighDensityN
static constexpr int32_t HGCalFineTrigger
constexpr int32_t cellU() const
get the cell #&#39;s in u,v or in x,y
#define N
Definition: blowfish.cc:9
constexpr int32_t cellV() const
constexpr int32_t type() const
get the type

◆ type()

constexpr int32_t HGCSiliconDetId::type ( ) const
inline

◆ unpack()

constexpr void HGCSiliconDetId::unpack ( int32_t &  ty,
int32_t &  zs,
int32_t &  ly,
int32_t &  wU,
int32_t &  wV,
int32_t &  cU,
int32_t &  cV 
) const
inline

Definition at line 137 of file HGCSiliconDetId.h.

References cellU(), cellV(), layer(), type(), waferU(), waferV(), and zside().

Referenced by HGCalTB23Analyzer::analyzeSimHits(), and HGCalSD::calibCell().

138  {
139  ty = type();
140  zs = zside();
141  ly = layer();
142  wU = waferU();
143  wV = waferV();
144  cU = cellU();
145  cV = cellV();
146  }
constexpr int32_t waferV() const
constexpr int32_t zside() const
get the z-side of the cell (1/-1)
constexpr int32_t cellU() const
get the cell #&#39;s in u,v or in x,y
constexpr int32_t layer() const
get the layer #
constexpr int32_t cellV() const
constexpr int32_t waferU() const
constexpr int32_t type() const
get the type

◆ waferU()

constexpr int32_t HGCSiliconDetId::waferU ( ) const
inline

◆ waferUAbs()

constexpr int32_t HGCSiliconDetId::waferUAbs ( ) const
inline

get the wafer #'s in u,v or in x,y

Definition at line 125 of file HGCSiliconDetId.h.

References DetId::id_, kHGCalWaferUMask, and kHGCalWaferUOffset.

Referenced by waferU().

125 { return (id_ >> kHGCalWaferUOffset) & kHGCalWaferUMask; }
static constexpr uint32_t kHGCalWaferUMask
static constexpr uint32_t kHGCalWaferUOffset
uint32_t id_
Definition: DetId.h:69

◆ waferUV()

constexpr std::pair<int32_t, int32_t> HGCSiliconDetId::waferUV ( ) const
inline

Definition at line 133 of file HGCSiliconDetId.h.

References waferU(), and waferV().

Referenced by HGCalSD::setDetUnitId().

133 { return std::pair<int32_t, int32_t>(waferU(), waferV()); }
constexpr int32_t waferV() const
constexpr int32_t waferU() const

◆ waferV()

constexpr int32_t HGCSiliconDetId::waferV ( ) const
inline

◆ waferVAbs()

constexpr int32_t HGCSiliconDetId::waferVAbs ( ) const
inline

Definition at line 126 of file HGCSiliconDetId.h.

References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.

Referenced by waferV().

126 { return (id_ >> kHGCalWaferVOffset) & kHGCalWaferVMask; }
static constexpr uint32_t kHGCalWaferVOffset
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t kHGCalWaferVMask

◆ waferX()

constexpr int32_t HGCSiliconDetId::waferX ( ) const
inline

Definition at line 134 of file HGCSiliconDetId.h.

References waferU(), and waferV().

Referenced by waferXY().

134 { return (-2 * waferU() + waferV()); }
constexpr int32_t waferV() const
constexpr int32_t waferU() const

◆ waferXY()

constexpr std::pair<int32_t, int32_t> HGCSiliconDetId::waferXY ( ) const
inline

Definition at line 136 of file HGCSiliconDetId.h.

References waferX(), and waferY().

136 { return std::pair<int32_t, int32_t>(waferX(), waferY()); }
constexpr int32_t waferY() const
constexpr int32_t waferX() const

◆ waferY()

constexpr int32_t HGCSiliconDetId::waferY ( ) const
inline

Definition at line 135 of file HGCSiliconDetId.h.

References waferV().

Referenced by waferXY().

135 { return (2 * waferV()); }
constexpr int32_t waferV() const

◆ zside()

constexpr int32_t HGCSiliconDetId::zside ( ) const
inline

Member Data Documentation

◆ HGCal0Depletion

constexpr int32_t HGCSiliconDetId::HGCal0Depletion = 120
static

Definition at line 31 of file HGCSiliconDetId.h.

Referenced by depletion().

◆ HGCal1Depletion

constexpr int32_t HGCSiliconDetId::HGCal1Depletion = 200
static

Definition at line 32 of file HGCSiliconDetId.h.

Referenced by depletion().

◆ HGCal2Depletion

constexpr int32_t HGCSiliconDetId::HGCal2Depletion = 300
static

Definition at line 33 of file HGCSiliconDetId.h.

Referenced by depletion().

◆ HGCalCoarseTrigger

constexpr int32_t HGCSiliconDetId::HGCalCoarseTrigger = 2
static

◆ HGCalFineTrigger

constexpr int32_t HGCSiliconDetId::HGCalFineTrigger = 3
static

◆ HGCalHighDensityN

constexpr int32_t HGCSiliconDetId::HGCalHighDensityN = 12
static

◆ HGCalLowDensityN

constexpr int32_t HGCSiliconDetId::HGCalLowDensityN = 8
static

◆ kHGCalCellUMask

constexpr uint32_t HGCSiliconDetId::kHGCalCellUMask = 0x1F
static

◆ kHGCalCellUOffset

constexpr uint32_t HGCSiliconDetId::kHGCalCellUOffset = 0
static

◆ kHGCalCellVMask

constexpr uint32_t HGCSiliconDetId::kHGCalCellVMask = 0x1F
static

◆ kHGCalCellVOffset

constexpr uint32_t HGCSiliconDetId::kHGCalCellVOffset = 5
static

◆ kHGCalLayerMask

constexpr uint32_t HGCSiliconDetId::kHGCalLayerMask = 0x1F
static

◆ kHGCalLayerOffset

constexpr uint32_t HGCSiliconDetId::kHGCalLayerOffset = 20
static

◆ kHGCalTypeMask

constexpr uint32_t HGCSiliconDetId::kHGCalTypeMask = 0x3
static

Definition at line 192 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and type().

◆ kHGCalTypeOffset

constexpr uint32_t HGCSiliconDetId::kHGCalTypeOffset = 26
static

Definition at line 191 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and type().

◆ kHGCalWaferUMask

constexpr uint32_t HGCSiliconDetId::kHGCalWaferUMask = 0xF
static

◆ kHGCalWaferUOffset

constexpr uint32_t HGCSiliconDetId::kHGCalWaferUOffset = 10
static

◆ kHGCalWaferUSignMask

constexpr uint32_t HGCSiliconDetId::kHGCalWaferUSignMask = 0x1
static

◆ kHGCalWaferUSignOffset

constexpr uint32_t HGCSiliconDetId::kHGCalWaferUSignOffset = 14
static

◆ kHGCalWaferVMask

constexpr uint32_t HGCSiliconDetId::kHGCalWaferVMask = 0xF
static

◆ kHGCalWaferVOffset

constexpr uint32_t HGCSiliconDetId::kHGCalWaferVOffset = 15
static

◆ kHGCalWaferVSignMask

constexpr uint32_t HGCSiliconDetId::kHGCalWaferVSignMask = 0x1
static

◆ kHGCalWaferVSignOffset

constexpr uint32_t HGCSiliconDetId::kHGCalWaferVSignOffset = 19
static

◆ kHGCalZsideMask

constexpr uint32_t HGCSiliconDetId::kHGCalZsideMask = 0x1
static

Definition at line 190 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and zside().

◆ kHGCalZsideOffset

constexpr uint32_t HGCSiliconDetId::kHGCalZsideOffset = 25
static

Definition at line 189 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and zside().

◆ Undefined

const HGCSiliconDetId HGCSiliconDetId::Undefined
static

Definition at line 172 of file HGCSiliconDetId.h.