1 #ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuCalibPixel_h 2 #define RecoLocalTracker_SiPixelClusterizer_plugins_gpuCalibPixel_h 31 template <
bool isRun2>
33 uint16_t
const* __restrict__ x,
34 uint16_t
const* __restrict__ y,
40 uint32_t* __restrict__ clusModuleStart
55 bool isDeadColumn =
false, isNoisyColumn =
false;
59 auto ret = ped->getPedAndGain(
id[
i],
col, row, isDeadColumn, isNoisyColumn);
63 if (isDeadColumn | isNoisyColumn) {
64 printf(
"bad pixel at %d in %d\n",
i,
id[
i]);
72 vcal = vcal * conversionFactor +
offset;
84 uint32_t* __restrict__ clusModuleStart
101 int adc_int =
adc[
i];
103 if constexpr (
mode < 0)
110 constexpr int8_t ds = int8_t(dspp <= 1 ? 1 : (dspp - 1) * (dspp - 1));
127 #endif // RecoLocalTracker_SiPixelClusterizer_plugins_gpuCalibPixel_h
constexpr float VCaltoElectronOffset_L1
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ nClustersInModule
ret
prodAgent to be discontinued
constexpr float VCaltoElectronGain_L1
constexpr float VCaltoElectronOffset
constexpr int VCalChargeThreshold
__global__ void calibDigis(uint16_t *id, uint16_t const *__restrict__ x, uint16_t const *__restrict__ y, uint16_t *adc, SiPixelGainForHLTonGPU const *__restrict__ ped, int numElements, uint32_t *__restrict__ moduleStart, uint32_t *__restrict__ nClustersInModule, uint32_t *__restrict__ clusModuleStart)
constexpr float ElectronPerADCGain
constexpr uint16_t numberOfModules
constexpr uint16_t Phase2DigiBaseline
constexpr uint16_t invalidModuleId
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ int32_t *__restrict__ uint32_t numElements
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ moduleStart
constexpr int8_t Phase2ReadoutMode
constexpr uint16_t numberOfModules
__global__ void calibDigisPhase2(uint16_t *id, uint16_t *adc, int numElements, uint32_t *__restrict__ moduleStart, uint32_t *__restrict__ nClustersInModule, uint32_t *__restrict__ clusModuleStart)
constexpr uint8_t Phase2KinkADC
constexpr float VCaltoElectronGain
uint16_t *__restrict__ uint16_t const *__restrict__ adc