4 from __future__
import print_function
7 from PyCool
import cool
8 from CaloCondPhysAlgs.CaloBlobWriter
import createSqlite
12 print (sys.argv[0],
"<sqlitename> {<textfile> <Run1> <LB1> <Run2> <LB2>}")
19 sqliteName=sys.argv[1]
20 folderName=
"/LAR/TimeCorrectionOfl/CellTimeOffset"
21 foldertag=
"".
join(folderName.split(
"/")) +
"-empty"
22 iovMin = cool.ValidityKeyMin
23 iovMax = cool.ValidityKeyMax
29 if not os.access(filename,os.R_OK):
30 print (
"ERROR Can't read input file %s" % filename)
32 print (
"Input text file:",filename )
38 iovMin=run <<32 | (LB & 0xFFFFFFFF)
39 print (
"IOV-from run ",run,
"LB",LB)
45 iovMax=run <<32 | (LB & 0xFFFFFFFF)
46 print (
"IOV-until run ",run,
"LB",LB)
50 createSqlite(sqliteName,folderName,foldertag,iovMin,iovMax,filename,defaultvalue)
53 print (
"export COOL_FLASK=https://cool-proxy-app.cern.ch")
54 print (
"/afs/cern.ch/user/a/atlcond/utilsproxy/AtlCoolMerge.py ",sqliteName,
" CONDBR2 ATONR_COOLOFL_GPN ATLAS_COOLOFL_LAR_W <password>")