CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 kHGCalFactorPartial = 100;
38  constexpr int32_t kHGCalOffsetThick = 1;
39  constexpr int32_t kHGCalOffsetPartial = 10;
40  constexpr int32_t kHGCalOffsetOrient = 1000;
41  constexpr int32_t kHGCalOffsetType = 1;
42  constexpr int32_t kHGCalOffsetSiPM = 10;
43  constexpr int32_t kHGCalTilePack = 1000;
44 
45  constexpr int32_t kHGCalTilePhis = 288;
46  constexpr int32_t kHGCalTilePhisBy2 = kHGCalTilePhis / 2;
47  constexpr int32_t kHGCalTilePhisBy3 = kHGCalTilePhis / 3;
48  constexpr int32_t kHGCalTilePhisBy12 = kHGCalTilePhis / 12;
49 
50 }; // namespace HGCalProperty
51 
52 #endif
constexpr int32_t kHGCalTilePhisBy3
Definition: HGCalProperty.h:47
constexpr int32_t kHGCalWaferVOffset
Definition: HGCalProperty.h:20
int32_t tileType(const int32_t property)
constexpr int32_t kHGCalTilePhisBy12
Definition: HGCalProperty.h:48
constexpr int32_t kHGCalWaferVSignOffset
Definition: HGCalProperty.h:22
constexpr int32_t kHGCalWaferCopyOffset
Definition: HGCalProperty.h:24
constexpr int32_t kHGCalWaferVMask
Definition: HGCalProperty.h:21
int32_t waferOrient(const int32_t property)
constexpr int32_t kHGCalWaferUSignMask
Definition: HGCalProperty.h:19
constexpr int32_t kHGCalWaferUOffset
Definition: HGCalProperty.h:16
constexpr int32_t kHGCalWaferUSignOffset
Definition: HGCalProperty.h:18
constexpr int32_t kHGCalRingMask
Definition: HGCalProperty.h:34
int32_t waferProperty(const int32_t thick, const int32_t partial, const int32_t orient)
Definition: HGCalProperty.cc:3
constexpr int32_t kHGCalWaferCopyMask
Definition: HGCalProperty.h:25
int32_t tileSiPM(const int32_t property)
int32_t waferThick(const int32_t property)
Definition: HGCalProperty.cc:9
constexpr int32_t kHGCalOffsetOrient
Definition: HGCalProperty.h:40
constexpr int32_t kHGCalTilePhis
Definition: HGCalProperty.h:45
constexpr int32_t kHGCalFactorPartial
Definition: HGCalProperty.h:37
constexpr int32_t kHGCalWaferVSignMask
Definition: HGCalProperty.h:23
constexpr int32_t kHGCalLayerOldMask
Definition: HGCalProperty.h:26
constexpr int32_t kHGCalPhiOffset
Definition: HGCalProperty.h:31
int32_t waferPartial(const int32_t property)
constexpr int32_t kHGCalLayerOffset
Definition: HGCalProperty.h:28
constexpr int32_t kHGCalOffsetSiPM
Definition: HGCalProperty.h:42
constexpr int32_t kHGCalTilePhisBy2
Definition: HGCalProperty.h:46
constexpr int32_t kHGCalLayerMask
Definition: HGCalProperty.h:29
constexpr int32_t kHGCalWaferUMask
Definition: HGCalProperty.h:17
constexpr int32_t kHGCalOffsetThick
Definition: HGCalProperty.h:38
constexpr int32_t kHGCalPhiMask
Definition: HGCalProperty.h:32
constexpr int32_t kHGCalRingOffset
Definition: HGCalProperty.h:33
constexpr int32_t kHGCalTilePack
Definition: HGCalProperty.h:43
int32_t tileProperty(const int32_t type, const int32_t sipm)
constexpr int32_t kHGCalFactor
Definition: HGCalProperty.h:36
constexpr int32_t kHGCalOffsetPartial
Definition: HGCalProperty.h:39
constexpr int32_t kHGCalOffsetType
Definition: HGCalProperty.h:41