updating producer to reflect decoder changes#1717
Conversation
|
Hi @matthewstortini,
which require these tests: build. @Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main. ⌛ The following tests have been triggered for fb1772c: build (Build queue - API unavailable) |
|
☔ The build is failing at fb1772c.
N.B. These results were obtained from a build of this Pull Request at fb1772c after being merged into the base branch at a500268. For more information, please check the job page here. |
michaelmackenzie
left a comment
There was a problem hiding this comment.
This looks nice, thank you for this update. I've just added two questions, but no required changes.
This looks ready to merge once Mu2e/artdaq-core-mu2e#103 is merged and a new muse env is created.
| if (decoder.GetHitTOT(&packet, hit, hitTOT)) { | ||
| msdHit.setTOT(hitTOT); | ||
| } | ||
| if (msdHit.hasTime() || msdHit.hasTOT()) { |
There was a problem hiding this comment.
Is it a valid case to have a TOT but no time information?
There was a problem hiding this comment.
Some versions will have time, but not TOT. But yeah we should never end up with a TOT, but no time. I guess just checking the time would be better.
| std::cout << "Hit " << hit << " in packet: time = " << msdHit.time() | ||
| << " ns, TOT = " << msdHit.tot() << " ns" << std::endl; | ||
| } | ||
| } else if (_debugLevel > 1) { |
There was a problem hiding this comment.
Should this have a printout without a requirement that the debug is on to log events with an MSD packet but the time and TOT aren't able to be retrieved?
Yes, I will address the PR comments tomorrow (about to catch a flight). But when this PR has everyone's approval, I will go ahead and merge the adcm PR, and make a new adcm tag. At that point hopefully Dave/Yuri can make a new envset using said adcm tag, and trigger the build bot for this PR with the envset PR. It would be best to get approvals first so we can do this all quickly so as not to disrupt any online folks building with the heads of online and Offline. Does that sound good @brownd1978 and @oksuzian? |
|
Here's my review of PR #1717, focusing on critical issues. This PR renames MTP (Mobile Timing Paddles) to MSD (Mobile Synchronization Detector) and rewrites the producer module to use the new Issues Found🔴 1. Bug:
|
| Severity | Issue | Location |
|---|---|---|
| 🔴 Critical | index/index_subevt only increment inside debug blocks |
MSDHitsFromDTCEvents_module.cc:97,107 |
| 🔴 Critical | hasTime() || hasTOT() should be hasTime() only |
MSDHitsFromDTCEvents_module.cc:124 |
| 🔴 Critical | Floating-point sentinel -1.0 is fragile for validity checks |
MSDHit.hh:22-23 |
| 🔴 Critical | Existing FHiCL configs referencing old module not updated | Missing files in PR |
| 🟡 Medium | channelID dropped — may lose detector element identification |
MSDHit.hh |
| 🟡 Medium | Old classes_def.xml was missing collection/wrapper entries |
classes_def.xml (fixed) |
|
|
@FNALbuild run build test with #1726 |
|
⌛ The following tests have been triggered for def696c: build (Build queue - API unavailable) |
|
☀️ The build tests passed at def696c.
N.B. These results were obtained from a build of this Pull Request at def696c after being merged into the base branch at 7a15006. For more information, please check the job page here. |
|
📝 The HEAD of |
|
@FNALbuild run build test with #1726 |
|
⌛ The following tests have been triggered for def696c: build (Build queue - API unavailable) |
|
☀️ The build tests passed at def696c.
N.B. These results were obtained from a build of this Pull Request at def696c after being merged into the base branch at 6d7cc02. For more information, please check the job page here. |
Changing MTP (mobile timing paddles) to MSD (mobile synchronization detector), and making small producer changes to reflect updates in corresponding decoder. Relies on artdaq-core-mu2e PR#103 Mu2e/artdaq-core-mu2e#103.