ATLAS Offline Software
Loading...
Searching...
No Matches
plugin_GlobalSimFromJson.py
Go to the documentation of this file.
1from GlobalSimulation.GlobalSimJsonConfig import GlobalSimJsonCfg
2from TrigValTools.TrigValSteering.Common import find_file_in_path
3
4def setup(flags):
5 if flags.Concurrency.NumThreads==0:
6 flags.Concurrency.NumThreads=1
7
8 # turn off everything else from the steering script
9 flags.DQ.doMonitoring=False
10 flags.Trigger.enableL1CaloPhase1=False
11
12jsonpath = find_file_in_path("GlobalSimulation/L0GlobalTestMenuv1_Khoo.json", 'DATAPATH')
13
14# List entries below are intentionally commented as examples for running code
15# that I do not want tested in the CI at present.
16
17force_TOBs = [
18 # "GlobalSim_JET1Jets",
19]
20
21txt_inputs = {
22 # 'GlobalSim_CellTowers': ('topoc_pu_type','/eos/atlas/atlascerngroupdisk/trig-gbl/online/ValidationGate/input_data/hex/mc_events/JET1/myfile_tree.hex.txt'),
23}
24
25txt_outputs = {
26 # 'GlobalSim_JET1Jets': ('main_output_type','JET1_out_hex.txt'),
27}
28
29cfg.merge( GlobalSimJsonCfg(
30 flags, jsonpath,
31 ignore_menu_items=True,
32 force_config_TOBs=force_TOBs,
33 txt_inputs=txt_inputs,
34 txt_outputs=txt_outputs
35) )