ATLAS Offline Software
Variables
run2time Namespace Reference

Variables

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

Variable Documentation

◆ chList

run2time.chList = folder_runCtrl.listChannels()

Definition at line 26 of file run2time.py.

◆ dbSvc

run2time.dbSvc = cool.DatabaseSvcFactory.databaseService()

Definition at line 18 of file run2time.py.

◆ endTime

run2time.endTime = time.strftime('%Y-%m-%d:%H:%M:%S/UTC',ts2)

Definition at line 49 of file run2time.py.

◆ EORTime

run2time.EORTime = payl['EORTime']

Definition at line 36 of file run2time.py.

◆ folder_runCtrl

run2time.folder_runCtrl = RunCtrlDb.getFolder('/TDAQ/RunCtrl/EOR_Params')

Definition at line 25 of file run2time.py.

◆ fw

run2time.fw = open('time.txt', 'w')

Definition at line 52 of file run2time.py.

◆ iovend

tuple run2time.iovend = obj.until()

Definition at line 38 of file run2time.py.

◆ iovstart

tuple run2time.iovstart = obj.since()

Definition at line 37 of file run2time.py.

◆ nLB

tuple run2time.nLB = iovend-(iovstart+1)

Definition at line 39 of file run2time.py.

◆ objs

run2time.objs = folder_runCtrl.browseObjects(since,until,cool.ChannelSelection(Id))

Definition at line 31 of file run2time.py.

◆ payl

run2time.payl = obj.payload()

Definition at line 33 of file run2time.py.

◆ pwd

run2time.pwd = pwdinfolist[0]

Definition at line 10 of file run2time.py.

◆ pwdinfo

run2time.pwdinfo = open( '/afs/cern.ch/work/s/sctcalib/CondReadPwd', 'r' ).read()

Definition at line 8 of file run2time.py.

◆ pwdinfolist

run2time.pwdinfolist = pwdinfo.split( ' ' )

Definition at line 9 of file run2time.py.

◆ RunCtrlDB

string run2time.RunCtrlDB = 'oracle://ATLAS_COOLPROD;schema=ATLAS_COOLONL_TDAQ;dbname=COMP200;user=ATLAS_COOL_READER;password='+pwd

Definition at line 19 of file run2time.py.

◆ RunCtrlDb

run2time.RunCtrlDb = dbSvc.openDatabase( RunCtrlDB )

Definition at line 20 of file run2time.py.

◆ runNum

run2time.runNum = int(sys.argv[1])

Definition at line 15 of file run2time.py.

◆ since

tuple run2time.since = (runNum << 32)

Definition at line 16 of file run2time.py.

◆ SORTime

run2time.SORTime = payl['SORTime']

Definition at line 35 of file run2time.py.

◆ startTime

run2time.startTime = time.strftime('%Y-%m-%d:%H:%M:%S/UTC',ts1)

Definition at line 48 of file run2time.py.

◆ times1

int run2time.times1 = SORTime/1000000000L

Definition at line 44 of file run2time.py.

◆ times2

int run2time.times2 = EORTime/1000000000L

Definition at line 45 of file run2time.py.

◆ ts1

run2time.ts1 = time.gmtime(times1)

Definition at line 46 of file run2time.py.

◆ ts2

run2time.ts2 = time.gmtime(times2)

Definition at line 47 of file run2time.py.

◆ until

tuple run2time.until = ((runNum+1) << 32)-1

Definition at line 17 of file run2time.py.