51 const uint32_t size = modIndexer.maxModulesIdx_;
53 for (
size_t i = 0;
i < size;
i++)
54 moduleParams.view()[
i].valid() =
false;
59 for (
auto row : entities) {
61 int captureblockidx = pmap.
getIntAttr(
"captureblockidx", row);
62 int econdidx = pmap.
getIntAttr(
"econdidx", row);
63 int idx = modIndexer.getIndexForModule(
fedid, captureblockidx, econdidx);
64 int typeidx = modIndexer.getTypeForModule(
fedid, captureblockidx, econdidx);
66 auto celltypes = modIndexer.convertTypeCode(typecode);
67 bool isSiPM = celltypes.first;
68 int celltype = celltypes.second;
76 int zp(
zside > 0 ? 1 : -1);
77 DetId::Detector det = plane <= 26 ? DetId::Detector::HGCalEE : DetId::Detector::HGCalHSi;
85 module.celltype() = celltype;
89 module.typeidx() = typeidx;
94 module.econdidx() = econdidx;
95 module.captureblockidx() = captureblockidx;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::string fullPath() const
uint32_t cc[maxCellsPerHit]
const edm::FileInPath filename_
std::optional< HGCalMappingModuleParamHostCollection > produce(const HGCalElectronicsMappingRcd &iRecord)
HGCalMappingModuleESProducer(const edm::ParameterSet &iConfig)
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
bool isSiPM(int ieta, int iphi, int depth)
wrapper for a 32b data word identifying a readout channel in the raw data The format is the following...
edm::ESGetToken< HGCalMappingModuleIndexer, HGCalElectronicsMappingRcd > moduleIndexTkn_
constexpr uint32_t rawId() const
get the raw id
#define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type)
::hgcal::HGCalMappingModuleParamHostCollection HGCalMappingModuleParamHostCollection