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); }
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:21
int32_t *__restrict__ iv
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:23
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:25
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:22
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:20
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:17
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:19
int32_t waferCopy(const int32_t index)
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:26
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
bool waferFormat(const int32_t index)
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:24
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:27
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:29
int32_t waferV(const int32_t index)
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:30
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:18