9 from __future__
import print_function
12 import CoolConvUtilities.AtlCoolLib
as AtlCoolLib
17 connstring =
'COOLOFL_CALO/OFLP200'
18 db = AtlCoolLib.indirectOpen (connstring,
True,
True)
19 parent = os.path.dirname (folder)
20 fs = db.getFolderSet (parent)
22 subf = db.getFolder (folder)
30 tags = subf.listTags()
33 if t.endswith (
'-dummy'):
41 f.findTagRelation(htag)
42 f.deleteTagRelation(htag)
45 f.createTagRelation (htag, dtag)
46 print (
'Linked', htag)
51 htags, dtag = get_htags (folder)
53 if dbfile.endswith (
'.db'):
54 connstring =
"sqlite://;schema=%s;dbname=OFLP200" % dbfile
57 db = AtlCoolLib.indirectOpen(connstring,
False,
True)
58 f = db.getFolder (folder)
63 linkDummy (
'swcool.db',
'/CALO/Ofl/CaloSwClusterCorrections/deadOTXps')