9def TileCellNoiseFilterCfg(flags, **kwargs):
10 """Return component accumulator with configured private Tile cell noise filter tool
11
12 Arguments:
13 flags -- Athena configuration flags
14 UseCaloNoise -- use Calo noise conditions object. Defaults to False.
15 """
16
17 acc = ComponentAccumulator()
18
19 useCaloNoise = kwargs.get('UseCaloNoise', False)
20
21 from TileGeoModel.TileGMConfig import TileGMCfg
22 acc.merge(TileGMCfg(flags))
23
24 TileCellNoiseFilter=CompFactory.TileCellNoiseFilter
26
27 from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
28 acc.merge( TileEMScaleCondAlgCfg(flags) )
29
30 if useCaloNoise:
31 from CaloTools.CaloNoiseCondAlgConfig import CaloNoiseCondAlgCfg
32 acc.merge( CaloNoiseCondAlgCfg(flags, 'electronicNoise') )
33 tileCellNoiseFilter.CaloNoise = 'electronicNoise'
34 else:
35 from TileConditions.TileSampleNoiseConfig import TileSampleNoiseCondAlgCfg
36 acc.merge( TileSampleNoiseCondAlgCfg(flags) )
37
38 from TileConditions.TileBadChannelsConfig import TileBadChanToolCfg
39 badChanTool = acc.popToolsAndMerge( TileBadChanToolCfg(flags) )
40 tileCellNoiseFilter.TileBadChanTool = badChanTool
41
42 acc.setPrivateTools( tileCellNoiseFilter )
43
44 return acc
45
46
This tool subtracts common-mode noise from all TileCells.