154 <<
") differs the one from SiPixelROCsStatusAndMappingWrapper. Please fix your configuration.";
157 const auto* gpuMap = hgpuMap->getGPUProductAsync(ctx.stream());
161 const auto* gpuGains = hgains->getGPUProductAsync(ctx.stream());
164 const unsigned char* gpuModulesToUnpack;
168 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #feds: " <<
regions_->nFEDs();
169 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #modules (BPIX,EPIX,total): " <<
regions_->nBarrelModules() <<
" " 171 modulesToUnpackRegional = hgpuMap->getModToUnpRegionalAsync(*(
regions_->modulesToUnpack()), ctx.stream());
172 gpuModulesToUnpack = modulesToUnpackRegional.get();
174 gpuModulesToUnpack = hgpuMap->getModToUnpAllAsync(ctx.stream());
182 fedIds_ = cablingMap->fedIds();
183 cabling_ = cablingMap->cablingTree();
192 unsigned int wordCounter = 0;
193 unsigned int fedCounter = 0;
194 bool errorsInEvent =
false;
197 std::vector<cms_uint32_t const*>
start(
fedIds_.size(),
nullptr);
198 std::vector<ptrdiff_t> words(
fedIds_.size(), 0);
202 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
224 if (not errorcheck.checkCRC(errorsInEvent,
fedId, trailer,
errors_)) {
231 bool moreHeaders =
true;
232 while (moreHeaders) {
235 moreHeaders = headerStatus;
239 bool moreTrailers =
true;
241 while (moreTrailers) {
243 bool trailerStatus = errorcheck.checkTrailer(errorsInEvent,
fedId,
nWords, trailer,
errors_);
244 moreTrailers = trailerStatus;
250 assert(0 == (ew - bw) % 2);
253 words[
i] = (ew - bw);
254 wordCounter += (ew - bw);
264 typename GPUAlgo::WordFedAppender wordFedAppender(
nDigis_, ctx.stream());
265 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
PixelDataFormatter::Errors errors_
void makePhase1ClustersAsync(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)
edm::ESGetToken< SiPixelROCsStatusAndMappingWrapper, CkfComponentsRecord > gpuMapToken_
std::vector< unsigned int > fedIds_
static MessageDrop * instance()
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
const SiPixelClusterThresholds clusterThresholds_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingMapToken_
const SiPixelFedCablingMap * cablingMap_
edm::ESGetToken< SiPixelGainCalibrationForHLTGPU, SiPixelGainCalibrationForHLTGPURcd > gainsToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
cms::cuda::ContextState ctxState_
unsigned int cms_uint32_t
std::unique_ptr< PixelUnpackingRegions > regions_
bool check(const edm::EventSetup &iSetup)
edm::EDGetTokenT< FEDRawDataCollection > rawGetToken_
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const
const bool includeErrors_
unsigned long long cms_uint64_t
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher_
std::unique_ptr< SiPixelFedCablingTree > cabling_