CMS 3D CMS Logo

HGCalTileIndex.h
Go to the documentation of this file.
1 #ifndef Geometry_HGCalCommonData_HGCalTileIndex_h
2 #define Geometry_HGCalCommonData_HGCalTileIndex_h
3 
4 #include <cmath>
5 #include <cstdint>
6 #include <tuple>
7 
8 namespace HGCalTileIndex {
9  int32_t tileIndex(int32_t layer, int32_t ring, int32_t phi);
10  int32_t tileLayer(int32_t index);
11  int32_t tileRing(int32_t index);
12  int32_t tilePhi(int32_t index);
13  int32_t tileProperty(int32_t, int32_t);
14  int32_t tileType(int32_t);
15  int32_t tileSiPM(int32_t);
16  int32_t tilePack(int32_t ly, int32_t k1, int32_t k2);
17  std::tuple<int32_t, int32_t, int32_t> tileUnpack(int32_t index);
18  bool tileExist(const int32_t* hex, int32_t zside, int32_t phi);
19 }; // namespace HGCalTileIndex
20 
21 #endif
HGCalTileIndex::tilePack
int32_t tilePack(int32_t ly, int32_t k1, int32_t k2)
Definition: HGCalTileIndex.cc:37
HGCalTileIndex::tilePhi
int32_t tilePhi(int32_t index)
Definition: HGCalTileIndex.cc:20
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
HGCalTileIndex::tileRing
int32_t tileRing(int32_t index)
Definition: HGCalTileIndex.cc:16
HGCalTileIndex::tileIndex
int32_t tileIndex(int32_t layer, int32_t ring, int32_t phi)
Definition: HGCalTileIndex.cc:4
HGCalTileIndex::tileLayer
int32_t tileLayer(int32_t index)
Definition: HGCalTileIndex.cc:12
HGCalTileIndex::tileExist
bool tileExist(const int32_t *hex, int32_t zside, int32_t phi)
Definition: HGCalTileIndex.cc:52
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
HGCalTileIndex::tileUnpack
std::tuple< int32_t, int32_t, int32_t > tileUnpack(int32_t index)
Definition: HGCalTileIndex.cc:44
HGCalTileIndex::tileProperty
int32_t tileProperty(int32_t, int32_t)
Definition: HGCalTileIndex.cc:24
HGCalTileIndex
Definition: HGCalTileIndex.h:8
HGCalTileIndex::tileSiPM
int32_t tileSiPM(int32_t)
Definition: HGCalTileIndex.cc:33
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HGCalTileIndex::tileType
int32_t tileType(int32_t)
Definition: HGCalTileIndex.cc:29