40 """ Function to return command line arguments parser for reconstuction of Tile calibration runs """
45 parser= argparse.ArgumentParser(parents=parserParents, add_help=
False, fromfile_prefix_chars=
'@', epilog=epiLog, formatter_class=argparse.RawTextHelpFormatter)
47 parser.add_argument(
'--preExec', help=
'Code to execute before locking configs')
48 parser.add_argument(
'--postExec', help=
'Code to execute after setup')
49 parser.add_argument(
'--printDetailedConfig', action=
'store_true', help=
'Print detailed Athena configuration')
50 parser.add_argument(
'--dumpArguments', action=
'store_true', help=
'Print arguments and exit')
51 parser.add_argument(
'--outputDirectory', default=
'.', help=
'Output directory for produced files')
53 parser.add_argument(
'--outputVersion', type=str, default=
'0', help=
'Version to be used in output files for ntuple and monitoring')
55 parser.add_argument(
'--calib', default=
False, help=
'Calculate calibration constants and store them in ROOT file', action=argparse.BooleanOptionalAction)
56 parser.add_argument(
'--tmdb', default=
None, help=
'Enable TMDB', action=argparse.BooleanOptionalAction)
57 parser.add_argument(
'--cells', help=
'Reconstruct Tile cells (default depends on if they are needed)', action=argparse.BooleanOptionalAction)
58 parser.add_argument(
'--clusters', default=
False, help=
'Reconstruct Tile clusters', action=argparse.BooleanOptionalAction)
59 parser.add_argument(
'--towers', default=
False, help=
'Reconstruct Tile towers', action=argparse.BooleanOptionalAction)
60 parser.add_argument(
'--muonfit', default=
False, help=
'Reconstruct Tile MuonFit', action=argparse.BooleanOptionalAction)
61 parser.add_argument(
'--muid', default=
False, help=
'Reconstruct Tile MuID', action=argparse.BooleanOptionalAction)
62 parser.add_argument(
'--pool', default=
False, help=
'Create output POOL file', action=argparse.BooleanOptionalAction)
63 parser.add_argument(
'--jivexml', default=
False, help=
'Create output Jive XML files for Atlantis', action=argparse.BooleanOptionalAction)
64 parser.add_argument(
'--d3pd', default=
False, help=
'Create output D3PD file', action=argparse.BooleanOptionalAction)
67 ntuple = parser.add_argument_group(
'Tile h2000 ntuple')
68 ntuple.add_argument(
'--ntuple', default=
True, help=
'Create Tile h2000 ntuple', action=argparse.BooleanOptionalAction)
69 ntuple.add_argument(
'--reduced-ntuple', dest=
'reduced_ntuple', action=
'store_true', help=
'No Tile raw cahnnel container (including DSP) in h2000 ntuple')
72 mon = parser.add_argument_group(
'Tile monitoring')
73 mon.add_argument(
'--mon', default=
False, help=
'Run Tile monitoring', action=argparse.BooleanOptionalAction)
74 mon.add_argument(
'--postprocessing', default=
True, help=
'Run Tile monitoring postprocessing', action=argparse.BooleanOptionalAction)
75 mon.add_argument(
'--digits-mon', dest=
'digits_mon', default=
True, help=
'Run Tile digits monitoring', action=argparse.BooleanOptionalAction)
76 mon.add_argument(
'--channel-mon', dest=
'channel_mon', default=
True, help=
'Run Tile raw channles monitoring', action=argparse.BooleanOptionalAction)
77 mon.add_argument(
'--channel-time-mon', dest=
'channel_time_mon', default=
None, help=
'Run Tile raw channles time monitoring', action=argparse.BooleanOptionalAction)
78 mon.add_argument(
'--tmdb-mon', dest=
'tmdb_mon', default=
True, help=
'Run TMDB monitoring', action=argparse.BooleanOptionalAction)
79 mon.add_argument(
'--tmdb-digits-mon', dest=
'tmdb_digits_mon', default=
True, help=
'Run TMDB digits monitoring', action=argparse.BooleanOptionalAction)
80 mon.add_argument(
'--tmdb-channel-mon', dest=
'tmdb_channel_mon', default=
True, help=
'Run TMDB raw channels monitoring', action=argparse.BooleanOptionalAction)
81 mon.add_argument(
'--digi-noise-mon', dest=
'digi_noise_mon', help=
'Run Tile digi noise monitoring (default: True for pedestals run)', action=argparse.BooleanOptionalAction)
82 mon.add_argument(
'--cell-mon', dest=
'cell_mon', help=
'Run Tile Cell monitoring (default: True for physics run)', action=argparse.BooleanOptionalAction)
83 mon.add_argument(
'--dq-mon', dest=
'dq_mon', default=
True, help=
'Run Tile DQ monitoring for physics run', action=argparse.BooleanOptionalAction)
86 run_type_group = parser.add_argument_group(
'Tile Run Type')
87 run_type = run_type_group.add_mutually_exclusive_group()
88 run_type.add_argument(
'--cis', action=
'store_true', help=
'Tile CIS run type')
89 run_type.add_argument(
'--mono-cis', action=
'store_true', dest=
'mono_cis', help=
'Tile mono CIS run type')
90 run_type.add_argument(
'--gap-cis', action=
'store_true', dest=
'gap_cis', help=
'Tile gap CIS run type')
91 run_type.add_argument(
'--laser', action=
'store_true', help=
'Tile laser run type')
92 run_type.add_argument(
'--gap-laser', action=
'store_true', dest=
'gap_laser', help=
'Tile gap laser run type')
93 run_type.add_argument(
'--pedestals', action=
'store_true', help=
'Tile pedestals run type')
94 run_type.add_argument(
'--physics', action=
'store_true', help=
'Tile physics run type')
97 method = parser.add_argument_group(
'Tile reconstuction method')
98 method.add_argument(
'--opt2', default=
True, help=
'Use Tile Opt2 reconstuction method', action=argparse.BooleanOptionalAction)
99 method.add_argument(
'--opt-atlas', dest=
'opt_atlas', default=
True, help=
'Use Tile OptATLAS reconstuction method', action=argparse.BooleanOptionalAction)
100 method.add_argument(
'--fit', default=
True, help=
'Use Tile Fit reconstuction method', action=argparse.BooleanOptionalAction)
101 method.add_argument(
'--of1', default=
False, help=
'Use Tile OF1 reconstuction method', action=argparse.BooleanOptionalAction)
102 method.add_argument(
'--mf', default=
False, help=
'Use Tile MF reconstuction method', action=argparse.BooleanOptionalAction)
104 run_period_group = parser.add_argument_group(
'LHC Run period')
105 run_period = run_period_group.add_mutually_exclusive_group()
106 run_period.add_argument(
'--run2', action=
'store_true', help=
'LHC Run2 period')
107 run_period.add_argument(
'--run3', action=
'store_true', help=
'LHC Run3 period')
109 parser.add_argument(
'--upd4', action=
'store_true', help=
'Use UPD4 conditions')