updated TrkPanelMap with stations 14, 4, and 5, fixes to error handling in digi maker#1748
updated TrkPanelMap with stations 14, 4, and 5, fixes to error handling in digi maker#1748
Conversation
pavel1murat
commented
Feb 28, 2026
- also update fcl files
|
Hi @pavel1murat,
which require these tests: build. @Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main. ⌛ The following tests have been triggered for 53b5701: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 53b5701.
N.B. These results were obtained from a build of this Pull Request at 53b5701 after being merged into the base branch at 191ad5d. For more information, please check the job page here. |
|
I'll review this pull request by first loading the PR details and its changes.Here is my review of PR #1748. The PR touches 9 files (+236/-65), authored by @pavel1murat from the SummaryThis PR makes three categories of changes:
Issues Found🔴 Critical / Bug1. Slot 5 data is commented out in In 2. Missing The slot 11 entries for
Panel 3. Gap in run-range coverage: runs 108000–110000 → 107999 cutoff The original table covered 🟡 Medium / Code Quality4. Trailing whitespace in error-handling fix print_(std::format("ERROR: either dtc_id:{} or link_id:{} is corrupted, skip ROC data",
dtc_id,link_id));
roc_data += (nhits*np_per_hit_+1)*packet_size;
continue;There is a blank line with trailing whitespace between the 5. Commented-out // std::cout << s << ss.back() << ":" << location.line()
// // << location.function_name()
// << " : " << Message << std::endl;This leftover debug code should be removed before merging. It adds no value as a comment and clutters the function. 6. Removed blank line changes code formatting inconsistently std::unique_ptr<mu2e::IntensityInfoTrackerHits> intInfo(new mu2e::IntensityInfoTrackerHits);
-
//-----------------------------------------------------------------------------The blank line before the comment block was removed, making the code slightly harder to read. This is minor but goes against the PR's own formatting style used elsewhere. 🟢 Low / Suggestions7. Verbose debug logging enabled by default in all test FCL files All 6 FCL test files now have 8. Large duplicated data blocks in The entries for slots 0, 10, 11, and 12 are identically duplicated across both the 9. Typo in comment: "confclicts" Should be "conflicts". Summary Table
The error handling improvements in the C++ module (fragment size check, |
|
I'll review this pull request by examining its details and the code changes.Here is my review of PR #1748 with the critical issues I've identified: PR #1748 — Critical Issues ReviewPR: Mu2e/Offline#1748 by @pavel1murat 🔴 Critical Issue 1: Missing ROC Data Pointer Advance on Corrupted dtc_id/link_id (Data Corruption / Infinite Loop Risk) print_(std::format("ERROR: either dtc_id:{} or link_id:{} is corrupted, skip ROC data",
dtc_id,link_id));
roc_data += (nhits*np_per_hit_+1)*packet_size;
continue;This is a new addition that advances the
Recommendation: Add a bounds check to ensure 🔴 Critical Issue 2: Inconsistent
|
| # | Severity | File | Issue |
|---|---|---|---|
| 1 | 🔴 Critical | StrawDigisFromArtdaqFragments_module.cc |
ROC pointer advance uses potentially corrupted nhits — buffer over-read / infinite loop risk |
| 2 | 🔴 Critical | TrkPanelMap.txt |
Inconsistent zfc (3 vs 2) for mnid 229 across run-range tables |
| 3 | 🟠 High | StrawDigisFromArtdaqFragments_module.cc |
Fragment size guard checks SubEventHeader but skips EventHeader — size mismatch |
| 4 | 🟠 High | TrkPanelMap.txt |
Station 5 entries commented out in production run ranges but active in test range |
| 5 | 🟡 Medium | StrawDigiFilter_module.cc, StrawHitFilter_module.cc |
Unused #include <format> with C++20 dependency |
| 6 | 🟡 Medium | 6 FCL files | Verbose debug logging enabled unconditionally |
| 7 | 🟡 Medium | TrkPanelMap.txt |
Run range gap 10001–106999 has no panel map coverage |
|
@FNALbuild run build test |
|
⌛ The following tests have been triggered for e0f7365: build (Build queue - API unavailable) |
|
☀️ The build tests passed at e0f7365.
N.B. These results were obtained from a build of this Pull Request at e0f7365 after being merged into the base branch at dc50b36. For more information, please check the job page here. |