8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
15 from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
16 result.merge (GeoModelCfg (flags))
18 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
19 from TileGeoModel.TileGMConfig
import TileGMCfg
24 from LArCabling.LArCablingConfig
import LArFebRodMappingCfg, LArCalibIdMappingCfg
28 from TileConditions.TileInfoLoaderConfig
import TileInfoLoaderCfg
29 result.merge (TileInfoLoaderCfg (flags))
31 from TileConditions.TileEMScaleConfig
import TileCondToolEmscaleCfg
32 acc = TileCondToolEmscaleCfg (flags)
33 emscaleTool = acc.popPrivateTools()
36 from TileConditions.TileSampleNoiseConfig
import TileCondToolNoiseSampleCfg
37 acc = TileCondToolNoiseSampleCfg (flags)
38 noiseSampleTool = acc.popPrivateTools()
41 from LArRecUtils.LArADC2MeVCondAlgConfig
import LArADC2MeVCondAlgCfg
42 result.merge (LArADC2MeVCondAlgCfg (flags))
43 adc2mev = result.getCondAlgo (
'LArADC2MeVCondAlg')
45 TileCondIdTransforms=CompFactory.TileCondIdTransforms
47 CaloEstimatedGainTool=CompFactory.CaloEstimatedGainTool
48 tool = CaloEstimatedGainTool (
'CaloEstimatedGainTool',
49 ADC2MeVKey = adc2mev.LArADC2MeVKey,
51 TileCondToolEmscale = emscaleTool,
52 TileCondToolNoiseSample = noiseSampleTool)
54 result.setPrivateTools (tool)
59 if __name__ ==
"__main__":
60 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
61 from AthenaConfiguration.TestDefaults
import defaultTestFiles
64 flags1.Input.Files = defaultTestFiles.RDO_RUN2
66 acc1 = CaloEstimatedGainToolCfg (flags1)
67 only = [
'CaloEstimatedGainTool']
68 acc1.printCondAlgs(summariseProps=
True, onlyComponents = only)
71 Configurable = CompFactory.CaloEstimatedGainTool.__bases__[0]
73 if not isinstance(c, Configurable):
return str(c)
77 print (
'ComponentAccumulator:', sorted_repr (acc1.popPrivateTools()))