CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CAHitNtupletGeneratorOnGPU.h
Go to the documentation of this file.
1 #ifndef RecoPixelVertexing_PixelTriplets_plugins_CAHitNtupletGeneratorOnGPU_h
2 #define RecoPixelVertexing_PixelTriplets_plugins_CAHitNtupletGeneratorOnGPU_h
3 
4 #include <cuda_runtime.h>
7 
12 
14 #include "HelixFitOnGPU.h"
15 
16 #include "GPUCACell.h"
17 
18 namespace edm {
19  class Event;
20  class EventSetup;
22 } // namespace edm
23 
25 public:
29 
34 
38 
39 public:
41  : CAHitNtupletGeneratorOnGPU(cfg, iC) {}
43 
45 
47  static const char* fillDescriptionsLabel() { return "caHitNtupletOnGPU"; }
48 
49  PixelTrackHeterogeneous makeTuplesAsync(TrackingRecHit2DGPU const& hits_d, float bfield, cudaStream_t stream) const;
50 
51  PixelTrackHeterogeneous makeTuples(TrackingRecHit2DCPU const& hits_d, float bfield) const;
52 
53 private:
54  void buildDoublets(HitsOnCPU const& hh, cudaStream_t stream) const;
55 
56  void hitNtuplets(HitsOnCPU const& hh, const edm::EventSetup& es, bool useRiemannFit, cudaStream_t cudaStream);
57 
58  void launchKernels(HitsOnCPU const& hh, bool useRiemannFit, cudaStream_t cudaStream) const;
59 
61 
62  Counters* m_counters = nullptr;
63 };
64 
65 #endif // RecoPixelVertexing_PixelTriplets_plugins_CAHitNtupletGeneratorOnGPU_h
void buildDoublets(HitsOnCPU const &hh, cudaStream_t stream) const
tuple cfg
Definition: looper.py:296
TrackingRecHit2DHeterogeneous< cms::cudacompat::GPUTraits > TrackingRecHit2DGPU
void hitNtuplets(HitsOnCPU const &hh, const edm::EventSetup &es, bool useRiemannFit, cudaStream_t cudaStream)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
static void fillDescriptions(edm::ParameterSetDescription &desc)
TrackSoA::HitContainer HitContainer
TrackSoAHeterogeneousT< maxNumber()> TrackSoA
pixelTrack::HitContainer HitContainer
TrackingRecHit2DSOAView::hindex_type hindex_type
CAHitNtupletGeneratorOnGPU(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
PixelTrackHeterogeneous makeTuples(TrackingRecHit2DCPU const &hits_d, float bfield) const
static const char * fillDescriptionsLabel()
void launchKernels(HitsOnCPU const &hh, bool useRiemannFit, cudaStream_t cudaStream) const
PixelTrackHeterogeneous makeTuplesAsync(TrackingRecHit2DGPU const &hits_d, float bfield, cudaStream_t stream) const
auto const & hh