You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MC/bin/o2dpg_sim_workflow_anchored.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -368,6 +368,7 @@ def main():
368
368
parser.add_argument("--trig-eff", type=float, dest="trig_eff", help="Trigger eff needed for IR", default=-1.0)
369
369
parser.add_argument("--run-time-span-file", type=str, dest="run_span_file", help="Run-time-span-file for exclusions of timestamps (bad data periods etc.)", default="")
370
370
parser.add_argument("--invert-irframe-selection", action='store_true', help="Inverts the logic of --run-time-span-file")
371
+
parser.add_argument("--orbitsPerTF", type=int, help="Force a certain orbits-per-timeframe number; Automatically taken from CCDB if not given.", default=-1)
371
372
parser.add_argument('forward', nargs=argparse.REMAINDER) # forward args passed to actual workflow creation
372
373
args=parser.parse_args()
373
374
print (args)
@@ -383,6 +384,11 @@ def main():
383
384
run_start=GLOparams["SOR"]
384
385
run_end=GLOparams["EOR"]
385
386
387
+
# overwrite with some external choices
388
+
ifargs.orbitsPerTF!=-1:
389
+
print("Adjusting orbitsPerTF from "+str(GLOparams["OrbitsPerTF"]) +" to "+str(args.orbitsPerTF))
390
+
GLOparams["OrbitsPerTF"] =args.orbitsPerTF
391
+
386
392
# determine timestamp, and production offset for the final MC job to run
0 commit comments