141 <<
") differs the one from SiPixelROCsStatusAndMappingWrapper. Please fix your configuration.";
144 const auto* gpuMap = hgpuMap->getGPUProductAsync(ctx.stream());
148 const auto* gpuGains = hgains->getGPUProductAsync(ctx.stream());
151 const unsigned char* gpuModulesToUnpack;
155 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #feds: " <<
regions_->nFEDs();
156 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #modules (BPIX,EPIX,total): " <<
regions_->nBarrelModules() <<
" " 158 modulesToUnpackRegional = hgpuMap->getModToUnpRegionalAsync(*(
regions_->modulesToUnpack()), ctx.stream());
159 gpuModulesToUnpack = modulesToUnpackRegional.get();
161 gpuModulesToUnpack = hgpuMap->getModToUnpAllAsync(ctx.stream());
169 fedIds_ = cablingMap->fedIds();
170 cabling_ = cablingMap->cablingTree();
179 unsigned int wordCounter = 0;
180 unsigned int fedCounter = 0;
181 bool errorsInEvent =
false;
184 std::vector<cms_uint32_t const*>
start(
fedIds_.size(),
nullptr);
185 std::vector<ptrdiff_t> words(
fedIds_.size(), 0);
189 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
211 if (not errorcheck.checkCRC(errorsInEvent,
fedId, trailer,
errors_)) {
218 bool moreHeaders =
true;
219 while (moreHeaders) {
222 moreHeaders = headerStatus;
226 bool moreTrailers =
true;
228 while (moreTrailers) {
230 bool trailerStatus = errorcheck.checkTrailer(errorsInEvent,
fedId, nWords, trailer,
errors_);
231 moreTrailers = trailerStatus;
237 assert(0 == (ew - bw) % 2);
240 words[
i] = (ew - bw);
241 wordCounter += (ew - bw);
252 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
std::unique_ptr< SiPixelFedCablingTree > cabling_
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher_
cms::cuda::ContextState ctxState_
void initializeWordFed(int fedId, unsigned int index, cms_uint32_t const *src, unsigned int length)
edm::ESGetToken< SiPixelGainCalibrationForHLTGPU, SiPixelGainCalibrationForHLTGPURcd > gainsToken_
static MessageDrop * instance()
const SiPixelFedCablingMap * cablingMap_
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
const bool includeErrors_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
unsigned int cms_uint32_t
std::vector< unsigned int > fedIds_
bool check(const edm::EventSetup &iSetup)
const SiPixelClusterThresholds clusterThresholds_
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const
pixelgpudetails::SiPixelRawToClusterGPUKernel gpuAlgo_
void makeClustersAsync(bool isRun2, const SiPixelClusterThresholds clusterThresholds, const SiPixelROCsStatusAndMapping *cablingMap, const unsigned char *modToUnp, const SiPixelGainForHLTonGPU *gains, const WordFedAppender &wordFed, SiPixelFormatterErrors &&errors, const uint32_t wordCounter, const uint32_t fedCounter, bool useQualityInfo, bool includeErrors, bool debug, cudaStream_t stream)
unsigned long long cms_uint64_t
std::unique_ptr< PixelUnpackingRegions > regions_
edm::ESGetToken< SiPixelROCsStatusAndMappingWrapper, CkfComponentsRecord > gpuMapToken_
PixelDataFormatter::Errors errors_
edm::EDGetTokenT< FEDRawDataCollection > rawGetToken_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingMapToken_