ATLAS Offline Software
CalibrationDefaultSourceConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2 
3 from MuonCalibDbOperations.MuonCalibDbOperationsConf import MuonCalib__MuonCalibDefaultCalibrationSource
4 
6 
7  __t0_regions=[]
8  __t0=[]
9  __rt_regions=[]
10  __rt_files=[]
11  __time_slewing_applid_t0=[]
12  __bfield_correction_applid_t0=[]
13  __time_slewing_applid_rt=[]
14  __bfield_correction_applid_rt=[]
15 
16 
17  def AddDefaultT0(self, region, t0, time_slewing_applied=True, bfield_applied=True):
18  self.__t0_regions.append(region)
19  self.__t0.append(t0)
20  self.__time_slewing_applid_t0.append(time_slewing_applied)
21  self.__bfield_correction_applid_t0.append(bfield_applied)
22 
23  def AddDefaultRt(self, region, filename, time_slewing_applied=True, bfield_applied=True):
24  self.__rt_regions.append(region)
25  self.__rt_files.append(filename)
26  self.__time_slewing_applid_rt.append(time_slewing_applied)
27  self.__bfield_correction_applid_rt.append(bfield_applied)
28 
29  def ConfigureTool(self, tool_svc, cool_inserter):
30  if len(self.__t0_regions) == 0 and len(self.__rt_regions) ==0:
31  return
32  MuonCalibDefaultCalibrationSource = MuonCalib__MuonCalibDefaultCalibrationSource()
33  tool_svc += MuonCalibDefaultCalibrationSource
34  cool_inserter.CalibrationSources.append( MuonCalibDefaultCalibrationSource )
35 
36  MuonCalibDefaultCalibrationSource.T0Regions = self.__t0_regions[:]
37  MuonCalibDefaultCalibrationSource.T0 = self.__t0[:]
38  MuonCalibDefaultCalibrationSource.TimeSlewingAppliedT0 = self.__time_slewing_applid_t0[:]
39  MuonCalibDefaultCalibrationSource.BFieldCorrectionAppliedT0 = self.__bfield_correction_applid_t0[:]
40 
41 
42  MuonCalibDefaultCalibrationSource.RtRegions = self.__rt_regions[:]
43  MuonCalibDefaultCalibrationSource.RtFiles = self.__rt_files[:]
44  MuonCalibDefaultCalibrationSource.TimeSlewingAppliedRt = self.__time_slewing_applid_rt[:]
45  MuonCalibDefaultCalibrationSource.BFieldCorrectionAppliedRt = self.__bfield_correction_applid_rt[:]
46 
47 
48 MuonCalib_gCalibrationDefaultSourceConfig = MuonCalib__CalibrationDefaultSourceConfig()
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__time_slewing_applid_t0
list __time_slewing_applid_t0
Definition: CalibrationDefaultSourceConfig.py:11
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__bfield_correction_applid_t0
list __bfield_correction_applid_t0
Definition: CalibrationDefaultSourceConfig.py:12
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__rt_regions
list __rt_regions
Definition: CalibrationDefaultSourceConfig.py:9
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.ConfigureTool
def ConfigureTool(self, tool_svc, cool_inserter)
Definition: CalibrationDefaultSourceConfig.py:29
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__time_slewing_applid_rt
list __time_slewing_applid_rt
Definition: CalibrationDefaultSourceConfig.py:13
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__bfield_correction_applid_rt
list __bfield_correction_applid_rt
Definition: CalibrationDefaultSourceConfig.py:14
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__t0_regions
list __t0_regions
Definition: CalibrationDefaultSourceConfig.py:7
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig
Definition: CalibrationDefaultSourceConfig.py:5
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.AddDefaultT0
def AddDefaultT0(self, region, t0, time_slewing_applied=True, bfield_applied=True)
Definition: CalibrationDefaultSourceConfig.py:17
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__rt_files
list __rt_files
Definition: CalibrationDefaultSourceConfig.py:10
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.AddDefaultRt
def AddDefaultRt(self, region, filename, time_slewing_applied=True, bfield_applied=True)
Definition: CalibrationDefaultSourceConfig.py:23
CalibrationDefaultSourceConfig.MuonCalib__CalibrationDefaultSourceConfig.__t0
list __t0
Definition: CalibrationDefaultSourceConfig.py:8