ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig Class Reference
Collaboration diagram for CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig:

Public Member Functions

def __init__ (self, site_name, head_id, region="", store_rt=True, store_t0=True)
 
def GenCalibrationSource (self, reader_passwd)
 
def GetTime (self, reader_cursor)
 

Public Attributes

 UserName
 
 SiteName
 
 HeadID
 
 Region
 
 StoreRt
 
 StoreT0
 
 T0Offset
 
 DriftTimeOffsetsVsR
 
 TimeSlewingApplied
 
 BFieldCorrectionApplied
 

Private Attributes

 __name
 

Static Private Attributes

dictionary __working_schemata = {'MP': "ATLAS_MUONCALIBR_MPI", 'RM': "ATLAS_MUONCALIBR_RM", 'UM': "ATLAS_MUONCALIBR_UM"}
 

Detailed Description

Definition at line 10 of file CalibrationSourceConfig.py.

Constructor & Destructor Documentation

◆ __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):
15 
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())
19  sys.exit(1)
20 
21  self.UserName="ATLAS_MUONCALIBR_READER"
22  self.SiteName=site_name
23  self.HeadID=head_id
24  self.Region=region
25  self.StoreRt=store_rt
26  self.StoreT0=store_t0
27  self.T0Offset=0.0
28  self.DriftTimeOffsetsVsR=[]
29  self.__name = "MuonCalibDbCalibrationSource_" + str(len(MuonCalib__gCalibrationSourceConfigs))
30  MuonCalib__gCalibrationSourceConfigs.append(self)
31  self.TimeSlewingApplied=True
32  self.BFieldCorrectionApplied=True
33 

Member Function Documentation

◆ 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
40  else:
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
53  else:
54  source.ConnectionString = "oracle://ATLAS_MUON/" + source.UserName
55  return source
56 

◆ 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()
60  return lowtime
61 
62 

Member Data Documentation

◆ __name

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.__name
private

Definition at line 29 of file CalibrationSourceConfig.py.

◆ __working_schemata

dictionary CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.__working_schemata = {'MP': "ATLAS_MUONCALIBR_MPI", 'RM': "ATLAS_MUONCALIBR_RM", 'UM': "ATLAS_MUONCALIBR_UM"}
staticprivate

Definition at line 12 of file CalibrationSourceConfig.py.

◆ BFieldCorrectionApplied

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.BFieldCorrectionApplied

Definition at line 32 of file CalibrationSourceConfig.py.

◆ DriftTimeOffsetsVsR

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.DriftTimeOffsetsVsR

Definition at line 28 of file CalibrationSourceConfig.py.

◆ HeadID

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.HeadID

Definition at line 23 of file CalibrationSourceConfig.py.

◆ Region

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.Region

Definition at line 24 of file CalibrationSourceConfig.py.

◆ SiteName

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.SiteName

Definition at line 22 of file CalibrationSourceConfig.py.

◆ StoreRt

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.StoreRt

Definition at line 25 of file CalibrationSourceConfig.py.

◆ StoreT0

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.StoreT0

Definition at line 26 of file CalibrationSourceConfig.py.

◆ T0Offset

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.T0Offset

Definition at line 27 of file CalibrationSourceConfig.py.

◆ TimeSlewingApplied

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.TimeSlewingApplied

Definition at line 31 of file CalibrationSourceConfig.py.

◆ UserName

CalibrationSourceConfig.MuonCalib__CalibrationSourceConfig.UserName

Definition at line 21 of file CalibrationSourceConfig.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798