Update of PR1812#1854
Conversation
|
Hi @brownd1978,
which require these tests: build. @Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main. ⌛ The following tests have been triggered for 6f93616: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 6f93616.
N.B. These results were obtained from a build of this Pull Request at 6f93616 after being merged into the base branch at d755001. For more information, please check the job page here. |
PR #1854 — "Update of PR1812" · ReviewStatus: Open · mergeable (clean) · 1 approval (@bonventre) · build ✅ · clang-tidy This builds on PR #1812 (Pasha's 🔴 Potential issues1. Removed fhicl::Atom<bool> allowOfflineFallbackWhenPanelMapMissing{
fhicl::Name("allowOfflineFallbackWhenPanelMapMissing"),
fhicl::Comment("If TrackerPanelMap lookup fails, decode using offline StrawId(dtc,link,straw)")};
fhicl::Atom<bool> forceOfflineAddressing{
fhicl::Name("forceOfflineAddressing"),
fhicl::Comment("Ignore TrackerPanelMap/mnid and decode StrawId directly as (dtc,link,straw)")};These are now required. The prolog was updated to set them, so the main path works — but any other/standalone FCL that instantiates this module without these keys will now throw at construction. Either restore the 2. Hit-packet bounds check only validates the start address int offset = (ihit*np_per_hit_+1)*packet_size;
hit_data = (...) (roc_data+offset);
if (roc_data+offset >= last_address) { ... break; }The guard ensures the start of the hit is in-bounds, but 3. Second packet ( h0 = (...) (roc_data+packet_size);
...
if (h0->NumADCPackets == 0) { ... }
4. int nbytes = buf[0];
uint8_t* last_address = fdata+nbytes;Ironically, 5. Stale cached 🟡 Nits / cleanup
|
This PR is based on Pasha's PR 1812, adding some fixes.