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>}")
20 sqliteName=sys.argv[1]
21 folderName=
"/LAR/CellCorrOfl/EnergyCorr"
22 foldertag=
"".
join(folderName.split(
"/")) +
"-RUN2-UPD4-03"
23 iovMin = cool.ValidityKeyMin
24 iovMax = cool.ValidityKeyMax
30 if not os.access(filename,os.R_OK):
31 print (
"ERROR Can't read input file %s" % filename)
33 print (
"Input text file:",filename )
39 iovMin=run <<32 | (LB & 0xFFFFFFFF)
40 print (
"IOV-from run ",run,
"LB",LB)
46 iovMax=run <<32 | (LB & 0xFFFFFFFF)
47 print (
"IOV-until run ",run,
"LB",LB)
50 print (
"Default value",defaultvalue)
51 createSqlite(sqliteName,folderName,foldertag,iovMin,iovMax,filename,defaultvalue)
54 print (
"export COOL_FLASK=https://cool-proxy-app.cern.ch")
55 print (
"/afs/cern.ch/user/a/atlcond/utils22/AtlCoolMerge.py",sqliteName,
"CONDRB2 ATONR_COOLOFL_GPN ATLAS_COOLOFL_LAR_W <password>")