CMS 3D CMS Logo

HGCalProperty.h
Go to the documentation of this file.
1 #ifndef Geometry_HGCalCommonData_HGCalProperty_h
2 #define Geometry_HGCalCommonData_HGCalProperty_h
3 
4 #include <cmath>
5 #include <cstdint>
6 
7 namespace HGCalProperty {
8  int32_t waferProperty(const int32_t thick, const int32_t partial, const int32_t orient);
9  int32_t waferThick(const int32_t property);
10  int32_t waferPartial(const int32_t property);
11  int32_t waferOrient(const int32_t property);
12  int32_t tileProperty(const int32_t type, const int32_t sipm);
13  int32_t tileType(const int32_t property);
14  int32_t tileSiPM(const int32_t property);
15 
16  constexpr int32_t kHGCalWaferUOffset = 0;
17  constexpr int32_t kHGCalWaferUMask = 0x1F;
18  constexpr int32_t kHGCalWaferUSignOffset = 5;
19  constexpr int32_t kHGCalWaferUSignMask = 0x1;
20  constexpr int32_t kHGCalWaferVOffset = 6;
21  constexpr int32_t kHGCalWaferVMask = 0x1F;
22  constexpr int32_t kHGCalWaferVSignOffset = 11;
23  constexpr int32_t kHGCalWaferVSignMask = 0x1;
24  constexpr int32_t kHGCalWaferCopyOffset = 0;
25  constexpr int32_t kHGCalWaferCopyMask = 0x7FFFF;
26  constexpr int32_t kHGCalLayerOldMask = 0x1000000;
27 
28  constexpr int32_t kHGCalLayerOffset = 18;
29  constexpr int32_t kHGCalLayerMask = 0x1F;
30 
31  constexpr int32_t kHGCalPhiOffset = 0;
32  constexpr int32_t kHGCalPhiMask = 0x1FF;
33  constexpr int32_t kHGCalRingOffset = 9;
34  constexpr int32_t kHGCalRingMask = 0x1FF;
35 
36  constexpr int32_t kHGCalFactor = 10;
37  constexpr int32_t kHGCalOffsetThick = 1;
38  constexpr int32_t kHGCalOffsetPartial = 10;
39  constexpr int32_t kHGCalOffsetOrient = 100;
40  constexpr int32_t kHGCalOffsetType = 1;
41  constexpr int32_t kHGCalOffsetSiPM = 10;
42  constexpr int32_t kHGCalTilePack = 1000;
43 
44  constexpr int32_t kHGCalTilePhis = 288;
45  constexpr int32_t kHGCalTilePhisBy2 = kHGCalTilePhis / 2;
46  constexpr int32_t kHGCalTilePhisBy3 = kHGCalTilePhis / 3;
47  constexpr int32_t kHGCalTilePhisBy12 = kHGCalTilePhis / 12;
48 
49 }; // namespace HGCalProperty
50 
51 #endif
HGCalProperty::kHGCalOffsetType
constexpr int32_t kHGCalOffsetType
Definition: HGCalProperty.h:40
HGCalProperty::kHGCalTilePack
constexpr int32_t kHGCalTilePack
Definition: HGCalProperty.h:42
HGCalProperty::kHGCalFactor
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:36
HGCalProperty::kHGCalWaferVSignOffset
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:22
HGCalProperty::kHGCalWaferUSignMask
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:19
HGCalProperty::kHGCalWaferVMask
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:21
HGCalProperty::waferOrient
int32_t waferOrient(const int32_t property)
Definition: HGCalProperty.cc:17
HGCalProperty::tileType
int32_t tileType(const int32_t property)
Definition: HGCalProperty.cc:26
HGCalProperty::kHGCalWaferCopyOffset
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:24
HGCalProperty::kHGCalTilePhisBy12
constexpr int32_t kHGCalTilePhisBy12
Definition: HGCalProperty.h:47
HGCalProperty::kHGCalWaferUOffset
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:16
HGCalProperty::kHGCalWaferUSignOffset
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:18
HGCalProperty::waferProperty
int32_t waferProperty(const int32_t thick, const int32_t partial, const int32_t orient)
Definition: HGCalProperty.cc:3
HGCalProperty::kHGCalOffsetOrient
constexpr int32_t kHGCalOffsetOrient
Definition: HGCalProperty.h:39
HGCalProperty::kHGCalWaferVSignMask
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:23
HGCalProperty::kHGCalRingMask
constexpr int32_t kHGCalRingMask
Definition: HGCalProperty.h:34
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
HGCalProperty::kHGCalWaferCopyMask
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:25
HGCalProperty
Definition: HGCalProperty.h:7
HGCalProperty::waferThick
int32_t waferThick(const int32_t property)
Definition: HGCalProperty.cc:9
HGCalProperty::kHGCalLayerOldMask
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:26
HGCalProperty::tileSiPM
int32_t tileSiPM(const int32_t property)
Definition: HGCalProperty.cc:30
HGCalProperty::waferPartial
int32_t waferPartial(const int32_t property)
Definition: HGCalProperty.cc:13
HGCalProperty::kHGCalTilePhis
constexpr int32_t kHGCalTilePhis
Definition: HGCalProperty.h:44
HGCalProperty::kHGCalPhiMask
constexpr int32_t kHGCalPhiMask
Definition: HGCalProperty.h:32
hgcalPerformanceValidation.orient
orient
Definition: hgcalPerformanceValidation.py:733
HGCalProperty::kHGCalTilePhisBy2
constexpr int32_t kHGCalTilePhisBy2
Definition: HGCalProperty.h:45
HGCalProperty::tileProperty
int32_t tileProperty(const int32_t type, const int32_t sipm)
Definition: HGCalProperty.cc:21
HGCalProperty::kHGCalLayerOffset
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
HGCalProperty::kHGCalOffsetPartial
constexpr int32_t kHGCalOffsetPartial
Definition: HGCalProperty.h:38
HGCalProperty::kHGCalRingOffset
constexpr int32_t kHGCalRingOffset
Definition: HGCalProperty.h:33
HGCalProperty::kHGCalWaferVOffset
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:20
HGCalProperty::kHGCalTilePhisBy3
constexpr int32_t kHGCalTilePhisBy3
Definition: HGCalProperty.h:46
HGCalProperty::kHGCalWaferUMask
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:17
HGCalProperty::kHGCalPhiOffset
constexpr int32_t kHGCalPhiOffset
Definition: HGCalProperty.h:31
HGCalProperty::kHGCalOffsetThick
constexpr int32_t kHGCalOffsetThick
Definition: HGCalProperty.h:37
HGCalProperty::kHGCalOffsetSiPM
constexpr int32_t kHGCalOffsetSiPM
Definition: HGCalProperty.h:41
HGCalProperty::kHGCalLayerMask
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29