140 [[maybe_unused]]
auto const& hMap = iSetup.getData(
mapToken_);
143 auto modulesToUnpackRegional =
145 const unsigned char* modulesToUnpack;
156 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #feds: " <<
regions_->nFEDs();
157 LogDebug(
"SiPixelRawToCluster") <<
"region2unpack #modules (BPIX,EPIX,total): " <<
regions_->nBarrelModules()
162 modulesToUnpack = modulesToUnpackRegional.data();
164 modulesToUnpack = hMap->modToUnpDefault();
172 unsigned int wordCounter = 0;
173 unsigned int fedCounter = 0;
174 bool errorsInEvent =
false;
176 std::vector<cms_uint32_t const*>
start(
fedIds_.size(),
nullptr);
177 std::vector<ptrdiff_t> words(
fedIds_.size(), 0);
180 for (uint32_t
i = 0;
i <
fedIds_.size(); ++
i) {
201 if (not errorcheck.checkCRC(errorsInEvent,
fedId, trailer,
errors_)) {
207 bool moreHeaders =
true;
208 while (moreHeaders) {
211 moreHeaders = headerStatus;
215 bool moreTrailers =
true;
217 while (moreTrailers) {
219 bool trailerStatus = errorcheck.checkTrailer(errorsInEvent,
fedId,
nWords, trailer,
errors_);
220 moreTrailers = trailerStatus;
226 assert(0 == (ew - bw) % 2);
229 words[
i] = (ew - bw);
230 wordCounter += (ew - bw);
238 pixelDetails::WordFedAppender wordFedAppender(
nDigis_);
239 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_
PortableCollection< SiPixelGainCalibrationForHLTSoA > SiPixelGainCalibrationForHLTDevice
std::vector< unsigned int > fedIds() const
unsigned int cms_uint32_t
constexpr float gains[NGAINS]
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_
constexpr unsigned int MAX_SIZE
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_