CMS 3D CMS Logo

EcalRecHitParametersGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_interface_EcalRecHitParametersGPU_h
2 #define CondFormats_EcalObjects_interface_EcalRecHitParametersGPU_h
3 
4 #include <array>
5 
9 
10 #ifndef __CUDACC__
13 #endif // __CUDACC__
14 
16 public:
17  struct Product {
22  };
23 
24 #ifndef __CUDACC__
26 
27  ~EcalRecHitParametersGPU() = default;
28 
29  Product const &getProduct(cudaStream_t) const;
30 
31  using intvec = std::reference_wrapper<std::vector<int, cms::cuda::HostAllocator<int>> const>;
32  using uint32vec = std::reference_wrapper<std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t>> const>;
33  std::tuple<intvec, intvec, uint32vec, uint32vec> getValues() const {
38  }
39 
40 private:
41  std::vector<int, cms::cuda::HostAllocator<int>> channelStatusToBeExcluded_;
42  std::vector<int, cms::cuda::HostAllocator<int>> expanded_v_DB_reco_flags_;
43  std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t>> expanded_Sizes_v_DB_reco_flags_,
45 
47 #endif // __CUDACC__
48 };
49 
50 #endif // CondFormats_EcalObjects_interface_EcalRecHitParametersGPU_h
EcalRecHitParametersGPU::channelStatusToBeExcluded_
std::vector< int, cms::cuda::HostAllocator< int > > channelStatusToBeExcluded_
Definition: EcalRecHitParametersGPU.h:41
EcalRecHitParametersGPU::Product::expanded_flagbit_v_DB_reco_flags
edm::propagate_const_array< cms::cuda::device::unique_ptr< uint32_t[]> > expanded_flagbit_v_DB_reco_flags
Definition: EcalRecHitParametersGPU.h:21
HostAllocator.h
EcalRecHitParametersGPU::Product::expanded_Sizes_v_DB_reco_flags
edm::propagate_const_array< cms::cuda::device::unique_ptr< uint32_t[]> > expanded_Sizes_v_DB_reco_flags
Definition: EcalRecHitParametersGPU.h:20
EcalRecHitParametersGPU::expanded_v_DB_reco_flags_
std::vector< int, cms::cuda::HostAllocator< int > > expanded_v_DB_reco_flags_
Definition: EcalRecHitParametersGPU.h:42
EcalRecHitParametersGPU
Definition: EcalRecHitParametersGPU.h:15
EcalRecHitParametersGPU::expanded_Sizes_v_DB_reco_flags_
std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > expanded_Sizes_v_DB_reco_flags_
Definition: EcalRecHitParametersGPU.h:43
EcalRecHitParametersGPU::getProduct
const Product & getProduct(cudaStream_t) const
Definition: EcalRecHitParametersGPU.cc:36
device_unique_ptr.h
EcalRecHitParametersGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: EcalRecHitParametersGPU.h:46
EcalRecHitParametersGPU::uint32vec
std::reference_wrapper< std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > const > uint32vec
Definition: EcalRecHitParametersGPU.h:32
EcalRecHitParametersGPU::Product
Definition: EcalRecHitParametersGPU.h:17
cms::cuda::ESProduct
Definition: ESProduct.h:19
EcalRecHitParametersGPU::getValues
std::tuple< intvec, intvec, uint32vec, uint32vec > getValues() const
Definition: EcalRecHitParametersGPU.h:33
edm::ParameterSet
Definition: ParameterSet.h:47
EcalRecHitParametersGPU::expanded_flagbit_v_DB_reco_flags_
std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > expanded_flagbit_v_DB_reco_flags_
Definition: EcalRecHitParametersGPU.h:43
EcalRecHitParametersGPU::Product::channelStatusToBeExcluded
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > channelStatusToBeExcluded
Definition: EcalRecHitParametersGPU.h:18
edm::propagate_const_array
Definition: propagate_const_array.h:61
EcalRecHitParametersGPU::intvec
std::reference_wrapper< std::vector< int, cms::cuda::HostAllocator< int > > const > intvec
Definition: EcalRecHitParametersGPU.h:31
propagate_const_array.h
EcalRecHitParametersGPU::EcalRecHitParametersGPU
EcalRecHitParametersGPU(edm::ParameterSet const &)
Definition: EcalRecHitParametersGPU.cc:9
EcalRecHitParametersGPU::~EcalRecHitParametersGPU
~EcalRecHitParametersGPU()=default
ParameterSet.h
ESProduct.h
EcalRecHitParametersGPU::Product::expanded_v_DB_reco_flags
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > expanded_v_DB_reco_flags
Definition: EcalRecHitParametersGPU.h:19