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