11def TileLaserDefaulCalibToolCfg(flags, **kwargs):
12
13 ''' Function to configure TileLaserDefaultCalibTool tool'''
14
15 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
16 acc = ComponentAccumulator()
17
18 from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
19 acc.merge( TileCablingSvcCfg(flags) )
20
21 from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
22 acc.merge( TileInfoLoaderCfg(flags) )
23
24 from TileGeoModel.TileGMConfig import TileGMCfg
25 acc.merge(TileGMCfg( flags ))
26
27 from TileRecUtils.TileDQstatusConfig import TileDQstatusAlgCfg
28 acc.merge( TileDQstatusAlgCfg(flags) )
29
30 if 'TileBadChanTool' not in kwargs:
31 from TileConditions.TileBadChannelsConfig import TileBadChanToolCfg
32 badChanTool = acc.popToolsAndMerge( TileBadChanToolCfg(flags) )
33 kwargs['TileBadChanTool'] = badChanTool
34
35 if 'TileCondToolEmscale' not in kwargs:
36 from TileConditions.TileEMScaleConfig import TileCondToolEmscaleCfg
37 emScaleTool = acc.popToolsAndMerge( TileCondToolEmscaleCfg(flags) )
38 kwargs['TileCondToolEmscale'] = emScaleTool
39
40 if 'TileDCSTool' not in kwargs:
41 from TileConditions.TileDCSConfig import TileDCSToolCfg
42 kwargs['TileDCSTool'] = acc.popToolsAndMerge( TileDCSToolCfg(flags) )
43
44 from AthenaConfiguration.ComponentFactory import CompFactory
45 TileLaserDefalutCalibTool = CompFactory.TileLaserDefaultCalibTool
46
47 acc.setPrivateTools(TileLaserDefalutCalibTool(**kwargs))
48
49 return acc
50
51
52'''
53@brief Python configuration of TileLaserCalibAlg algorithm for the Run III
54'''