8 : pixels_(parameters.getTypes()),
9 auxi1_(parameters.getTypes()),
10 parLin1_(parameters.getTypes()),
11 parLin2_(parameters.getTypes()),
12 parLin3_(parameters.getTypes()),
13 crossTalk_(parameters.getTypes()),
14 auxi2_(parameters.getTypes()) {
15 for (uint32_t
i = 0;
i < parameters.
getTypes();
i++) {
17 #ifdef HCAL_MAHI_CPUDEBUG
22 if (static_cast<uint32_t>(
type) !=
i + 1)
24 <<
"Wrong assumption for HcalSiPMcharacteristics type values, "
25 <<
"should be type value <- type index + 1" << std::endl
26 <<
"Observed type value = " <<
type <<
" and index = " <<
i << std::endl;
39 auto const& product =
product_.dataForCurrentDeviceAsync(
std::vector< float, cms::cuda::HostAllocator< float > > auxi2_
std::vector< int, cms::cuda::HostAllocator< int > > pixels_
HcalSiPMCharacteristicsGPU(HcalSiPMCharacteristics const &)
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > auxi1
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > parLin1
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > parLin3
cms::cuda::ESProduct< Product > product_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > auxi2
float getCrossTalk(int type) const
get cross talk
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > pixels
std::vector< int, cms::cuda::HostAllocator< int > > auxi1_
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
unsigned int getTypes() const
get # of types
std::vector< float, cms::cuda::HostAllocator< float > > parLin1_
#define TYPELOOKUP_DATA_REG(_dataclass_)
std::vector< float, cms::cuda::HostAllocator< float > > parLin3_
std::vector< float, cms::cuda::HostAllocator< float > > parLin2_
int getAuxi1(int type) const
get auxiliary words
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > parLin2
int getType(unsigned int k) const
Product const & getProduct(cudaStream_t) const
std::vector< float, cms::cuda::HostAllocator< float > > crossTalk_
std::vector< float > getNonLinearities(int type) const
get nonlinearity constants
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > crossTalk
float getAuxi2(int type) const
int getPixels(int type) const
get # of pixels