ATLAS Offline Software
Loading...
Searching...
No Matches
DataPrepEDM.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4 #ifndef TRIGACCELEVENT_DATAPREPEDM_H
5 #define TRIGACCELEVENT_DATAPREPEDM_H
6 //GPU-accelerated data preparation
7
8 static constexpr unsigned int MAX_NUMBER_BS_WORDS = 80000;
9 static constexpr unsigned int MAX_GANGED_PIXELS = 4000;
10 static constexpr unsigned int MAX_GANGED_PIXEL_PER_MODULE = 50;
11 static constexpr unsigned int MAX_PIX_BS_HEADERS = 2048;
12 static constexpr unsigned int MAX_PIX_HASH = 2048;
13 static constexpr unsigned int MAX_SCT_BS_HEADERS = 8500;
14 static constexpr unsigned int MAX_SCT_HASH = 8176;
15 static constexpr unsigned int MAX_BS_ROBF = 200;
16 static constexpr unsigned int MAX_ADJ_HIT_PAIRS = 1024;
17 static constexpr unsigned int SCT_MAX_SP_PER_MODULE = 256;
18 static constexpr unsigned int MAX_PHI_INDEX = 100;
19 static constexpr unsigned int MAX_RZ_INDEX = 300;
20 static constexpr unsigned int MAX_PIX_ROD_INDEX = 200;
21 static constexpr unsigned int MAX_PIX_LINK_INDEX = 8;
22 static constexpr unsigned int MAX_SCT_ROD_INDEX = 90;
23 static constexpr unsigned int MAX_SCT_LINK_INDEX = 96;
24
25 typedef struct SctModuleGeoInfo {
26 char m_type;
29 float m_center[3];
30 float m_M[3][3];
31 //special meaning for endcap
35
37
50
52 unsigned short x,y,z,w;
53 };
54
64
65 struct myfloat2 {
66 float x,y;
67 };
68
69 struct myint4 {
70 int x,y,z,w;
71 };
72
73 struct myushort4 {
74 unsigned short x,y,z,w;
75 };
76
77 struct myushort2 {
78 unsigned short x,y;
79 };
80
88
89
98
99 typedef struct DecodedPixelHitInfo {
100 unsigned int m_clusterIds;
101 unsigned short m_etaIndex;
102 unsigned short m_phiIndex;
103 unsigned int m_tot;
105
110
111
132
143
144 typedef struct SctSpacePointStruct {
145 float m_position[3];
146 unsigned short m_clusterIdx[2];
148
166 #endif
static constexpr unsigned int MAX_PIX_HASH
Definition DataPrepEDM.h:12
struct DecodedSctData DECODED_SCT_DATA
struct IdCablingInfo ID_CABLING_INFO
struct DecodedPixelHitInfo DECODED_PIX_HIT_INFO
struct DecodedSctHeaderInfo DECODED_SCT_HEADER_INFO
static constexpr unsigned int MAX_PIX_LINK_INDEX
Definition DataPrepEDM.h:21
struct DecodedPixelData DECODED_PIXEL_DATA
struct DecodedPixelModuleInfo DECODED_PIX_MODULE_INFO
struct PixelModuleGeoInfo PIXEL_MODULE_GEO_INFO
static constexpr unsigned int MAX_PHI_INDEX
Definition DataPrepEDM.h:18
struct SctModuleGeoInfo SCT_MODULE_GEO_INFO
static constexpr unsigned int MAX_ADJ_HIT_PAIRS
Definition DataPrepEDM.h:16
static constexpr unsigned int MAX_GANGED_PIXELS
Definition DataPrepEDM.h:9
struct SctSpacePointStruct SCT_SPACEPOINT_TYPE
static constexpr unsigned int MAX_GANGED_PIXEL_PER_MODULE
Definition DataPrepEDM.h:10
static constexpr unsigned int MAX_SCT_HASH
Definition DataPrepEDM.h:14
static constexpr unsigned int MAX_BS_ROBF
Definition DataPrepEDM.h:15
static constexpr unsigned int MAX_PIX_ROD_INDEX
Definition DataPrepEDM.h:20
static constexpr unsigned int MAX_SCT_ROD_INDEX
Definition DataPrepEDM.h:22
static constexpr unsigned int MAX_RZ_INDEX
Definition DataPrepEDM.h:19
struct PixelSpacePointType PIXEL_SPACEPOINT_TYPE
static constexpr unsigned int MAX_SCT_BS_HEADERS
Definition DataPrepEDM.h:13
static constexpr unsigned int MAX_SCT_LINK_INDEX
Definition DataPrepEDM.h:23
struct InputByteStreamData INPUT_BYTESTREAM_DATA
static constexpr unsigned int MAX_NUMBER_BS_WORDS
Definition DataPrepEDM.h:8
static constexpr unsigned int SCT_MAX_SP_PER_MODULE
Definition DataPrepEDM.h:17
static constexpr unsigned int MAX_PIX_BS_HEADERS
Definition DataPrepEDM.h:11
PIXEL_SPACEPOINT_TYPE m_spacePoints[MAX_NUMBER_BS_WORDS+MAX_GANGED_PIXELS]
myint4 m_decodedData[MAX_NUMBER_BS_WORDS+MAX_GANGED_PIXELS]
DECODED_PIX_HIT_INFO m_hitInfo[MAX_NUMBER_BS_WORDS+MAX_GANGED_PIXELS]
myfloat2 m_clusterPosition[MAX_NUMBER_BS_WORDS+MAX_GANGED_PIXELS]
unsigned short m_moduleInfoWord[MAX_PIX_BS_HEADERS]
int m_clusterStarts[MAX_PIX_BS_HEADERS]
DECODED_PIX_MODULE_INFO m_modulesInfo[MAX_PIX_BS_HEADERS]
int m_hashToIndex[MAX_PIX_HASH]
int m_nPixels[MAX_PIX_BS_HEADERS]
unsigned short m_clusterId[MAX_NUMBER_BS_WORDS+MAX_GANGED_PIXELS]
unsigned short m_phiIndex
unsigned int m_tot
unsigned short m_etaIndex
unsigned int m_clusterIds
unsigned int m_nGangedPixels
Definition DataPrepEDM.h:96
unsigned int m_nClusters
Definition DataPrepEDM.h:95
myushort4 m_decodedData[MAX_NUMBER_BS_WORDS *2]
unsigned short m_headerInfoIndices[MAX_SCT_HASH]
unsigned short m_moduleInfoWord[MAX_SCT_BS_HEADERS]
unsigned short m_phiModuleIndices[MAX_SCT_BS_HEADERS/2]
unsigned int m_nSpacePoints
float m_clusterPosition[MAX_NUMBER_BS_WORDS *2]
unsigned short m_clusterIds[MAX_NUMBER_BS_WORDS *2]
myushort2 m_clusterInfo[MAX_NUMBER_BS_WORDS *2]
SCT_SPACEPOINT_TYPE m_spacePoints[SCT_MAX_SP_PER_MODULE *MAX_SCT_BS_HEADERS/2]
DECODED_SCT_HEADER_INFO m_headersInfo[MAX_SCT_BS_HEADERS]
unsigned int m_spacePointsStart
unsigned int m_nClusters
unsigned short y
Definition DataPrepEDM.h:52
unsigned short z
Definition DataPrepEDM.h:52
unsigned short x
Definition DataPrepEDM.h:52
unsigned short w
Definition DataPrepEDM.h:52
HashQuadruplet m_pixelRodLinkHashTable[MAX_PIX_ROD_INDEX][MAX_PIX_LINK_INDEX]
Definition DataPrepEDM.h:57
unsigned short m_sctRodLinkHashTable[MAX_SCT_ROD_INDEX][MAX_SCT_LINK_INDEX]
Definition DataPrepEDM.h:58
SCT_MODULE_GEO_INFO m_sctGeoArray[MAX_SCT_HASH]
Definition DataPrepEDM.h:62
uint16_t m_pixelModuleInfo[MAX_PIX_HASH]
Definition DataPrepEDM.h:59
PIXEL_MODULE_GEO_INFO m_pixelGeoArray[MAX_PIX_HASH]
Definition DataPrepEDM.h:61
uint16_t m_sctModuleInfo[MAX_SCT_HASH]
Definition DataPrepEDM.h:60
uint32_t m_words[MAX_NUMBER_BS_WORDS]
Definition DataPrepEDM.h:84
uint32_t m_rodIds[MAX_NUMBER_BS_WORDS]
Definition DataPrepEDM.h:83
float m_M[3][3]
Definition DataPrepEDM.h:46
unsigned short m_clusterIdx
float m_center[3]
Definition DataPrepEDM.h:29
float m_M[3][3]
Definition DataPrepEDM.h:30
unsigned short m_clusterIdx[2]
float x
Definition DataPrepEDM.h:66
float y
Definition DataPrepEDM.h:66
unsigned short x
Definition DataPrepEDM.h:78
unsigned short y
Definition DataPrepEDM.h:78
unsigned short z
Definition DataPrepEDM.h:74
unsigned short x
Definition DataPrepEDM.h:74
unsigned short w
Definition DataPrepEDM.h:74
unsigned short y
Definition DataPrepEDM.h:74