1 #ifndef RecoLocalTracker_SiPixelClusterizer_SiPixelRawToClusterKernel_h 2 #define RecoLocalTracker_SiPixelClusterizer_SiPixelRawToClusterKernel_h 110 return (row << thePacking.row_shift) | (
col << thePacking.column_shift) | (
adc << thePacking.adc_shift);
115 return (row << thePacking.column_width) |
col;
126 :
word_{cms::alpakatools::make_host_buffer<unsigned int[]>(
queue, words)},
127 fedId_{cms::alpakatools::make_host_buffer<unsigned char[]>(
queue, words)} {};
130 std::memcpy(
word_.data() + wordCounterGPU,
src,
sizeof(uint32_t) * length);
131 std::memset(
fedId_.data() + wordCounterGPU / 2,
fedId - 1200, length / 2);
141 template <
typename TrackerTraits>
156 const unsigned char* modToUnp,
158 const WordFedAppender& wordFed,
159 const uint32_t wordCounter,
160 const uint32_t fedCounter,
168 const uint32_t numDigis);
189 std::optional<SiPixelDigisSoACollection>
digis_d;
197 #endif // plugin_SiPixelClusterizer_alpaka_SiPixelRawToClusterKernel_h cms::alpakatools::host_buffer< unsigned char[]> fedId_
constexpr uint32_t bladeMask
void makePhase1ClustersAsync(Queue &queue, const SiPixelClusterThresholds clusterThresholds, const SiPixelMappingSoAConstView &cablingMap, const unsigned char *modToUnp, const SiPixelGainCalibrationForHLTSoAConstView &gains, const WordFedAppender &wordFed, const uint32_t wordCounter, const uint32_t fedCounter, bool useQualityInfo, bool includeErrors, bool debug)
constexpr uint32_t moduleStartBit
cms::alpakatools::host_buffer< unsigned int[]> word_
constexpr uint32_t DCOL_mask
constexpr uint32_t ERROR_mask
constexpr uint32_t ADC_bits
constexpr uint32_t ADC_mask
cms::alpakatools::host_buffer< uint32_t[]> nModules_Clusters_h
constexpr uint32_t LINK_bits_l1
constexpr uint32_t layerMask
constexpr uint32_t numRowsInRoc
constexpr uint32_t ROC_shift
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr pixelchannelidentifierimpl::Packing packing()
std::optional< SiPixelDigisSoACollection > digis_d
SiPixelClustersSoACollection getClusters()
void makePhase2ClustersAsync(Queue &queue, const SiPixelClusterThresholds clusterThresholds, SiPixelDigisSoAView &digis_view, const uint32_t numDigis)
~SiPixelRawToClusterKernel()=default
constexpr uint32_t DCOL_bits
ALPAKA_ACCELERATOR_NAMESPACE::Queue Queue
constexpr uint32_t panelMask
constexpr uint32_t OMIT_ERR_shift
WordFedAppender(Queue &queue, uint32_t words)
constexpr uint32_t OMIT_ERR_mask
constexpr uint32_t PXID_bits
static constexpr Packing thePacking
std::optional< SiPixelDigiErrorsSoACollection > digiErrors_d
SiPixelRawToClusterKernel()
std::conditional_t< std::is_same_v< Device, alpaka::DevCpu >, SiPixelDigisHost, SiPixelDigisDevice< Device > > SiPixelDigisSoACollection
constexpr uint32_t ADC_shift
constexpr uint32_t DCOL_shift
constexpr uint32_t OMIT_ERR_bits
constexpr uint32_t pixelToChannel(int row, int col)
constexpr unsigned int MAX_ROC
SiPixelRawToClusterKernel & operator=(const SiPixelRawToClusterKernel &)=delete
constexpr uint32_t PXID_shift
constexpr uint32_t ROC_bits
constexpr uint32_t ROC_mask
constexpr uint32_t moduleMask
constexpr uint32_t maxROCIndex
constexpr uint32_t diskStartBit
constexpr float gains[NGAINS]
constexpr uint32_t ROW_bits_l1
constexpr uint32_t panelStartBit
std::optional< SiPixelClustersSoACollection > clusters_d
constexpr uint32_t LINK_bits
constexpr uint32_t layerStartBit
constexpr uint32_t COL_shift
constexpr uint32_t LINK_shift
constexpr uint32_t bladeStartBit
constexpr uint32_t MAX_WORD
constexpr uint32_t ladderMask
constexpr unsigned int MAX_SIZE
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr uint32_t pack(uint32_t row, uint32_t col, uint32_t adc, uint32_t flag=0)
constexpr uint32_t COL_mask
constexpr uint32_t COL_bits_l1
std::conditional_t< std::is_same_v< Device, alpaka::DevCpu >, SiPixelDigiErrorsHost, SiPixelDigiErrorsDevice< Device > > SiPixelDigiErrorsSoACollection
constexpr uint32_t ROW_shift
void initializeWordFed(int fedId, unsigned int wordCounterGPU, const uint32_t *src, unsigned int length)
constexpr uint32_t numColsInRoc
constexpr uint32_t ROW_mask
constexpr uint32_t LINK_mask
constexpr uint32_t ladderStartBit
constexpr unsigned int MAX_LINK
SiPixelDigisSoACollection getDigis()
constexpr uint32_t diskMask
constexpr uint32_t PXID_mask
SiPixelDigiErrorsSoACollection getErrors()
uint16_t *__restrict__ uint16_t const *__restrict__ adc
std::conditional_t< std::is_same_v< Device, alpaka::DevCpu >, SiPixelClustersHost, SiPixelClustersDevice< Device > > SiPixelClustersSoACollection
constexpr uint32_t ROC_bits_l1