37 template <
typename TrackerTraits>
57 template <
typename TrackerTraits>
60 tBeamSpot(consumes(iConfig.getParameter<
edm::
InputTag>(
"beamSpot"))),
61 tokenClusters_(consumes(iConfig.getParameter<
edm::
InputTag>(
"src"))),
62 tokenDigi_(consumes(iConfig.getParameter<
edm::
InputTag>(
"src"))),
63 tokenHit_(produces()) {
65 #ifdef ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED 66 if constexpr (std::is_same_v<TrackerTraits, pixelTopology::Phase1>) {
67 producesTemporarily(
"edm::DeviceProduct<alpaka_cuda_async::TrackingRecHitSoAPhase1>");
72 template <
typename TrackerTraits>
80 cpe += TrackerTraits::nameModifier;
86 template <
typename TrackerTraits>
90 auto& fcpe = es.
getData(cpeToken_);
94 auto const& digis =
iEvent.get(tokenDigi_);
96 auto const&
bs =
iEvent.get(tBeamSpot);
99 Algo_.makeHitsAsync(digis,
clusters,
bs.data(), fcpe.const_buffer().data(),
iEvent.queue()));
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
~SiPixelRecHitAlpaka() override=default
const device::EDPutToken< TrackingRecHitsSoACollection< TrackerTraits > > tokenHit_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const device::EDGetToken< SiPixelClustersSoACollection > tokenClusters_
SiPixelRecHitAlpaka< pixelTopology::Phase1 > SiPixelRecHitAlpakaPhase1
const device::EDGetToken< SiPixelDigisSoACollection > tokenDigi_
T const & getData(edm::ESGetToken< T, R > const &iToken) const
const device::EDGetToken< BeamSpotDevice > tBeamSpot
SiPixelRecHitAlpaka< pixelTopology::Phase2 > SiPixelRecHitAlpakaPhase2
void produce(edm::StreamID streamID, device::Event &iEvent, const device::EventSetup &iSetup) const override
#define DEFINE_FWK_ALPAKA_MODULE(name)
const device::ESGetToken< PixelCPEFastParams< TrackerTraits >, PixelCPEFastParamsRecord > cpeToken_
const pixelgpudetails::PixelRecHitKernel< TrackerTraits > Algo_
SiPixelRecHitAlpaka(const edm::ParameterSet &iConfig)