File indexing completed on 2024-04-06 12:14:53
0001 #ifndef Geometry_HGCalCommonData_HGCalTileIndex_h
0002 #define Geometry_HGCalCommonData_HGCalTileIndex_h
0003
0004 #include <cmath>
0005 #include <cstdint>
0006 #include <tuple>
0007
0008 namespace HGCalTileIndex {
0009
0010 int32_t tileIndex(int32_t layer, int32_t ring, int32_t phi);
0011
0012 int32_t tileLayer(int32_t index);
0013
0014 int32_t tileRing(int32_t index);
0015
0016 int32_t tilePhi(int32_t index);
0017
0018 int32_t tileProperty(int32_t, int32_t);
0019
0020 int32_t tileType(int32_t);
0021
0022 int32_t tileSiPM(int32_t);
0023
0024 int32_t tileCassette(int32_t, int32_t, int32_t, int32_t);
0025
0026 int32_t tilePack(int32_t ly, int32_t k1, int32_t k2);
0027
0028 std::tuple<int32_t, int32_t, int32_t> tileUnpack(int32_t index);
0029
0030 bool tileExist(const int32_t* hex, int32_t zside, int32_t phi);
0031 bool tileFineExist(const int32_t* hex, int32_t zside, int32_t phi);
0032 };
0033
0034 #endif