46 pDicts = flags.Input.RunAndLumiOverrideList
47 DataRunNumber = flags.Input.ConditionsRunNumber
51 evt_nbr = el.get(
"evt_nbr",
None)
52 Modifiers +=
add_modifier(run_nbr=el[
"run"], evt_nbr=evt_nbr, time_stamp=el[
"starttstamp"], lbk_nbr=el[
"lb"], nevts=el[
"evts"])
54 assert DataRunNumber >= 0, (
55 "flags.Input.ConditionsRunNumber %d is negative. "
56 "Use a real run number from data." % DataRunNumber)
60 if flags.Exec.MaxEvents > 0:
61 totalNumber = flags.Exec.MaxEvents + 1
62 if flags.Exec.SkipEvents > 0:
63 totalNumber += flags.Exec.SkipEvents
65 InitialTimeStamp = flags.IOVDb.RunToTimestampDict.get(DataRunNumber, 1)
68 Modifiers +=
add_modifier(run_nbr=DataRunNumber, lbk_nbr=FirstLB, time_stamp=InitialTimeStamp, nevts=totalNumber)
69 elif flags.Input.RunNumbers:
72 myRunNumber = flags.Input.RunNumbers[0]
73 assert myRunNumber >= 0, (
74 "flags.Input.RunNumbers[0] %d is negative. "
75 "Use a real run number from data." % myRunNumber)
76 myFirstLB = flags.Input.LumiBlockNumbers[0]
77 myInitialTimeStamp = flags.Input.TimeStamps[0]
81 if flags.Exec.MaxEvents > 0:
82 totalNumber = flags.Exec.MaxEvents + 1
83 if flags.Exec.SkipEvents > 0:
84 totalNumber += flags.Exec.SkipEvents
85 Modifiers +=
add_modifier(run_nbr=myRunNumber, lbk_nbr=myFirstLB, time_stamp=myInitialTimeStamp, nevts=totalNumber)