5 import CoolConvUtilities.AtlCoolLib
as AtlCoolLib
6 from MuonCalibDbOperations.MuonCalibResolveTag
import ResolveTag
9 MuonCalib__gCalibrationTargetConfigs = []
14 if FolderType
not in [
"T0",
"RT",
"T0BLOB",
"RTBLOB"]:
15 print (
"FATAL Folder type must be 'T0[BLOB]' or 'RT[BLOB]'")
27 elif FolderType ==
"T0BLOB":
30 self.
Folder =
"/MDT/T0BLOB"
35 elif FolderType ==
"RTBLOB":
38 self.
Folder =
"/MDT/RTBLOB"
40 MuonCalib__gCalibrationTargetConfigs.append(self)
44 print (
"INFO Tag for", self.
Folder,
"already set to", self.
Tag)
45 print (
"INFO Not resolving global tag")
48 db=AtlCoolLib.indirectOpen(dbstring, readOnly=
True, debug=
True)
49 except Exception
as e:
50 print (
'Problem opening database',e)
52 cool_folder=db.getFolder(self.
Folder)
54 print (
"INFO tag '" + tag +
"' resolves to '" + self.
Tag +
"' for folder '" + self.
Folder +
"'")
61 coolInserter.T0Folder.append(self.
Folder)
62 coolInserter.T0Tag.append(self.
Tag)
63 coolInserter.T0FolderCompress.append(self.
Compress)
65 coolInserter.RtFolder.append(self.
Folder)
66 coolInserter.RtTag.append(self.
Tag)
67 coolInserter.RtFolderCompress.append(self.
Compress)