ATLAS Offline Software
Namespaces | Variables
run2time.py File Reference

Go to the source code of this file.

Namespaces

 run2time
 

Variables

 run2time.pwdinfo = open( '/afs/cern.ch/work/s/sctcalib/CondReadPwd', 'r' ).read()
 
 run2time.pwdinfolist = pwdinfo.split( ' ' )
 
 run2time.pwd = pwdinfolist[0]
 
 run2time.runNum = int(sys.argv[1])
 
tuple run2time.since = (runNum << 32)
 
tuple run2time.until = ((runNum+1) << 32)-1
 
 run2time.dbSvc = cool.DatabaseSvcFactory.databaseService()
 
string run2time.RunCtrlDB = 'oracle://ATLAS_COOLPROD;schema=ATLAS_COOLONL_TDAQ;dbname=COMP200;user=ATLAS_COOL_READER;password='+pwd
 
 run2time.RunCtrlDb = dbSvc.openDatabase( RunCtrlDB )
 
 run2time.folder_runCtrl = RunCtrlDb.getFolder('/TDAQ/RunCtrl/EOR_Params')
 
 run2time.chList = folder_runCtrl.listChannels()
 
 run2time.objs = folder_runCtrl.browseObjects(since,until,cool.ChannelSelection(Id))
 
 run2time.payl = obj.payload()
 
 run2time.SORTime = payl['SORTime']
 
 run2time.EORTime = payl['EORTime']
 
tuple run2time.iovstart = obj.since()
 
tuple run2time.iovend = obj.until()
 
tuple run2time.nLB = iovend-(iovstart+1)
 
int run2time.times1 = SORTime/1000000000L
 
int run2time.times2 = EORTime/1000000000L
 
 run2time.ts1 = time.gmtime(times1)
 
 run2time.ts2 = time.gmtime(times2)
 
 run2time.startTime = time.strftime('%Y-%m-%d:%H:%M:%S/UTC',ts1)
 
 run2time.endTime = time.strftime('%Y-%m-%d:%H:%M:%S/UTC',ts2)
 
 run2time.fw = open('time.txt', 'w')