10 """Return component accumulator with configured private Tile Wiener raw channel builder tool
13 flags -- Athena configuration flags
16 name = kwargs.pop(
'name',
'TileRawChannelBuilderWiener')
17 kwargs.setdefault(
'TileRawChannelContainer',
'TileRawChannelWiener')
19 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
22 if 'TileCondToolNoiseSample' not in kwargs:
23 from TileConditions.TileSampleNoiseConfig
import TileCondToolNoiseSampleCfg
25 kwargs[
'TileCondToolNoiseSample'] = sampleNoiseTool
27 kwargs.setdefault(
'correctTime', flags.Tile.correctTime)
28 kwargs.setdefault(
'MC', flags.Input.isMC)
29 kwargs.setdefault(
'BestPhase',
False)
30 kwargs.setdefault(
'MaxIterations', 5)
31 kwargs.setdefault(
'Minus1Iteration',
True)
32 kwargs.setdefault(
'PedestalMode', 1)
33 kwargs.setdefault(
'AmplitudeCorrection',
False)
34 kwargs.setdefault(
'TimeCorrection',
False)
36 if flags.Tile.correctTime
and 'TileCondToolTiming' not in kwargs:
37 from TileConditions.TileTimingConfig
import TileCondToolTimingCfg
39 kwargs[
'TileCondToolTiming'] = timingTool
41 TileRawChannelBuilderWiener=CompFactory.TileRawChannelBuilderWienerFilter
42 from TileRecUtils.TileRawChannelBuilderConfig
import TileRawChannelBuilderCfg
43 rawChanBuilder = acc.popToolsAndMerge(
TileRawChannelBuilderCfg(flags, name, TileRawChannelBuilderWiener, **kwargs) )
44 acc.setPrivateTools(rawChanBuilder)