20 #ifdef ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED 21 producesTemporarily(
"edm::DeviceProduct<alpaka_cuda_async::BeamSpotDevice>");
32 hostProduct->sigmaZ =
beamspot.sigmaZ();
33 hostProduct->beamWidthX =
beamspot.BeamWidthX();
34 hostProduct->beamWidthY =
beamspot.BeamWidthY();
37 hostProduct->emittanceX =
beamspot.emittanceX();
38 hostProduct->emittanceY =
beamspot.emittanceY();
39 hostProduct->betaStar =
beamspot.betaStar();
41 if constexpr (std::is_same_v<Device, alpaka::DevCpu>) {
45 alpaka::memcpy(
event.queue(), deviceProduct.buffer(), hostProduct.const_buffer());
const device::EDPutToken< BeamSpotDevice > deviceToken_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
PortableHostObject< BeamSpotPOD > BeamSpotHost
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< reco::BeamSpot > legacyToken_
void produce(edm::StreamID, device::Event &event, device::EventSetup const &setup) const override
BeamSpotDeviceProducer(edm::ParameterSet const &config)
auto produces(std::string instanceName) noexcept
declare what type of product will make and with which optional label
#define DEFINE_FWK_ALPAKA_MODULE(name)
PortableObject< BeamSpotPOD > BeamSpotDevice