15 auto const& dus =
geom.detUnits();
16 unsigned int n_detectors = dus.size();
17 for (
unsigned int i = 1;
i < 7; ++
i) {
19 if (
offset != dus.size() && dus[
offset]->type().isTrackerStrip()) {
25 LogDebug(
"SiPixelGainCalibrationForHLTGPU")
26 <<
"caching calibs for " << n_detectors <<
" pixel detectors of size " << gains.
data().size() <<
'\n'
38 auto nBinsToUseForEncoding = 253;
54 LogDebug(
"SiPixelGainCalibrationForHLTGPU")
59 LogDebug(
"SiPixelGainCalibrationForHLTGPU") << ind.size() <<
" " << n_detectors;
61 for (
auto i = 0
U;
i < n_detectors; ++
i) {
64 assert(
p != ind.end() &&
p->detid == dus[
i]->geographicalId());
72 if (ind[
i].detid != dus[
i]->geographicalId())
73 LogDebug(
"SiPixelGainCalibrationForHLTGPU") << ind[
i].detid <<
"!=" << dus[
i]->geographicalId();
87 cudaCheck(cudaMalloc((
void**)&
data.gainDataOnGPU, this->gains_->data().size()));
90 data.gainDataOnGPU, this->gains_->data().data(), this->
gains_->
data().size(), cudaMemcpyDefault,
stream));
94 cudaCheck(cudaMemcpyAsync(&(
data.gainForHLTonGPU->v_pedestals_),
95 &(
data.gainDataOnGPU),
100 return data.gainForHLTonGPU;