ATLAS Offline Software
Variables
updateCoolNtuple Namespace Reference

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()
 

Variable Documentation

◆ cur

updateCoolNtuple.cur = oracle.cursor()

Definition at line 29 of file updateCoolNtuple.py.

◆ curtime

updateCoolNtuple.curtime = int(time.time())

Definition at line 44 of file updateCoolNtuple.py.

◆ d

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.

◆ limit

int updateCoolNtuple.limit = curtime - 24*3600+30*60

Definition at line 45 of file updateCoolNtuple.py.

◆ name

string updateCoolNtuple.name = '/tmp/b7eamspot.' + str(os.getpid()) + '.root'

Definition at line 65 of file updateCoolNtuple.py.

◆ oracle

updateCoolNtuple.oracle = cx_Oracle.connect(dsn="ATLAS_COOLPROD",user="ATLAS_COOL_READER_U",password="XXXXXXX")

Definition at line 28 of file updateCoolNtuple.py.

◆ run

updateCoolNtuple.run = min(set(runsExited + runsCalib))

Definition at line 60 of file updateCoolNtuple.py.

◆ runMax

int updateCoolNtuple.runMax = run - 1

Definition at line 61 of file updateCoolNtuple.py.

◆ runsCalib

list updateCoolNtuple.runsCalib = [r[0] for r in sorted(d)]

Definition at line 38 of file updateCoolNtuple.py.

◆ runsExited

list updateCoolNtuple.runsExited = [r[0] for r in sorted(d)]

Definition at line 51 of file updateCoolNtuple.py.

◆ stat

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.

◆ status

string updateCoolNtuple.status = "59,83"

Definition at line 62 of file updateCoolNtuple.py.

◆ tag

updateCoolNtuple.tag = COOLUtils.resolveCurrentBeamSpotFolder()

Definition at line 72 of file updateCoolNtuple.py.