Conversation
Add three new FCL job configuration files under JobConfig/pileup/STM to support training and generation for the VDResampler SBDM models. Files added: - VDResamplerConfigureTrainer.fcl: sets up VDResamplerConfigure analyzer (VirtualDetectorID 116) and training-related options (VDResamplerDir, fclDir, trainingThreshold, doROOTDump). - VDResamplerGenerateFromModel.fcl: producer VDResamplerGenerateFromModel with placeholders for stage/all-at-once model files, useTwoStageModel, useHeun, diffusionSteps, and doROOTDump. - VDResamplerGenerateMix.fcl: producer VDResamplerGenerateMix with ModelFileDir, placeholders for hitSummaryFiles/potsPerFile, useHeun, diffusionSteps, and doROOTDump. All configs include standard prolog and services, reference the global constants file, and leave input/output file names nil for callers to populate.
|
Hi @YongyiBWu,
which require these tests: build. @Mu2e/fnalbuild-users, @Mu2e/write have access to CI actions on main. ⌛ The following tests have been triggered for bd580c6: build (Build queue - API unavailable) |
|
☀️ The build tests passed at bd580c6.
N.B. These results were obtained from a build of this Pull Request at bd580c6 after being merged into the base branch at 9418fb0. For more information, please check the job page here. |
|
I'll review this pull request to identify any issues.Here's my review of PR #531. The build CI passes ✅, but I found several issues worth flagging: Issues Found1. 🔴 Potentially Dangerous Wildcard Change in
|
| Severity | Issue | File |
|---|---|---|
| 🔴 High | Wildcard broadening in keep rules may match unintended products | prolog.fcl |
| 🟡 Medium | Empty model file paths should use @nil to force override |
VDResamplerGenerateFromModel.fcl |
| 🟡 Medium | Empty arrays should use @nil for consistency |
VDResamplerGenerateMix.fcl |
| 🟡 Medium | Possibly incorrect fclDir path |
VDResamplerConfigureTrainer.fcl |
| 🟢 Low | Inaccurate copy-pasted header comments | All 3 new files |
| 🟢 Low | Commented-out parameters without explanation | 2 new files |
|
|
Let me look at the PR details and the changes involved.Yes, there's a clear opportunity to simplify the three new What's duplicated across all three filesAll three new files ( How to simplify1. Extract shared config into the existing Since 2. Then each job config becomes much shorter, for example: The same pattern would apply to the other two files — replacing ~10 lines of boilerplate with 2 Additional observations
This would reduce total added lines by roughly 30–40% and make future maintenance (e.g., changing the |
|
Source and services are edited as suggested. For now 'useHeun', 'diffusionSteps', and 'doROOTDump' are left in individual fcl's for easy testing purposes. At a later point a "VSResamplerSequence" method will be added as a common producer method for downstream use, which will provide a single point control for these flags. |
Addition of scripts to run the Score-Based Diffusion Model training and resampling for STM downstream simulations. Also fixed data product inclusion for the 2 data stream output propagating to VDs in the STM DS region.