1 #ifndef RecoLocalTracker_SiPixelClusterizer_plugins_alpaka_CalibPixel_h 2 #define RecoLocalTracker_SiPixelClusterizer_plugins_alpaka_CalibPixel_h 9 #include <alpaka/alpaka.hpp> 25 template <
bool debug = false>
27 template <
typename TAcc>
41 clus_view[0].clusModuleStart() = 0;
42 clus_view[0].moduleStart() = 0;
45 clus_view[
i].clusInModule() = 0;
53 bool isDeadColumn =
false, isNoisyColumn =
false;
59 if (isDeadColumn | isNoisyColumn) {
61 printf(
"bad pixel at %d in %d\n",
i, dvgi.moduleId());
70 auto old_adc = dvgi.adc();
76 "module %d pixel %d -> old_adc = %d; vcal = %.2f; conversionFactor = %.2f; offset = %.2f; new_adc = " 93 template <
typename TAcc>
106 clus_view[0].clusModuleStart() = clus_view[0].moduleStart() = 0;
110 clus_view[
i].clusInModule() = 0;
117 int adc_int = dvgi.adc();
125 const int8_t ds = int8_t(dspp <= 1 ? 1 : (dspp - 1) * (dspp - 1));
140 #endif // RecoLocalTracker_SiPixelClusterizer_plugins_alpaka_CalibPixel_h
ALPAKA_FN_ACC void operator()(const TAcc &acc, SiPixelClusterThresholds clusterThresholds, SiPixelDigisSoAView view, SiPixelClustersSoAView clus_view, int numElements) const
ret
prodAgent to be discontinued
const float vCaltoElectronOffset
const int8_t phase2ReadoutMode
constexpr uint16_t numberOfModules
const float vCaltoElectronGain
const uint16_t phase2DigiBaseline
const uint8_t phase2KinkADC
ALPAKA_FN_ACC void operator()(const TAcc &acc, SiPixelClusterThresholds clusterThresholds, SiPixelDigisSoAView view, SiPixelClustersSoAView clus_view, const SiPixelGainCalibrationForHLTSoAConstView gains, int numElements) const
const float vCaltoElectronGain_L1
constexpr uint16_t invalidModuleId
constexpr float gains[NGAINS]
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ int32_t *__restrict__ uint32_t numElements
const float electronPerADCGain
const float vCaltoElectronOffset_L1
ALPAKA_FN_HOST_ACC ALPAKA_FN_ACC static ALPAKA_FN_INLINE std::pair< float, float > getPedAndGain(const SiPixelGainCalibrationForHLTSoAConstView &view, uint32_t moduleInd, int col, int row, bool &isDeadColumn, bool &isNoisyColumn)
constexpr uint16_t numberOfModules
constexpr uint16_t invalidModuleId