Skip to content
Snippets Groups Projects

update to use of git db

Merged Wouter Hulsbergen requested to merge wh_alignmentusegitdb into master
3 files
+ 50
32
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -36,13 +36,7 @@ if options:
#options = [ "importOptions(%r)" % f for f in args ]
#importOptions("$ESCHERROOT/options/Escher.py")
#importOptions("$ESCHERROOT/options/DC06-Data.py")
#from Configurables import Escher
#escher = Escher()
# mae sure that the algorithms know how many iterations are coming
# make sure that the algorithms know how many iterations are coming
from Configurables import TAlignment
TAlignment().NumIterations = opts.numiter
TAlignment().UpdateInFinalize = False
@@ -51,14 +45,18 @@ TAlignment().UpdateInFinalize = False
if opts.aligndb:
counter = 1
for db in opts.aligndb:
from Configurables import ( CondDB, CondDBAccessSvc )
alignCond = CondDBAccessSvc( 'AlignCond' + str(counter) )
if opts.lhcbcondtag:
alignCond.ConnectionString = 'sqlite_file:' + db + '/LHCBCOND'
else:
alignCond.ConnectionString = 'sqlite_file:' + db + '/CALIBOFF'
CondDB().addLayer( alignCond )
counter += 1
from Configurables import CondDB
if ".db" in db:
# this is an sqlite file
from Configurables import CondDBAccessSvc
alignCond = CondDBAccessSvc( 'AlignCond' + str(counter) )
alignCond.ConnectionString = 'sqlite_file:' + db + condtag
CondDB().addLayer( alignCond )
counter += 1
else:
# this is a git layer
CondDB().addLayer( db )
print "adding layer: ", db
if opts.dddb:
counter = 1
Loading