@@ -84,9 +84,9 @@ namespace pixelgpudetails {
84
84
return (1 ==((rawId>>25 )&0x7 ));
85
85
}
86
86
87
- __device__ pixelgpudetails::DetIdGPU getRawId (SiPixelFedCablingMapGPU cablingMap, uint32_t fed, uint32_t link, uint32_t roc) {
87
+ __device__ pixelgpudetails::DetIdGPU getRawId (const SiPixelFedCablingMapGPU * cablingMap, uint32_t fed, uint32_t link, uint32_t roc) {
88
88
uint32_t index = fed * MAX_LINK * MAX_ROC + (link -1 ) * MAX_ROC + roc;
89
- pixelgpudetails::DetIdGPU detId = { cablingMap. RawId [index ], cablingMap. rocInDet [index ], cablingMap. moduleId [index ] };
89
+ pixelgpudetails::DetIdGPU detId = { cablingMap-> RawId [index ], cablingMap-> rocInDet [index ], cablingMap-> moduleId [index ] };
90
90
return detId;
91
91
}
92
92
@@ -219,7 +219,7 @@ namespace pixelgpudetails {
219
219
return ((dcol < 26 ) & (2 <= pxid) & (pxid < 162 ));
220
220
}
221
221
222
- __device__ uint32_t checkROC (uint32_t errorWord, uint32_t fedId, uint32_t link, SiPixelFedCablingMapGPU cablingMap, bool debug = false )
222
+ __device__ uint32_t checkROC (uint32_t errorWord, uint32_t fedId, uint32_t link, const SiPixelFedCablingMapGPU * cablingMap, bool debug = false )
223
223
{
224
224
int errorType = (errorWord >> pixelgpudetails::ROC_shift) & pixelgpudetails::ERROR_mask;
225
225
if (errorType < 25 ) return false ;
@@ -229,8 +229,8 @@ namespace pixelgpudetails {
229
229
case (25 ) : {
230
230
errorFound = true ;
231
231
uint32_t index = fedId * MAX_LINK * MAX_ROC + (link -1 ) * MAX_ROC + 1 ;
232
- if (index > 1 && index <= cablingMap. size ) {
233
- if (!(link == cablingMap. link [index ] && 1 == cablingMap. roc [index ])) errorFound = false ;
232
+ if (index > 1 && index <= cablingMap-> size ) {
233
+ if (!(link == cablingMap-> link [index ] && 1 == cablingMap-> roc [index ])) errorFound = false ;
234
234
}
235
235
if (debug&errorFound) printf (" Invalid ROC = 25 found (errorType = 25)\n " );
236
236
break ;
@@ -283,7 +283,7 @@ namespace pixelgpudetails {
283
283
return errorFound? errorType : 0 ;
284
284
}
285
285
286
- __device__ uint32_t getErrRawID (uint32_t fedId, uint32_t errWord, uint32_t errorType, SiPixelFedCablingMapGPU cablingMap, bool debug = false )
286
+ __device__ uint32_t getErrRawID (uint32_t fedId, uint32_t errWord, uint32_t errorType, const SiPixelFedCablingMapGPU * cablingMap, bool debug = false )
287
287
{
288
288
uint32_t rID = 0xffffffff ;
289
289
@@ -393,7 +393,7 @@ namespace pixelgpudetails {
393
393
394
394
395
395
// Kernel to perform Raw to Digi conversion
396
- __global__ void RawToDigi_kernel (SiPixelFedCablingMapGPU cablingMap, const unsigned char *modToUnp,
396
+ __global__ void RawToDigi_kernel (const SiPixelFedCablingMapGPU * cablingMap, const unsigned char *modToUnp,
397
397
const uint32_t wordCounter, const uint32_t *word, const uint8_t *fedIds,
398
398
uint16_t *xx, uint16_t *yy, uint16_t *adc,
399
399
uint32_t *pdigi, uint32_t *rawIdArr, uint16_t *moduleId,
@@ -442,7 +442,7 @@ namespace pixelgpudetails {
442
442
443
443
uint32_t index = fedId * MAX_LINK * MAX_ROC + (link -1 ) * MAX_ROC + roc;
444
444
if (useQualityInfo) {
445
- skipROC = cablingMap. badRocs [index ];
445
+ skipROC = cablingMap-> badRocs [index ];
446
446
if (skipROC) continue ;
447
447
}
448
448
skipROC = modToUnp[index ];
@@ -510,7 +510,7 @@ namespace pixelgpudetails {
510
510
511
511
// Interface to outside
512
512
void SiPixelRawToClusterGPUKernel::makeClustersAsync (
513
- const SiPixelFedCablingMapGPU& cablingMap,
513
+ const SiPixelFedCablingMapGPU * cablingMap,
514
514
const unsigned char *modToUnp,
515
515
const SiPixelGainForHLTonGPU *gains,
516
516
const WordFedAppender& wordFed,
0 commit comments