1 #include "HGCal/CondObjects/interface/HGCalTBNumberingScheme.h"
2 #include "HGCal/DataFormats/interface/HGCalTBDetId.h"
4 static const int CELLSLOTS_PER_SENSOR = 133 + 2;
10 if (scheme == 0)
return 28 * CELLSLOTS_PER_SENSOR;
14 static const uint8_t numbering_128[] = {
15 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 1, 255, 255, 255,
16 255, 255, 255, 255, 255, 255, 255, 255, 2, 3, 4, 5, 6, 255, 255,
17 255, 255, 255, 255, 255, 255, 7, 8, 9, 10, 11, 12, 13, 14, 255,
18 255, 255, 255, 255, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
19 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
20 255, 255, 255, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 255,
21 255, 255, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 255,
22 255, 255, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 255, 255,
23 255, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 255, 255,
24 255, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 255, 255, 255,
25 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 255, 255, 255,
26 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 255, 255, 255, 255,
27 255, 118, 119, 120, 121, 122, 123, 124, 125, 255, 255, 255, 255, 255, 255,
28 255, 255, 126, 127, 128, 129, 130, 255, 255, 255, 255, 255, 255, 255, 255,
29 255, 255, 255, 131, 132, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255
38 size_t idx = (
id.layer() - 1) * CELLSLOTS_PER_SENSOR;
39 int linear = (
id.iu() + 7) * 15 +
id.iv() + 7;
41 if (
id.iv() > 0) idx += 133;
43 }
else idx += numbering_128[linear];
static const size_t INVALID
virtual size_t rangeFor(uint64_t scheme) const
static const int kCellTypeCalibInner
virtual size_t denseIndexFor(uint32_t rawDetId, uint64_t scheme) const