142 <<
") differs the one from SiPixelROCsStatusAndMappingWrapper. Please fix your configuration.";
145 const auto* gpuMap = hgpuMap->getGPUProductAsync(ctx.stream());
149 const auto* gpuGains = hgains->getGPUProductAsync(ctx.stream());
152 const unsigned char* gpuModulesToUnpack;
156 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #feds: " <<
regions_->nFEDs();
157 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #modules (BPIX,EPIX,total): " <<
regions_->nBarrelModules() <<
" " 159 modulesToUnpackRegional = hgpuMap->getModToUnpRegionalAsync(*(
regions_->modulesToUnpack()), ctx.stream());
160 gpuModulesToUnpack = modulesToUnpackRegional.get();
162 gpuModulesToUnpack = hgpuMap->getModToUnpAllAsync(ctx.stream());
170 fedIds_ = cablingMap->fedIds();
171 cabling_ = cablingMap->cablingTree();
180 unsigned int wordCounter = 0;
181 unsigned int fedCounter = 0;
182 bool errorsInEvent =
false;
185 std::vector<cms_uint32_t const*>
start(
fedIds_.size(),
nullptr);
186 std::vector<ptrdiff_t> words(
fedIds_.size(), 0);
190 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
212 if (not errorcheck.checkCRC(errorsInEvent,
fedId, trailer,
errors_)) {
219 bool moreHeaders =
true;
220 while (moreHeaders) {
223 moreHeaders = headerStatus;
227 bool moreTrailers =
true;
229 while (moreTrailers) {
231 bool trailerStatus = errorcheck.checkTrailer(errorsInEvent,
fedId,
nWords, trailer,
errors_);
232 moreTrailers = trailerStatus;
238 assert(0 == (ew - bw) % 2);
241 words[
i] = (ew - bw);
242 wordCounter += (ew - bw);
253 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_