ATLAS Offline Software
|
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') | |
run2time.chList = folder_runCtrl.listChannels() |
Definition at line 26 of file run2time.py.
run2time.dbSvc = cool.DatabaseSvcFactory.databaseService() |
Definition at line 18 of file run2time.py.
run2time.endTime = time.strftime('%Y-%m-%d:%H:%M:%S/UTC',ts2) |
Definition at line 49 of file run2time.py.
run2time.EORTime = payl['EORTime'] |
Definition at line 36 of file run2time.py.
run2time.folder_runCtrl = RunCtrlDb.getFolder('/TDAQ/RunCtrl/EOR_Params') |
Definition at line 25 of file run2time.py.
run2time.fw = open('time.txt', 'w') |
Definition at line 52 of file run2time.py.
tuple run2time.iovend = obj.until() |
Definition at line 38 of file run2time.py.
tuple run2time.iovstart = obj.since() |
Definition at line 37 of file run2time.py.
Definition at line 39 of file run2time.py.
Definition at line 31 of file run2time.py.
run2time.payl = obj.payload() |
Definition at line 33 of file run2time.py.
run2time.pwd = pwdinfolist[0] |
Definition at line 10 of file run2time.py.
Definition at line 8 of file run2time.py.
run2time.pwdinfolist = pwdinfo.split( ' ' ) |
Definition at line 9 of file run2time.py.
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.
run2time.RunCtrlDb = dbSvc.openDatabase( RunCtrlDB ) |
Definition at line 20 of file run2time.py.
run2time.runNum = int(sys.argv[1]) |
Definition at line 15 of file run2time.py.
tuple run2time.since = (runNum << 32) |
Definition at line 16 of file run2time.py.
run2time.SORTime = payl['SORTime'] |
Definition at line 35 of file run2time.py.
run2time.startTime = time.strftime('%Y-%m-%d:%H:%M:%S/UTC',ts1) |
Definition at line 48 of file run2time.py.
int run2time.times1 = SORTime/1000000000L |
Definition at line 44 of file run2time.py.
int run2time.times2 = EORTime/1000000000L |
Definition at line 45 of file run2time.py.
run2time.ts1 = time.gmtime(times1) |
Definition at line 46 of file run2time.py.
run2time.ts2 = time.gmtime(times2) |
Definition at line 47 of file run2time.py.
tuple run2time.until = ((runNum+1) << 32)-1 |
Definition at line 17 of file run2time.py.