4#ifndef ACTSGPUEVENT_DEVICESEEDCONTAINERS_H
5#define ACTSGPUEVENT_DEVICESEEDCONTAINERS_H
10#include "GaudiKernel/StatusCode.h"
12#include "traccc/definitions/qualifiers.hpp"
13#include <traccc/edm/seed_collection.hpp>
14#include <traccc/edm/spacepoint_collection.hpp>
15#include <vecmem/containers/data/vector_view.hpp>
16#include <vecmem/edm/container.hpp>
17#include <vecmem/memory/memory_resource.hpp>
18#include <vecmem/utils/copy.hpp>
20#include <cuda_runtime_api.h>
36template <
typename BASE>
40 using BASE::operator=;
59 , vecmem::edm::type::vector<std::array<unsigned int, kDeviceSeedNSp>>
61 , vecmem::edm::type::vector<float>
68 , vecmem::memory_resource & mr
69 , vecmem::copy
const & copy
71 ,
const traccc::edm::seed_collection::const_view & input_seeds
72 ,
const traccc::edm::spacepoint_collection::const_view & input_spacepoints
73 ,
const vecmem::data::vector_view<const unsigned int> & meas_to_host_sp
74 , std::unique_ptr<DeviceSeedContainer::buffer> & output_seeds
One entry per traccc seed, in seed order.
TRACCC_HOST_DEVICE const auto & sp_indices() const
TRACCC_HOST_DEVICE auto & sp_indices()
TRACCC_HOST_DEVICE auto & quality()
TRACCC_HOST_DEVICE const auto & quality() const
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
constexpr unsigned int kDeviceSeedInvalidIndex
No host index marker (as in measMap).
StatusCode convertSeedsOnGPU(cudaStream_t stream, vecmem::memory_resource &mr, vecmem::copy const ©, size_type nb_seeds, const traccc::edm::seed_collection::const_view &input_seeds, const traccc::edm::spacepoint_collection::const_view &input_spacepoints, const vecmem::data::vector_view< const unsigned int > &meas_to_host_sp, std::unique_ptr< DeviceSeedContainer::buffer > &output_seeds)
Seeds -> host SP indices + quality.
constexpr unsigned int kDeviceSeedNSp
Spacepoints per seed (bottom, middle, top).
vecmem::edm::container< DeviceSeed, vecmem::edm::type::vector< std::array< unsigned int, kDeviceSeedNSp > >, vecmem::edm::type::vector< float > > DeviceSeedContainer