#include <HcalPedestalsGPU.h>
Definition at line 13 of file HcalPedestalsGPU.h.
◆ HcalPedestalsGPU()
HcalPedestalsGPU::HcalPedestalsGPU |
( |
HcalPedestals const & |
pedestals | ) |
|
Definition at line 7 of file HcalPedestalsGPU.cc.
9 totalChannels_{pedestals.getAllContainers()[0].second.size() + pedestals.getAllContainers()[1].second.size()},
10 offsetForHashes_{static_cast<uint32_t>(pedestals.getAllContainers()[0].second.size())},
13 #ifdef HCAL_MAHI_CPUDEBUG
17 auto const containers = pedestals.getAllContainers();
20 auto const& barrelValues = containers[0].second;
21 for (
uint64_t i = 0;
i < barrelValues.size(); ++
i) {
22 values_[
i * 4] = barrelValues[
i].getValue(0);
23 values_[
i * 4 + 1] = barrelValues[
i].getValue(1);
24 values_[
i * 4 + 2] = barrelValues[
i].getValue(2);
25 values_[
i * 4 + 3] = barrelValues[
i].getValue(3);
27 widths_[
i * 4] = barrelValues[
i].getWidth(0);
28 widths_[
i * 4 + 1] = barrelValues[
i].getWidth(1);
29 widths_[
i * 4 + 2] = barrelValues[
i].getWidth(2);
30 widths_[
i * 4 + 3] = barrelValues[
i].getWidth(3);
34 auto const& endcapValues = containers[1].second;
35 auto const offset = barrelValues.size();
36 for (
uint64_t i = 0;
i < endcapValues.size(); ++
i) {
38 values_[off * 4] = endcapValues[
i].getValue(0);
39 values_[off * 4 + 1] = endcapValues[
i].getValue(1);
40 values_[off * 4 + 2] = endcapValues[
i].getValue(2);
41 values_[off * 4 + 3] = endcapValues[
i].getValue(3);
43 widths_[off * 4] = endcapValues[
i].getWidth(0);
44 widths_[off * 4 + 1] = endcapValues[
i].getWidth(1);
45 widths_[off * 4 + 2] = endcapValues[
i].getWidth(2);
46 widths_[off * 4 + 3] = endcapValues[
i].getWidth(3);
References HcalPedestals::isADC().
◆ ~HcalPedestalsGPU()
HcalPedestalsGPU::~HcalPedestalsGPU |
( |
| ) |
|
|
default |
◆ getProduct()
◆ offsetForHashes()
uint32_t HcalPedestalsGPU::offsetForHashes |
( |
| ) |
const |
|
inline |
◆ unitIsADC()
bool HcalPedestalsGPU::unitIsADC |
( |
| ) |
const |
|
inline |
◆ offsetForHashes_
uint32_t HcalPedestalsGPU::offsetForHashes_ |
|
private |
◆ product_
◆ totalChannels_
uint64_t HcalPedestalsGPU::totalChannels_ |
|
private |
◆ unitIsADC_
bool HcalPedestalsGPU::unitIsADC_ |
|
private |
◆ values_
◆ widths_