140 auto const& hMap = iSetup.getData(
mapToken_);
153 std::optional<cms::alpakatools::device_buffer<Device, unsigned char[]>> modulesToUnpackRegional;
154 const unsigned char* modulesToUnpack;
157 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #feds: " <<
regions_->nFEDs();
158 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #modules (BPIX,EPIX,total): " <<
regions_->nBarrelModules()
163 modulesToUnpack = modulesToUnpackRegional->data();
165 modulesToUnpack = hMap->modToUnpDefault();
173 unsigned int wordCounter = 0;
174 unsigned int fedCounter = 0;
175 bool errorsInEvent =
false;
177 std::vector<cms_uint32_t const*>
start(
fedIds_.size(),
nullptr);
178 std::vector<ptrdiff_t> words(
fedIds_.size(), 0);
181 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
202 if (not errorcheck.checkCRC(errorsInEvent,
fedId, trailer,
errors_)) {
208 bool moreHeaders =
true;
209 while (moreHeaders) {
212 moreHeaders = headerStatus;
216 bool moreTrailers =
true;
218 while (moreTrailers) {
220 bool trailerStatus = errorcheck.checkTrailer(errorsInEvent,
fedId,
nWords, trailer,
errors_);
221 moreTrailers = trailerStatus;
227 assert(0 == (ew - bw) % 2);
230 words[
i] = (ew - bw);
231 wordCounter += (ew - bw);
239 pixelDetails::WordFedAppender wordFedAppender(
iEvent.queue(),
nDigis_);
240 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
const bool includeErrors_
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)
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
const SiPixelFedCablingMap * cablingMap_
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher_
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingMapToken_
static MessageDrop * instance()
const SiPixelClusterThresholds clusterThresholds_
const device::ESGetToken< SiPixelMappingDevice, SiPixelMappingSoARecord > mapToken_
std::vector< unsigned int > fedIds() const
unsigned int cms_uint32_t
std::vector< unsigned int > fedIds_
PixelDataFormatter::Errors errors_
edm::EDGetTokenT< FEDRawDataCollection > rawGetToken_
bool check(const edm::EventSetup &iSetup)
std::string version() const override
std::unique_ptr< SiPixelFedCablingTree > cabling_
const device::ESGetToken< SiPixelGainCalibrationForHLTDevice, SiPixelGainCalibrationForHLTSoARcd > gainsToken_
unsigned long long cms_uint64_t
ALPAKA_FN_HOST_ACC ALPAKA_FN_ACC static ALPAKA_FN_INLINE cms::alpakatools::device_buffer< Device, unsigned char[]> getModToUnpRegionalAsync(std::set< unsigned int > const &modules, const SiPixelFedCablingTree *cabling, std::vector< unsigned int > const &fedIds, Queue &queue)
std::unique_ptr< PixelUnpackingRegions > regions_