3 from __future__
import print_function
6 from MuonCalibDbOperations.MuonCalibDbOperationsConf
import MuonCalib__MuonCalibDbCalibrationSource
8 MuonCalib__gCalibrationSourceConfigs = []
12 __working_schemata={
'MP':
"ATLAS_MUONCALIBR_MPI",
'RM':
"ATLAS_MUONCALIBR_RM",
'UM':
"ATLAS_MUONCALIBR_UM"}
14 def __init__(self, site_name, head_id, region="", store_rt=True, store_t0=True):
17 print (
"FATAL: unknown site name ", site_name)
29 self.
__name =
"MuonCalibDbCalibrationSource_" +
str(len(MuonCalib__gCalibrationSourceConfigs))
30 MuonCalib__gCalibrationSourceConfigs.append(self)
35 source=MuonCalib__MuonCalibDbCalibrationSource(self.
__name)
38 if hasattr(self,
"ReaderPassword"):
39 source.Password = self.ReaderPassword
41 source.Password = reader_passwd
43 source.HeadId = self.
HeadID
44 source.Region = self.
Region
51 if hasattr(self,
"ConnectionString"):
52 source.ConnectionString = self.ConnectionString
54 source.ConnectionString =
"oracle://ATLAS_MUON/" + source.UserName
59 lowtime, =reader_cursor.fetchone()