Added db support for Calo crystal sim#1887
Conversation
|
Hi @bechenard,
which require these tests: build. @Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main. ⌛ The following tests have been triggered for ba3258f: build (Build queue - API unavailable) |
|
☔ The build tests failed for ba3258f.
N.B. These results were obtained from a build of this Pull Request at ba3258f after being merged into the base branch at 915b109. For more information, please check the job page here. |
|
📝 The HEAD of |
|
@FNALbuild run build test |
|
⌛ The following tests have been triggered for 5842327: build (Build queue - API unavailable) |
|
☀️ The build tests passed at 5842327.
N.B. These results were obtained from a build of this Pull Request at 5842327 after being merged into the base branch at 650ced2. For more information, please check the job page here. |
PR #1887 — Added db support for Calo crystal simCore changes
Issues foundThe DB wiring I flagged earlier is now confirmed correct and complete (factory + service + prolog all present). Remaining concerns: 1. Header guard mismatch — #ifndef CaloConditions_CaloSimCrystalConfig_hh
#define CaloConditions_CaloSimCrystalConfig_hh
// Initialize CaloSimCrystalConfig from fclGuard/comment don't match the struct name and use the wrong package prefix. Should be 2. if (pePerMeVs.back().size() != CaloConst::_nSiPMPerCrystal ) { ... }
3. Whitespace errors flagged by CI 4. Hardcoded magic numbers in 5. 6. Removed diagnostic histograms |
Review — "Added db support for Calo crystal sim"Thanks for this — the DB-migration architecture is sound, the 🔴 S0 — build blocker1. 🟠 S1 — major2. 3. The LRU recentring shifts the simulated (and reconstructed) calo energy scale by ~+2.6%. 4. 🟡 S2 — minor
🔵 S3 — nits
Notes
Verified correct (no action): CAPHRI id mapping is exact ( |
giro94
left a comment
There was a problem hiding this comment.
Everything looks great, thanks!
Unsure if we'll need the pePerMeV for both SiPMs, but it won't hurt having 2 columns just in case.
|
Just a note: the latest AI review notes some things to be fixed, in particular 4. and S3.1 |
|
Yes, the AI monster is always attacking you when you expect it the least. I just rolled a 19 and launches a fireball to kill it. Will fix the code too when I have time - going on vacation for a few days today |
This is a replacement for the previous pull request, whose history had become all tangled with the changes Paolo made. This one is cleaner.
Summary of changes:
The crystal conditions require the LRU, the number of PE/MeV for each readout, and the ADCperMeV for each readout. Noise will be added later.