5 @file TileTriggerCalibAlgConfig.py
6 @brief Python configuration of TileTriggerDefaultCalibTool tool for the Run III
9 from AthenaConfiguration.Enums
import Format
10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from TileConfiguration.TileConfigFlags
import TileRunType
15 ''' Function to configure TileTriggerDefaultCalibTool tool'''
17 kwargs.setdefault(
'TileRawChannelContainer',
'TileRawChannelFit')
18 kwargs.setdefault(
'TriggerTowerContainer',
'xAODTriggerTowers')
22 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
25 if 'TileCondToolEmscale' not in kwargs:
26 from TileConditions.TileEMScaleConfig
import TileCondToolEmscaleCfg
28 kwargs[
'TileCondToolEmscale'] = emScaleTool
30 from TileGeoModel.TileGMConfig
import TileGMCfg
33 from TileRecUtils.TileDQstatusConfig
import TileDQstatusAlgCfg
37 if flags.Input.Format
is Format.BS:
38 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
39 acc.merge(
ByteStreamReadCfg(flags, type_names=[
'xAOD::TriggerTowerContainer/xAODTriggerTowers',
40 'xAOD::TriggerTowerAuxContainer/xAODTriggerTowersAux.']))
42 from AthenaConfiguration.ComponentFactory
import CompFactory
43 TileTriggerDefalutCalibTool = CompFactory.TileTriggerDefaultCalibTool
45 acc.setPrivateTools(TileTriggerDefalutCalibTool(**kwargs))
51 @brief Python configuration of TileTriggerCalibAlg algorithm for the Run III
55 ''' Function to configure TileTriggerCalibAlg algorithm'''
57 kwargs.setdefault(
'name',
'TileTriggerCalibAlg')
58 kwargs.setdefault(
'RunType', TileRunType.CIS.getIntValue())
59 kwargs.setdefault(
'RunNumber', flags.Input.RunNumbers[0])
63 if 'TileCalibTools' not in kwargs:
65 kwargs[
'TileCalibTools'] = [triggerCalibTool]
67 from AthenaConfiguration.ComponentFactory
import CompFactory
68 TileTopCalibAlg = CompFactory.TileTopCalibAlg
74 if __name__==
'__main__':
77 from AthenaCommon.Logging
import log
82 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
83 from AthenaConfiguration.TestDefaults
import defaultConditionsTags, defaultGeometryTags, defaultTestFiles
85 flags.Input.Files = defaultTestFiles.RAW_RUN2
86 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
87 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN2_DATA
88 flags.Tile.doFit =
True
89 flags.Tile.RunType = TileRunType.CIS
90 flags.Exec.MaxEvents = 3
95 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
98 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
101 from TileRecUtils.TileRawChannelMakerConfig
import TileRawChannelMakerCfg
106 cfg.printConfig(withDetails =
True, summariseProps =
True)
109 cfg.store(
open(
'TileTriggerCalibAlg.pkl',
'wb') )
115 sys.exit(
not sc.isSuccess())