|
dictionary | __working_schemata = {'MP': "ATLAS_MUONCALIBR_MPI", 'RM': "ATLAS_MUONCALIBR_RM", 'UM': "ATLAS_MUONCALIBR_UM"} |
|
Definition at line 10 of file CalibrationSourceConfig.py.
◆ __init__()
def CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.__init__ |
( |
|
self, |
|
|
|
site_name, |
|
|
|
head_id, |
|
|
|
region = "" , |
|
|
|
store_rt = True , |
|
|
|
store_t0 = True |
|
) |
| |
Definition at line 14 of file CalibrationSourceConfig.py.
14 def __init__(self, site_name, head_id, region="", store_rt=True, store_t0=True):
16 if site_name
not in self.__working_schemata:
17 print (
"FATAL: unknown site name ", site_name)
18 print (
"FATAL: must be one of", self.__working_schemata.
keys())
21 self.UserName=
"ATLAS_MUONCALIBR_READER"
22 self.SiteName=site_name
28 self.DriftTimeOffsetsVsR=[]
29 self.__name =
"MuonCalibDbCalibrationSource_" +
str(len(MuonCalib__gCalibrationSourceConfigs))
30 MuonCalib__gCalibrationSourceConfigs.append(self)
31 self.TimeSlewingApplied=
True
32 self.BFieldCorrectionApplied=
True
◆ GenCalibrationSource()
def CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.GenCalibrationSource |
( |
|
self, |
|
|
|
reader_passwd |
|
) |
| |
Definition at line 34 of file CalibrationSourceConfig.py.
34 def GenCalibrationSource(self, reader_passwd):
35 source=MuonCalib__MuonCalibDbCalibrationSource(self.__name)
36 source.WorkingSchema = self.__working_schemata[self.SiteName]
37 source.UserName = self.UserName
38 if hasattr(self,
"ReaderPassword"):
39 source.Password = self.ReaderPassword
41 source.Password = reader_passwd
42 source.SiteName = self.SiteName
43 source.HeadId = self.HeadID
44 source.Region = self.Region
45 source.StoreRT = self.StoreRt
46 source.StoreT0 = self.StoreT0
47 source.T0Offset = self.T0Offset
48 source.DriftTimeOffsetsVsR = self.DriftTimeOffsetsVsR
49 source.TimeSlewingApplied = self.TimeSlewingApplied
50 source.BFieldCorrectionApplied = self.BFieldCorrectionApplied
51 if hasattr(self,
"ConnectionString"):
52 source.ConnectionString = self.ConnectionString
54 source.ConnectionString =
"oracle://ATLAS_MUON/" + source.UserName
◆ GetTime()
def CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.GetTime |
( |
|
self, |
|
|
|
reader_cursor |
|
) |
| |
Definition at line 57 of file CalibrationSourceConfig.py.
57 def GetTime(self, reader_cursor):
58 reader_cursor.execute(
"select LOWTIME from " + self.__working_schemata[self.SiteName] +
".MDT_HEAD where head_id=:hid", {
'hid': self.HeadID})
59 lowtime, =reader_cursor.fetchone()
◆ __name
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.__name |
|
private |
◆ __working_schemata
dictionary CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.__working_schemata = {'MP': "ATLAS_MUONCALIBR_MPI", 'RM': "ATLAS_MUONCALIBR_RM", 'UM': "ATLAS_MUONCALIBR_UM"} |
|
staticprivate |
◆ BFieldCorrectionApplied
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.BFieldCorrectionApplied |
◆ DriftTimeOffsetsVsR
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.DriftTimeOffsetsVsR |
◆ HeadID
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.HeadID |
◆ Region
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.Region |
◆ SiteName
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.SiteName |
◆ StoreRt
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.StoreRt |
◆ StoreT0
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.StoreT0 |
◆ T0Offset
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.T0Offset |
◆ TimeSlewingApplied
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.TimeSlewingApplied |
◆ UserName
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.UserName |
The documentation for this class was generated from the following file: