@@ -179,9 +179,9 @@ namespace pixelgpudetails {
179
179
return (1 ==((rawId>>25 )&0x7 ));
180
180
}
181
181
182
- __device__ pixelgpudetails::DetIdGPU getRawId (SiPixelFedCablingMapGPU Map, uint32_t fed, uint32_t link, uint32_t roc) {
182
+ __device__ pixelgpudetails::DetIdGPU getRawId (const SiPixelFedCablingMapGPU * Map, uint32_t fed, uint32_t link, uint32_t roc) {
183
183
uint32_t index = fed * MAX_LINK * MAX_ROC + (link -1 ) * MAX_ROC + roc;
184
- pixelgpudetails::DetIdGPU detId = { Map. RawId [index ], Map. rocInDet [index ], Map. moduleId [index ] };
184
+ pixelgpudetails::DetIdGPU detId = { Map-> RawId [index ], Map-> rocInDet [index ], Map-> moduleId [index ] };
185
185
return detId;
186
186
}
187
187
@@ -314,7 +314,7 @@ namespace pixelgpudetails {
314
314
return ((dcol < 26 ) & (2 <= pxid) & (pxid < 162 ));
315
315
}
316
316
317
- __device__ uint32_t checkROC (uint32_t errorWord, uint32_t fedId, uint32_t link, SiPixelFedCablingMapGPU Map, bool debug = false )
317
+ __device__ uint32_t checkROC (uint32_t errorWord, uint32_t fedId, uint32_t link, const SiPixelFedCablingMapGPU * Map, bool debug = false )
318
318
{
319
319
int errorType = (errorWord >> pixelgpudetails::ROC_shift) & pixelgpudetails::ERROR_mask;
320
320
if (errorType < 25 ) return false ;
@@ -324,8 +324,8 @@ namespace pixelgpudetails {
324
324
case (25 ) : {
325
325
errorFound = true ;
326
326
uint32_t index = fedId * MAX_LINK * MAX_ROC + (link -1 ) * MAX_ROC + 1 ;
327
- if (index > 1 && index <= Map. size ) {
328
- if (!(link == Map. link [index ] && 1 == Map. roc [index ])) errorFound = false ;
327
+ if (index > 1 && index <= Map-> size ) {
328
+ if (!(link == Map-> link [index ] && 1 == Map-> roc [index ])) errorFound = false ;
329
329
}
330
330
if (debug&errorFound) printf (" Invalid ROC = 25 found (errorType = 25)\n " );
331
331
break ;
@@ -378,7 +378,7 @@ namespace pixelgpudetails {
378
378
return errorFound? errorType : 0 ;
379
379
}
380
380
381
- __device__ uint32_t getErrRawID (uint32_t fedId, uint32_t errWord, uint32_t errorType, SiPixelFedCablingMapGPU Map, bool debug = false )
381
+ __device__ uint32_t getErrRawID (uint32_t fedId, uint32_t errWord, uint32_t errorType, const SiPixelFedCablingMapGPU * Map, bool debug = false )
382
382
{
383
383
uint32_t rID = 0xffffffff ;
384
384
@@ -488,7 +488,7 @@ namespace pixelgpudetails {
488
488
489
489
490
490
// Kernel to perform Raw to Digi conversion
491
- __global__ void RawToDigi_kernel (SiPixelFedCablingMapGPU Map, const unsigned char *modToUnp,
491
+ __global__ void RawToDigi_kernel (const SiPixelFedCablingMapGPU * Map, const unsigned char *modToUnp,
492
492
const uint32_t wordCounter, const uint32_t *Word, const uint8_t *fedIds,
493
493
uint16_t * XX, uint16_t * YY, uint16_t * ADC,
494
494
uint32_t * pdigi, uint32_t *rawIdArr, uint16_t * moduleId,
@@ -541,7 +541,7 @@ namespace pixelgpudetails {
541
541
uint32_t index = fedId * MAX_LINK * MAX_ROC + (link -1 ) * MAX_ROC + roc;
542
542
if (useQualityInfo) {
543
543
544
- skipROC = Map. badRocs [index ];
544
+ skipROC = Map-> badRocs [index ];
545
545
if (skipROC) continue ;
546
546
547
547
}
@@ -610,7 +610,7 @@ namespace pixelgpudetails {
610
610
611
611
// Interface to outside
612
612
void SiPixelRawToClusterGPUKernel::makeClustersAsync (
613
- const SiPixelFedCablingMapGPU& cablingMap,
613
+ const SiPixelFedCablingMapGPU * cablingMap,
614
614
const unsigned char *modToUnp,
615
615
const SiPixelGainForHLTonGPU *gains,
616
616
const uint32_t wordCounter, const uint32_t fedCounter,
0 commit comments