3 from __future__
import print_function
6 import CoolConvUtilities.AtlCoolLib
as AtlCoolLib
7 from MuonCalibDbOperations.MuonCalibResolveTag
import ResolveTag
10 MuonCalib__gCalibrationTargetConfigs = []
15 if FolderType
not in [
"T0",
"RT",
"T0BLOB",
"RTBLOB"]:
16 print (
"FATAL Folder type must be 'T0[BLOB]' or 'RT[BLOB]'")
28 elif FolderType ==
"T0BLOB":
31 self.
Folder =
"/MDT/T0BLOB"
36 elif FolderType ==
"RTBLOB":
39 self.
Folder =
"/MDT/RTBLOB"
41 MuonCalib__gCalibrationTargetConfigs.append(self)
45 print (
"INFO Tag for", self.
Folder,
"already set to", self.
Tag)
46 print (
"INFO Not resolving global tag")
49 db=AtlCoolLib.indirectOpen(dbstring, readOnly=
True, debug=
True)
50 except Exception
as e:
51 print (
'Problem opening database',e)
53 cool_folder=db.getFolder(self.
Folder)
55 print (
"INFO tag '" + tag +
"' resolves to '" + self.
Tag +
"' for folder '" + self.
Folder +
"'")
62 coolInserter.T0Folder.append(self.
Folder)
63 coolInserter.T0Tag.append(self.
Tag)
64 coolInserter.T0FolderCompress.append(self.
Compress)
66 coolInserter.RtFolder.append(self.
Folder)
67 coolInserter.RtTag.append(self.
Tag)
68 coolInserter.RtFolderCompress.append(self.
Compress)