ATLAS Offline Software
Functions
calc_idbs Namespace Reference

Functions

def calculate_idbs (run_range)
 

Function Documentation

◆ calculate_idbs()

def calc_idbs.calculate_idbs (   run_range)

Definition at line 10 of file calc_idbs.py.

10 def calculate_idbs(run_range):
11  # List of lumiblocks to run over
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 
python.iov_arrangement.inverse_lblb
def inverse_lblb(iovs)
Definition: iov_arrangement.py:34
python.db.fetch_iovs
def fetch_iovs(folder_name, since=None, until=None, channels=None, tag="", what="all", max_records=-1, with_channel=True, loud=False, database=None, convert_time=False, named_channels=False, selection=None, runs=None, with_time=False, unicode_strings=False)
Definition: DQUtils/python/db.py:67
python.utils.pprint_objects
def pprint_objects(objects, where=stdout)
Definition: DataQuality/DQUtils/python/utils.py:129
python.db.write_iovs
def write_iovs(folder_name, iovs, record, multiversion=True, tag="", create=False, storage_buffer=False)
Definition: DQUtils/python/db.py:213
python.libcore.dcsofl_cool_record
def dcsofl_cool_record()
Definition: libcore.py:8
calc_idbs.calculate_idbs
def calculate_idbs(run_range)
Definition: calc_idbs.py:10