CMS 3D CMS Logo

HGCalWaferIndex.cc
Go to the documentation of this file.
3 
4 int32_t HGCalWaferIndex::waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old) {
5  int32_t id(0);
6  if (old) {
10  } else {
11  int waferUabs(std::abs(waferU)), waferVabs(std::abs(waferV));
12  int waferUsign = (waferU >= 0) ? 0 : 1;
13  int waferVsign = (waferV >= 0) ? 0 : 1;
19  }
20  return id;
21 }
22 
23 int32_t HGCalWaferIndex::waferLayer(const int32_t id) {
25 }
26 
27 int32_t HGCalWaferIndex::waferU(const int32_t id) {
30 }
31 
32 int32_t HGCalWaferIndex::waferV(const int32_t id) {
35 }
36 
37 int32_t HGCalWaferIndex::waferCopy(const int32_t id) {
39 }
40 
41 bool HGCalWaferIndex::waferFormat(const int32_t id) { return ((id & HGCalProperty::kHGCalLayerOldMask) == 0); }
HGCalProperty.h
HGCalProperty::kHGCalWaferVSignOffset
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:22
HGCalProperty::kHGCalWaferUSignMask
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:19
gpuVertexFinder::iv
int32_t *__restrict__ iv
Definition: gpuClusterTracksDBSCAN.h:42
HGCalProperty::kHGCalWaferVMask
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:21
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:27
HGCalWaferIndex::waferIndex
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
Definition: HGCalWaferIndex.cc:4
HGCalProperty::kHGCalWaferCopyOffset
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:24
HGCalProperty::kHGCalWaferUOffset
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:16
HGCalWaferIndex.h
HGCalProperty::kHGCalWaferUSignOffset
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:18
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
HGCalProperty::kHGCalWaferVSignMask
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:23
HGCalWaferIndex::waferCopy
int32_t waferCopy(const int32_t index)
Definition: HGCalWaferIndex.cc:37
HGCalProperty::kHGCalWaferCopyMask
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:25
HGCalProperty::kHGCalLayerOldMask
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:26
HGCalWaferIndex::waferFormat
bool waferFormat(const int32_t index)
Definition: HGCalWaferIndex.cc:41
HGCalWaferIndex::waferLayer
int32_t waferLayer(const int32_t index)
Definition: HGCalWaferIndex.cc:23
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
HGCalProperty::kHGCalLayerOffset
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
HGCalProperty::kHGCalWaferVOffset
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:20
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HGCalProperty::kHGCalWaferUMask
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:17
HGCalProperty::kHGCalLayerMask
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29