41 desc.add<std::vector<std::string> >(
"filelist", std::vector<std::string>({}))
42 ->setComment(
"list of files with the readout cells of each module");
53 for (uint32_t
i = 0;
i < size;
i++)
54 cellParams.view()[
i].valid() =
false;
62 for (
auto row : entities) {
66 bool isSiPM = typecode.find(
"TM") != std::string::npos;
69 int i1(0),
i2(0), sensorcell(0);
70 bool isHD(
false), iscalib(
false);
78 isHD = {typecode.find(
"MH") != std::string::npos ?
true :
false};
83 rocpin = uint16_t(rocpinstr[rocpinstr.size() - 1]);
97 auto cell = cellParams.view()[
idx];
100 cell.iscalib() = iscalib;
102 cell.typeidx() = typeidx;
106 cell.rocpin() = rocpin;
107 cell.sensorcell() = sensorcell;
108 cell.triglink() = pmap.
getIntAttr(
"TrLink", row);
109 cell.trigcell() = pmap.
getIntAttr(
"TrCell", row);
115 cell.detid() =
detid;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
HGCalMappingCellESProducer(const edm::ParameterSet &iConfig)
T getParameter(std::string const &) const
uint32_t maxDenseIndex() const
returns the max. dense index expected
std::optional< HGCalMappingCellParamHostCollection > produce(const HGCalElectronicsMappingRcd &iRecord)
uint32_t cc[maxCellsPerHit]
uint32_t denseIndex(std::string typecode, uint32_t chip, uint32_t half, uint32_t seq) const
builders for the dense index
edm::ESGetToken< HGCalMappingCellIndexer, HGCalElectronicsMappingRcd > cellIndexTkn_
const std::vector< std::string > filelist_
size_t getEnumFromTypecode(std::string typecode) const
gets index given typecode string
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...
constexpr uint32_t rawId() const
get the raw id
utility class to assign dense readout cell indexing
::hgcal::HGCalMappingCellParamHostCollection HGCalMappingCellParamHostCollection
#define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const std::string & fullPath() const