10def calculate_idbs(run_range):
11
12 lbtime = inverse_lblb(fetch_iovs("LBLB", runs=run_range))
13
14 idbs = IDBS()
15 idbs.input_db = "COOLOFL_INDET/CONDBR2"
16
17 result_iovs = idbs.run(lbtime)
18
19 print "Will write the following:"
20 pprint_objects(result_iovs)
21 for entry in result_iovs:
22 print entry.since.run, entry.since.lumi, "->", entry.until.lumi, entry.Code
23
24 write_iovs("idbs_test.db/CONDBR2::/GLOBAL/DETSTATUS/DCSOFL",
25 result_iovs, dcsofl_cool_record())
26