CMS 3D CMS Logo

HcalPedestalWidthsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalPedestalWidthsGPU_h
2 #define CondFormats_HcalObjects_interface_HcalPedestalWidthsGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif
12 
14 public:
15  struct Product {
32  };
33 
34 #ifndef __CUDACC__
35  // rearrange reco params
37 
38  // will trigger deallocation of Product thru ~Product
39  ~HcalPedestalWidthsGPU() = default;
40 
41  // get device pointers
42  Product const& getProduct(cudaStream_t) const;
43 
44  // as in cpu version
45  bool unitIsADC() const { return unitIsADC_; }
46 
47 private:
48  bool unitIsADC_;
50  std::vector<float, cms::cuda::HostAllocator<float>> sigma00_;
51  std::vector<float, cms::cuda::HostAllocator<float>> sigma01_;
52  std::vector<float, cms::cuda::HostAllocator<float>> sigma02_;
53  std::vector<float, cms::cuda::HostAllocator<float>> sigma03_;
54  std::vector<float, cms::cuda::HostAllocator<float>> sigma10_;
55  std::vector<float, cms::cuda::HostAllocator<float>> sigma11_;
56  std::vector<float, cms::cuda::HostAllocator<float>> sigma12_;
57  std::vector<float, cms::cuda::HostAllocator<float>> sigma13_;
58  std::vector<float, cms::cuda::HostAllocator<float>> sigma20_;
59  std::vector<float, cms::cuda::HostAllocator<float>> sigma21_;
60  std::vector<float, cms::cuda::HostAllocator<float>> sigma22_;
61  std::vector<float, cms::cuda::HostAllocator<float>> sigma23_;
62  std::vector<float, cms::cuda::HostAllocator<float>> sigma30_;
63  std::vector<float, cms::cuda::HostAllocator<float>> sigma31_;
64  std::vector<float, cms::cuda::HostAllocator<float>> sigma32_;
65  std::vector<float, cms::cuda::HostAllocator<float>> sigma33_;
66 
68 #endif
69 };
70 
71 #endif
HcalPedestalWidthsGPU::Product::sigma32
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma32
Definition: HcalPedestalWidthsGPU.h:30
HostAllocator.h
HcalPedestalWidthsGPU::sigma21_
std::vector< float, cms::cuda::HostAllocator< float > > sigma21_
Definition: HcalPedestalWidthsGPU.h:59
HcalPedestalWidthsGPU::Product::sigma13
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma13
Definition: HcalPedestalWidthsGPU.h:23
HcalPedestalWidthsGPU::Product::sigma22
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma22
Definition: HcalPedestalWidthsGPU.h:26
HcalPedestalWidthsGPU::Product::sigma11
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma11
Definition: HcalPedestalWidthsGPU.h:21
HcalPedestalWidthsGPU::sigma00_
std::vector< float, cms::cuda::HostAllocator< float > > sigma00_
Definition: HcalPedestalWidthsGPU.h:50
HcalPedestalWidthsGPU::sigma13_
std::vector< float, cms::cuda::HostAllocator< float > > sigma13_
Definition: HcalPedestalWidthsGPU.h:57
HcalPedestalWidthsGPU::~HcalPedestalWidthsGPU
~HcalPedestalWidthsGPU()=default
HcalPedestalWidthsGPU::sigma32_
std::vector< float, cms::cuda::HostAllocator< float > > sigma32_
Definition: HcalPedestalWidthsGPU.h:64
HcalPedestalWidthsGPU::HcalPedestalWidthsGPU
HcalPedestalWidthsGPU(HcalPedestalWidths const &)
Definition: HcalPedestalWidthsGPU.cc:7
HcalPedestalWidthsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition: HcalPedestalWidthsGPU.cc:72
device_unique_ptr.h
HcalPedestalWidthsGPU::Product::sigma20
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma20
Definition: HcalPedestalWidthsGPU.h:24
HcalPedestalWidthsGPU::sigma31_
std::vector< float, cms::cuda::HostAllocator< float > > sigma31_
Definition: HcalPedestalWidthsGPU.h:63
HcalPedestalWidthsGPU::Product::sigma03
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma03
Definition: HcalPedestalWidthsGPU.h:19
HcalPedestalWidths
Definition: HcalPedestalWidths.h:17
HcalPedestalWidthsGPU::Product
Definition: HcalPedestalWidthsGPU.h:15
HcalPedestalWidthsGPU
Definition: HcalPedestalWidthsGPU.h:13
cms::cuda::ESProduct
Definition: ESProduct.h:20
HcalPedestalWidthsGPU::sigma01_
std::vector< float, cms::cuda::HostAllocator< float > > sigma01_
Definition: HcalPedestalWidthsGPU.h:51
HcalPedestalWidthsGPU::sigma03_
std::vector< float, cms::cuda::HostAllocator< float > > sigma03_
Definition: HcalPedestalWidthsGPU.h:53
HcalPedestalWidthsGPU::Product::sigma21
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma21
Definition: HcalPedestalWidthsGPU.h:25
HcalPedestalWidthsGPU::sigma10_
std::vector< float, cms::cuda::HostAllocator< float > > sigma10_
Definition: HcalPedestalWidthsGPU.h:54
HcalPedestalWidthsGPU::sigma02_
std::vector< float, cms::cuda::HostAllocator< float > > sigma02_
Definition: HcalPedestalWidthsGPU.h:52
HcalPedestalWidthsGPU::sigma33_
std::vector< float, cms::cuda::HostAllocator< float > > sigma33_
Definition: HcalPedestalWidthsGPU.h:65
HcalPedestalWidthsGPU::sigma11_
std::vector< float, cms::cuda::HostAllocator< float > > sigma11_
Definition: HcalPedestalWidthsGPU.h:55
HcalPedestalWidthsGPU::Product::sigma33
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma33
Definition: HcalPedestalWidthsGPU.h:31
HcalPedestalWidthsGPU::sigma30_
std::vector< float, cms::cuda::HostAllocator< float > > sigma30_
Definition: HcalPedestalWidthsGPU.h:62
HcalPedestalWidthsGPU::Product::sigma23
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma23
Definition: HcalPedestalWidthsGPU.h:27
HcalPedestalWidthsGPU::totalChannels_
uint64_t totalChannels_
Definition: HcalPedestalWidthsGPU.h:49
HcalPedestalWidths.h
HcalPedestalWidthsGPU::Product::sigma12
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma12
Definition: HcalPedestalWidthsGPU.h:22
edm::propagate_const_array
Definition: propagate_const_array.h:61
HcalPedestalWidthsGPU::sigma20_
std::vector< float, cms::cuda::HostAllocator< float > > sigma20_
Definition: HcalPedestalWidthsGPU.h:58
HcalPedestalWidthsGPU::sigma22_
std::vector< float, cms::cuda::HostAllocator< float > > sigma22_
Definition: HcalPedestalWidthsGPU.h:60
propagate_const_array.h
HcalPedestalWidthsGPU::Product::sigma10
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma10
Definition: HcalPedestalWidthsGPU.h:20
HcalPedestalWidthsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: HcalPedestalWidthsGPU.h:67
HcalPedestalWidthsGPU::Product::sigma30
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma30
Definition: HcalPedestalWidthsGPU.h:28
HcalPedestalWidthsGPU::unitIsADC_
bool unitIsADC_
Definition: HcalPedestalWidthsGPU.h:48
HcalPedestalWidthsGPU::sigma23_
std::vector< float, cms::cuda::HostAllocator< float > > sigma23_
Definition: HcalPedestalWidthsGPU.h:61
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
HcalPedestalWidthsGPU::Product::sigma31
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma31
Definition: HcalPedestalWidthsGPU.h:29
HcalPedestalWidthsGPU::unitIsADC
bool unitIsADC() const
Definition: HcalPedestalWidthsGPU.h:45
HcalPedestalWidthsGPU::Product::sigma01
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma01
Definition: HcalPedestalWidthsGPU.h:17
HcalPedestalWidthsGPU::Product::sigma02
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma02
Definition: HcalPedestalWidthsGPU.h:18
ESProduct.h
HcalPedestalWidthsGPU::sigma12_
std::vector< float, cms::cuda::HostAllocator< float > > sigma12_
Definition: HcalPedestalWidthsGPU.h:56
HcalPedestalWidthsGPU::Product::sigma00
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > sigma00
Definition: HcalPedestalWidthsGPU.h:16