CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:20
int32_t *__restrict__ iv
uint16_t *__restrict__ id
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:22
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:24
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:21
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:19
constexpr std::array< uint8_t, layerIndexSize > layer
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:16
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:18
int32_t waferCopy(const int32_t index)
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:25
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:23
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:26
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
int32_t waferV(const int32_t index)
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:17