1 #include <cuda_runtime.h> 51 : onGPU_(iConfig.getParameter<
bool>(
"onGPU")), tokenField_(
esConsumes()), gpuAlgo_(iConfig, consumesCollector()) {
55 tokenTrackGPU_ = produces<cms::cuda::Product<PixelTrackHeterogeneous>>();
65 desc.add<
bool>(
"onGPU",
true);
69 descriptions.
add(
"pixelTracksCUDA",
desc);
T getParameter(std::string const &) const
~CAHitNtupletCUDA() override=default
edm::EDGetTokenT< TrackingRecHit2DCPU > tokenHitCPU_
void produce(edm::StreamID streamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDPutTokenT< PixelTrackHeterogeneous > tokenTrackCPU_
static void fillDescriptions(edm::ParameterSetDescription &desc)
CAHitNtupletGeneratorOnGPU gpuAlgo_
bool getData(T &iHolder) const
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tokenField_
edm::EDGetTokenT< cms::cuda::Product< TrackingRecHit2DGPU > > tokenHitGPU_
PixelTrackHeterogeneous makeTuplesAsync(TrackingRecHit2DGPU const &hits_d, float bfield, cudaStream_t stream) const
CAHitNtupletCUDA(const edm::ParameterSet &iConfig)
PixelTrackHeterogeneous makeTuples(TrackingRecHit2DCPU const &hits_d, float bfield) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDPutTokenT< cms::cuda::Product< PixelTrackHeterogeneous > > tokenTrackGPU_