Add optional proton time cluster output, update printouts#1796
Add optional proton time cluster output, update printouts#1796michaelmackenzie wants to merge 2 commits intoMu2e:mainfrom
Conversation
|
Hi @michaelmackenzie,
which require these tests: build. @Mu2e/fnalbuild-users, @Mu2e/write have access to CI actions on main. ⌛ The following tests have been triggered for 3e3e6c4: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 3e3e6c4.
N.B. These results were obtained from a build of this Pull Request at 3e3e6c4 after being merged into the base branch at 2cc428c. For more information, please check the job page here. |
|
@FNALbuild run build test |
|
⌛ The following tests have been triggered for 3e3e6c4: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 3e3e6c4.
N.B. These results were obtained from a build of this Pull Request at 3e3e6c4 after being merged into the base branch at 2cc428c. For more information, please check the job page here. |
|
I'll review this pull request by examining its details and changes.Now let me look at the full context of the key files to better understand the changes:Here's my review of PR #1796. I identified several issues across the changed files: Issues Found1. 🔴 Potential null pointer dereference in
|
| # | Severity | File | Issue |
|---|---|---|---|
| 1 | 🔴 Medium-High | TZClusterFinder_module.cc |
_ccHandle may be invalid when building proton TC calo pointers |
| 2 | 🟡 Low | TZClusterFinder_module.cc |
auto tcs alias recreated inside loop on every iteration |
| 3 | 🟡 Medium | TZClusterFinder_types.hh |
_protonTCColl has no default initializer — UB risk |
| 4 | 🟡 Low | Multiple files | Mixed printf/std::cout and inconsistent stage label guards |
| 5 | 🟢 Info | Multiple files | _diagLevel vs _debugLevel guard inconsistency |
The most actionable fix is issue #3 — adding = nullptr to the _protonTCColl declaration in Data_t to avoid any uninitialized pointer risk.
|
📝 The HEAD of |
|
Responding to the AI comments:
|
Optionally produce proton time clusters for proton triggering and proton tracking. Also update some printouts for debugging.