1 #ifndef CondFormats_SiPixelObjects_interface_alpaka_SiPixelMappingUtilities_h 2 #define CondFormats_SiPixelObjects_interface_alpaka_SiPixelMappingUtilities_h 7 #include <alpaka/alpaka.hpp> 22 return view.hasQuality();
28 std::vector<unsigned int>
const&
fedIds,
33 unsigned int startFed =
fedIds.front();
34 unsigned int endFed =
fedIds.back() - 1;
39 for (
unsigned int fed = startFed; fed <= endFed; fed++) {
44 if (pixelRoc !=
nullptr) {
47 modToUnpHost[
index] =
true;
54 alpaka::memcpy(
queue, modToUnpDevice, modToUnpHost);
56 return modToUnpDevice;
60 #endif //CondFormats_SiPixelObjects_interface_alpaka_SiPixelMappingUtilities_h
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
ALPAKA_ACCELERATOR_NAMESPACE::Queue Queue
constexpr unsigned int MAX_ROC
ALPAKA_FN_HOST_ACC ALPAKA_FN_ACC static ALPAKA_FN_INLINE bool hasQuality(const SiPixelMappingSoAConstView &view)
constexpr unsigned int MAX_SIZE
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)
constexpr unsigned int MAX_LINK
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.