ATLAS Offline Software
Namespaces | Variables
updateCoolNtuple.py File Reference

Go to the source code of this file.

Namespaces

 updateCoolNtuple
 

Variables

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