49 const EventContext& ctx = Gaudi::Hive::currentContext();
58 std::map<uint32_t, std::vector<const SCT_RDORawData*>> rdoMap;
63 std::vector<std::uint32_t> listOfAllRODs;
64 m_cabling->getAllRods(listOfAllRODs, ctx);
65 for (std::uint32_t rod : listOfAllRODs) {
69 for (
const auto* itkStripsRawColl : *itkStripsRDOCont) {
70 if (itkStripsRawColl ==
nullptr) {
75 Identifier idColl{itkStripsRawColl->identify()};
77 uint32_t robid{
m_cabling->getRobIdFromHash(idCollHash, ctx)};
78 if (robid == 0)
continue;
80 eformat::helper::SourceIdentifier srcIDROB{robid};
81 eformat::helper::SourceIdentifier srcIDROD{srcIDROB.subdetector_id(), srcIDROB.module_id()};
82 uint32_t rodid{srcIDROD.code()};
84 for (
const auto* rdo : *itkStripsRawColl) {
86 rdoMap[rodid].push_back(rdo);
92 for (
const auto& rodToRDOs : rdoMap) {
93 rod = fullEventAssembler->
getRodData(rodToRDOs.first);
94 m_encoder->fillROD(*rod, rodToRDOs.first, rodToRDOs.second);
96 return StatusCode::SUCCESS;