From bd8292fa8aa74c8b1fd33b52e4a3a768fbce1d98 Mon Sep 17 00:00:00 2001 From: Iuri Oksuzian Date: Mon, 17 Aug 2026 16:21:26 -0500 Subject: [PATCH] feat(config): add MDC2020.fcl, a single detector-configuration epilog Geometry and CRV set together, in the shape Run1B.fcl established. The MDC2020 geometry carries crv_counters_v09 and its 25 CRV sectors; selecting one without the other produces a job that runs and is wrong. It works by winning on order rather than by changing anything: emitted after the base FCL, it lands after digitize/epilog.fcl and reco/epilog.fcl and overwrites the Run1A CRV values those pull in. No existing file is modified and no current-era job is affected -- verified by dumping seven entry points with and without the new file and diffing the resolved era keys. Requires the Offline CRV MDC2020 epilogs to merge first. Verified against the MDC2020 branch: identical resolved config for digitize/OnSpill, digitize/OffSpill, mixing/Mix, reco/OnSpill, reco/NoField, recoMC/OnSpill and recoMC/NoField. --- JobConfig/common/MDC2020.fcl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 JobConfig/common/MDC2020.fcl diff --git a/JobConfig/common/MDC2020.fcl b/JobConfig/common/MDC2020.fcl new file mode 100644 index 00000000..23a118ad --- /dev/null +++ b/JobConfig/common/MDC2020.fcl @@ -0,0 +1,26 @@ +# +# Detector configuration for MDC2020: geometry and CRV, set together. +# +# Include this LAST, after the job's own epilogs, so that it wins: +# +# #include "Production/JobConfig/common/MDC2020.fcl" +# +# In prodtools that is the '#include_first' slot, which write_fcl_template +# emits after the whole base FCL -- so it lands after digitize/epilog.fcl and +# reco/epilog.fcl, and beats the Run1A CRV values those pull in. Included any +# earlier it is silently overwritten by Run1A's two-sector config and the job +# still exits 0. +# +# Geometry and CRV are ONE decision. geom_common_MDC2020 resolves to +# geom_2021_PhaseI_v03, which carries crv_counters_v09 and its 25 CRV +# sectors; the current geometry carries crv_counters_v10 and 23. Changing one +# without the other gives a job that runs and is wrong. +# +# Unlike Run1B.fcl this sets NO bFieldFile. No MDC2020 stage overrides the +# field, so each takes it from its own base FCL's epilog. Adding a field key +# here would silently move all of them. Do not add one for symmetry. +# +services.GeometryService.inputFile : "Offline/Mu2eG4/geom/geom_common_MDC2020.txt" + +#include "Offline/CRVResponse/fcl/epilog_MDC2020_v01.fcl" +#include "Offline/CRVReco/fcl/epilog_MDC2020_v01.fcl"