Definition at line 108 of file HcalDigisProducerGPU.cc.
126 if (not hbheDigis->
empty()) {
127 auto const nsamples = (*hbheDigis)[0].size();
128 auto const stride = hcal::compute_stride<hcal::Flavor5>(nsamples);
138 if (not qie11Digis->
empty()) {
139 auto const nsamples = qie11Digis->
samples();
140 auto const stride01 = hcal::compute_stride<hcal::Flavor1>(nsamples);
141 auto const stride3 = hcal::compute_stride<hcal::Flavor3>(nsamples);
157 for (
auto const&
hbhe : *hbheDigis) {
158 auto const id =
hbhe.id().rawId();
162 auto const stride = hcal::compute_stride<hcal::Flavor5>(
hbhe.size());
166 uint16_t header_word = (1 << 15) | (0x5 << 12) | (0 << 10) | ((
hbhe.sample(0).capid() & 0x3) << 8);
169 uint16_t s0 = (0 << 7) | (static_cast<uint8_t>(
hbhe.sample(2 *
i).adc()) & 0x7f);
170 uint16_t s1 = (0 << 7) | (static_cast<uint8_t>(
hbhe.sample(2 *
i + 1).adc()) & 0x7f);
171 uint16_t
sample = (s1 << 8) | s0;
176 for (
unsigned int i = 0;
i < qie11Digis->
size();
i++) {
178 assert(digi.samples() == qie11Digis->
samples() &&
"collection nsamples must equal per digi samples");
179 if (digi.flavor() == 0
or digi.flavor() == 1) {
182 auto const id = digi.detid().rawId();
189 }
else if (digi.flavor() == 3) {
192 auto const id = digi.detid().rawId();
195 hf3_.
data.push_back((*qie11Digis)[
i][hw]);
202 auto lambdaToTransfer = [&ctx](
auto*
dest,
auto const&
src) {
205 using vector_type =
typename std::remove_reference<decltype(
src)>
::type;
207 using dest_data_type =
typename std::remove_pointer<decltype(
dest)>
::type;
217 lambdaToTransfer(
df5_.npresamples.get(),
hf5_.npresamples);
References cms::cuda::assert(), hcal::DigiCollectionBase< StoragePolicy >::clear(), config_, cudaCheck, cudaState_, hcal::DigiCollectionBase< StoragePolicy >::data, mps_fire::dest, df01_, df3_, df5_, edm::SortedCollection< T, SORT >::empty(), edm::DataFrameContainer::empty(), photonIsolationHIProducer_cfi::hbhe, hbheDigiToken_, HcalBarrel, HcalEndcap, hcal::Flavor1::HEADER_WORDS, hcal::Flavor3::HEADER_WORDS, hcal::Flavor5::HEADER_WORDS, hf01_, hf3_, hf5_, mps_fire::i, hcal::DigiCollectionBase< StoragePolicy >::ids, HcalDigisProducerGPU::ConfigParameters::maxChannelsF01HE, HcalDigisProducerGPU::ConfigParameters::maxChannelsF3HB, HcalDigisProducerGPU::ConfigParameters::maxChannelsF5HB, eostools::move(), or, hcalTTPDigis_cfi::presamples, qie11DigiToken_, simplePhotonAnalyzer_cfi::sample, HcalDataFrameContainer< Digi >::samples(), edm::DataFrameContainer::size(), TrackRefitter_38T_cff::src, gpuPixelDoublets::stride, hcal::DigiCollectionBase< StoragePolicy >::stride, and relativeConstraints::value.