|
110 | 110 | parser.add_argument('--force-n-workers', dest='force_n_workers', action='store_true', help='by default, number of workers is re-computed ' |
111 | 111 | 'for given interaction rate; ' |
112 | 112 | 'pass this to avoid that') |
113 | | -parser.add_argument('--skipModules',nargs="*", help="List of modules to skip in geometry budget (and therefore processing)", default=["ZDC"]) |
| 113 | +parser.add_argument('--skipModules',nargs="*", help="List of modules to skip in geometry budget (and therefore processing)", default=[]) |
114 | 114 | parser.add_argument('--skipReadout',nargs="*", help="List of modules to take out from readout", default=[""]) |
115 | 115 | parser.add_argument('--with-ZDC', action='store_true', help='Enable ZDC in workflow') |
116 | 116 | parser.add_argument('-seed',help='random seed number', default=None) |
@@ -273,18 +273,12 @@ def load_external_config(configfile): |
273 | 273 | print(f"INFO: Written additional config key parameters to JSON {config_key_param_path}") |
274 | 274 | json.dump(anchorConfig, f, indent=2) |
275 | 275 |
|
276 | | -# Processing skipped material budget (modules): |
277 | | -# - If user did NOT specify --with-ZDC |
278 | | -# - AND ZDC is not already in the list |
279 | | -# --> append ZDC automatically |
280 | | -if args.with_ZDC: |
281 | | - # User wants ZDC to *not* be skipped → ensure it's removed |
282 | | - args.skipModules = [m for m in args.skipModules if m != "ZDC"] |
283 | | -else: |
284 | | - # If user did not request --with-ZDC, |
285 | | - # auto-append ZDC unless already present |
286 | | - if "ZDC" not in args.skipModules: |
287 | | - args.skipModules.append("ZDC") |
| 276 | +# The ZDC geometry is the +-113 m beam line, its magnets, ZN, ZP and ZEM. What it |
| 277 | +# costs in transport time is the beam line; ZEM sits at z = 7.6 m and carries |
| 278 | +# 217 kg of material inside the FIT and FDD acceptance. Without --with-ZDC we |
| 279 | +# therefore drop the beam line and keep ZEM, instead of dropping the whole module |
| 280 | +# -- see ZDCSimParam.buildBeamLine in create_geant_config(). ZDC stays out of the |
| 281 | +# readout either way, which the deactivate_detector('ZDC') below takes care of. |
288 | 282 |
|
289 | 283 | # with this we can tailor the workflow to the presence of |
290 | 284 | # certain detectors |
|
0 commit comments