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 { HGCalFine = 0, HGCalCoarseThin = 1, HGCalCoarseThick = 2, HGCalFineThick = 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
HGCalFine 
HGCalCoarseThin 
HGCalCoarseThick 
HGCalFineThick 

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

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

Definition at line 112 of file HGCSiliconDetId.h.

References DetId::id_, kHGCalCellUMask, and kHGCalCellUOffset.

Referenced by HGCalTestPartialWaferRecHits::analyze(), cellUV(), cellY(), hgcal::RecHitTools::getCell(), HGCSiliconDetId(), HGCalSD::setDetUnitId(), triggerCellU(), triggerCellV(), and unpack().

112 { return (id_ >> kHGCalCellUOffset) & kHGCalCellUMask; }
static constexpr uint32_t kHGCalCellUOffset
static constexpr uint32_t kHGCalCellUMask
uint32_t id_
Definition: DetId.h:69

◆ cellUV()

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

Definition at line 114 of file HGCSiliconDetId.h.

References cellU(), and cellV().

114 { 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 115 of file HGCSiliconDetId.h.

References cellV(), HGCalFine, HGCalFineThick, HGCalHighDensityN, HGCalLowDensityN, N, and type().

Referenced by cellXY().

115  {
116  int32_t N = ((type() == HGCalFine) || (type() == HGCalFineThick)) ? HGCalHighDensityN : HGCalLowDensityN;
117  return (3 * (cellV() - N) + 2);
118  }
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 123 of file HGCSiliconDetId.h.

References cellX(), and cellY().

123 { 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 119 of file HGCSiliconDetId.h.

References cellU(), cellV(), HGCalFine, HGCalFineThick, HGCalHighDensityN, HGCalLowDensityN, N, and type().

Referenced by cellXY().

119  {
120  int32_t N = ((type() == HGCalFine) || (type() == HGCalFineThick)) ? HGCalHighDensityN : HGCalLowDensityN;
121  return (2 * cellU() - (N + cellV()));
122  }
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, HGCalCoarseThick, HGCalFine, and type().

100  {
101  return ((type() == HGCalFine) ? HGCal0Depletion
103  }
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 HGCalFine, HGCalFineThick, and type().

99 { return ((type() == HGCalFine) || (type() == HGCalFineThick)); }
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 169 of file HGCSiliconDetId.h.

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

169 { 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 171 of file HGCSiliconDetId.h.

171 { return true; }

◆ isHE()

constexpr bool HGCSiliconDetId::isHE ( ) const
inline

Definition at line 170 of file HGCSiliconDetId.h.

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

170 { 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 HGCalCoarseThick, HGCalCoarseThin, and 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().

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 150 of file HGCSiliconDetId.h.

References cellU(), cellV(), HGCalCoarseTrigger, HGCalFine, HGCalFineThick, HGCalFineTrigger, HGCalHighDensityN, HGCalLowDensityN, N, and type().

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

150  {
151  int32_t N = ((type() == HGCalFine) || (type() == HGCalFineThick)) ? HGCalHighDensityN : HGCalLowDensityN;
152  int32_t NT = ((type() == HGCalFine) || (type() == HGCalFineThick)) ? HGCalFineTrigger : HGCalCoarseTrigger;
153  return (cellU() >= N && cellV() >= N)
154  ? cellU() / NT
155  : ((cellU() < N && cellU() <= cellV()) ? cellU() / NT : (1 + (cellU() - (cellV() % NT + 1)) / NT));
156  }
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 164 of file HGCSiliconDetId.h.

References triggerCellU(), and triggerCellV().

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

◆ triggerCellV()

constexpr int32_t HGCSiliconDetId::triggerCellV ( ) const
inline

Definition at line 157 of file HGCSiliconDetId.h.

References cellU(), cellV(), HGCalCoarseTrigger, HGCalFine, HGCalFineThick, HGCalFineTrigger, HGCalHighDensityN, HGCalLowDensityN, N, and type().

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

157  {
158  int32_t N = ((type() == HGCalFine) || (type() == HGCalFineThick)) ? HGCalHighDensityN : HGCalLowDensityN;
159  int32_t NT = ((type() == HGCalFine) || (type() == HGCalFineThick)) ? HGCalFineTrigger : HGCalCoarseTrigger;
160  return (cellU() >= N && cellV() >= N)
161  ? cellV() / NT
162  : ((cellU() < N && cellU() <= cellV()) ? ((cellV() - cellU()) / NT + cellU() / NT) : cellV() / NT);
163  }
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 138 of file HGCSiliconDetId.h.

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

Referenced by HGCalSD::calibCell().

139  {
140  ty = type();
141  zs = zside();
142  ly = layer();
143  wU = waferU();
144  wV = waferV();
145  cU = cellU();
146  cV = cellV();
147  }
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 126 of file HGCSiliconDetId.h.

References DetId::id_, kHGCalWaferUMask, and kHGCalWaferUOffset.

Referenced by waferU().

126 { 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 134 of file HGCSiliconDetId.h.

References waferU(), and waferV().

Referenced by HGCalSD::setDetUnitId().

134 { 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 127 of file HGCSiliconDetId.h.

References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.

Referenced by waferV().

127 { 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 135 of file HGCSiliconDetId.h.

References waferU(), and waferV().

Referenced by waferXY().

135 { 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 137 of file HGCSiliconDetId.h.

References waferX(), and waferY().

137 { 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 136 of file HGCSiliconDetId.h.

References waferV().

Referenced by waferXY().

136 { 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 193 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and type().

◆ kHGCalTypeOffset

constexpr uint32_t HGCSiliconDetId::kHGCalTypeOffset = 26
static

Definition at line 192 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 191 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and zside().

◆ kHGCalZsideOffset

constexpr uint32_t HGCSiliconDetId::kHGCalZsideOffset = 25
static

Definition at line 190 of file HGCSiliconDetId.h.

Referenced by HGCSiliconDetId(), and zside().

◆ Undefined

const HGCSiliconDetId HGCSiliconDetId::Undefined
static

Definition at line 173 of file HGCSiliconDetId.h.