forked from cms-patatrack/pixeltrack-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SiPixelFedCablingMapGPU.h
26 lines (23 loc) · 1.24 KB
/
SiPixelFedCablingMapGPU.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef RecoLocalTracker_SiPixelClusterizer_SiPixelFedCablingMapGPU_h
#define RecoLocalTracker_SiPixelClusterizer_SiPixelFedCablingMapGPU_h
namespace pixelgpudetails {
// Maximum fed for phase1 is 150 but not all of them are filled
// Update the number FED based on maximum fed found in the cabling map
constexpr unsigned int MAX_FED = 150;
constexpr unsigned int MAX_LINK = 48; // maximum links/channels for Phase 1
constexpr unsigned int MAX_ROC = 8;
constexpr unsigned int MAX_SIZE = MAX_FED * MAX_LINK * MAX_ROC;
constexpr unsigned int MAX_SIZE_BYTE_BOOL = MAX_SIZE * sizeof(unsigned char);
} // namespace pixelgpudetails
// TODO: since this has more information than just cabling map, maybe we should invent a better name?
struct SiPixelFedCablingMapGPU {
alignas(128) unsigned int fed[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned int link[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned int roc[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned int RawId[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned int rocInDet[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned int moduleId[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned char badRocs[pixelgpudetails::MAX_SIZE];
alignas(128) unsigned int size = 0;
};
#endif