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' 34 auto minPed =
gains.getPedLow();
35 auto maxPed =
gains.getPedHigh();
36 auto minGain =
gains.getGainLow();
37 auto maxGain =
gains.getGainHigh();
38 auto nBinsToUseForEncoding = 253;
54 LogDebug(
"SiPixelGainCalibrationForHLTGPU")
58 auto const& ind =
gains.getIndexes();
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;
SiPixelGainForHLTonGPU * gainForHLTonGPU
const SiPixelGainCalibrationForHLT * gains_
const SiPixelGainForHLTonGPU * getGPUProductAsync(cudaStream_t cudaStream) const
DecodingStructure * v_pedestals_
std::pair< uint32_t, uint32_t > Range
~SiPixelGainCalibrationForHLTGPU()
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
SiPixelGainForHLTonGPU_DecodingStructure DecodingStructure
std::pair< Range, int > rangeAndCols_[phase1PixelTopology::numberOfModules]
cms::cuda::ESProduct< GPUData > gpuData_
SiPixelGainForHLTonGPU * gainForHLTonHost_
constexpr float gains[NGAINS]
std::vector< char > const & data() const
unsigned int numberOfRowsAveragedOver_
char data[epos_bytes_allocation]
SiPixelGainForHLTonGPU_DecodingStructure * gainDataOnGPU
SiPixelGainCalibrationForHLTGPU(const SiPixelGainCalibrationForHLT &gains, const TrackerGeometry &geom)
#define cudaCheck(ARG,...)
constexpr SubDetector tkDetEnum[8]
unsigned int nBinsToUseForEncoding_