ATLAS Offline Software
|
Variables | |
oracle = cx_Oracle.connect(dsn="ATLAS_COOLPROD",user="ATLAS_COOL_READER_U",password="XXXXXXX") | |
cur = oracle.cursor() | |
d = cur.execute("SELECT RUN FROM ATLAS_COOL_GLOBAL.NEMOP_RUN WHERE ACTIVE=1 AND RUNTYPE LIKE 'Physics' AND STATE=2") | |
list | runsCalib = [r[0] for r in sorted(d)] |
curtime = int(time.time()) | |
int | limit = curtime - 24*3600+30*60 |
list | runsExited = [r[0] for r in sorted(d)] |
run = min(set(runsExited + runsCalib)) | |
int | runMax = run - 1 |
string | status = "59,83" |
string | name = '/tmp/b7eamspot.' + str(os.getpid()) + '.root' |
stat = os.system("beamspotnt.py -q -f %s --status '' --ru %s -s BeamSpotNt merge ~atlidbs/nt/cool/beamspotnt-COOL-Current.root" % (name, runMax) ) | |
tag = COOLUtils.resolveCurrentBeamSpotFolder() | |
updateCoolNtuple.cur = oracle.cursor() |
Definition at line 29 of file updateCoolNtuple.py.
updateCoolNtuple.curtime = int(time.time()) |
Definition at line 44 of file updateCoolNtuple.py.
updateCoolNtuple.d = cur.execute("SELECT RUN FROM ATLAS_COOL_GLOBAL.NEMOP_RUN WHERE ACTIVE=1 AND RUNTYPE LIKE 'Physics' AND STATE=2") |
Definition at line 37 of file updateCoolNtuple.py.
int updateCoolNtuple.limit = curtime - 24*3600+30*60 |
Definition at line 45 of file updateCoolNtuple.py.
string updateCoolNtuple.name = '/tmp/b7eamspot.' + str(os.getpid()) + '.root' |
Definition at line 65 of file updateCoolNtuple.py.
updateCoolNtuple.oracle = cx_Oracle.connect(dsn="ATLAS_COOLPROD",user="ATLAS_COOL_READER_U",password="XXXXXXX") |
Definition at line 28 of file updateCoolNtuple.py.
updateCoolNtuple.run = min(set(runsExited + runsCalib)) |
Definition at line 60 of file updateCoolNtuple.py.
int updateCoolNtuple.runMax = run - 1 |
Definition at line 61 of file updateCoolNtuple.py.
Definition at line 38 of file updateCoolNtuple.py.
Definition at line 51 of file updateCoolNtuple.py.
updateCoolNtuple.stat = os.system("beamspotnt.py -q -f %s --status '' --ru %s -s BeamSpotNt merge ~atlidbs/nt/cool/beamspotnt-COOL-Current.root" % (name, runMax) ) |
Definition at line 67 of file updateCoolNtuple.py.
string updateCoolNtuple.status = "59,83" |
Definition at line 62 of file updateCoolNtuple.py.
updateCoolNtuple.tag = COOLUtils.resolveCurrentBeamSpotFolder() |
Definition at line 72 of file updateCoolNtuple.py.