CMS 3D CMS Logo

DeclsForKernelsPhase2.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_EcalRecProducers_plugins_DeclsForKernelsPhase2_h
2 #define RecoLocalCalo_EcalRecProducers_plugins_DeclsForKernelsPhase2_h
3 
6 
7 namespace ecal {
8  namespace weights {
9 
12 
13  void allocate(uint32_t digi_size, cudaStream_t cudaStream) {
14  auto const size = digi_size;
15  recHits.amplitudesAll =
16  cms::cuda::make_device_unique<reco::ComputationScalarType[]>(size * EcalDataFrame::MAXSAMPLES, cudaStream);
17  recHits.amplitude = cms::cuda::make_device_unique<reco::StorageScalarType[]>(size, cudaStream);
18  recHits.amplitudeError = cms::cuda::make_device_unique<reco::StorageScalarType[]>(size, cudaStream);
19  recHits.chi2 = cms::cuda::make_device_unique<reco::StorageScalarType[]>(size, cudaStream);
20  recHits.pedestal = cms::cuda::make_device_unique<reco::StorageScalarType[]>(size, cudaStream);
21  recHits.did = cms::cuda::make_device_unique<uint32_t[]>(size, cudaStream);
22  recHits.flags = cms::cuda::make_device_unique<uint32_t[]>(size, cudaStream);
23  }
24  };
25  } //namespace weights
26 } //namespace ecal
27 
28 #endif // RecoLocalCalo_EcalRecProducers_plugins_DeclsForKernelsPhase2_h
size
Write out results.
UncalibratedRecHit<::calo::common::DevStoragePolicy > recHits
void allocate(uint32_t digi_size, cudaStream_t cudaStream)
static constexpr int MAXSAMPLES
Definition: EcalDataFrame.h:48