Return component accumulator with configured Tile DQ status algorithm
Arguments:
flags -- Athena configuration flags
TileDQstatus - name of Tile DQ status produced
TileDigitsContainer - name of Tile digits container, provided it will be used,
otherwise it will be determined automatically depending on flags.
TileRawChannelContainer - name of Tile raw channel container, provided it will be used,
otherwise it will be determined automatically depending on flags.
TileBeamElemContainer - name of Tile beam elements container, provided it will be used,
otherwise it will be determined automatically depending on flags.
Definition at line 31 of file TileDQstatusConfig.py.
32 """Return component accumulator with configured Tile DQ status algorithm
35 flags -- Athena configuration flags
36 TileDQstatus - name of Tile DQ status produced
37 TileDigitsContainer - name of Tile digits container, provided it will be used,
38 otherwise it will be determined automatically depending on flags.
39 TileRawChannelContainer - name of Tile raw channel container, provided it will be used,
40 otherwise it will be determined automatically depending on flags.
41 TileBeamElemContainer - name of Tile beam elements container, provided it will be used,
42 otherwise it will be determined automatically depending on flags.
47 kwargs.setdefault(
'TileDQstatus',
'TileDQstatus')
49 name = kwargs[
'TileDQstatus'] +
'Alg'
50 kwargs.setdefault(
'name', name)
52 if not (flags.Input.isMC
or flags.Overlay.DataOverlay
or flags.Input.Format
is Format.POOL):
53 if flags.Tile.RunType
in [TileRunType.PHY, TileRunType.GAPLAS, TileRunType.GAPCIS]:
54 beamElemContainer =
""
56 beamElemContainer =
'TileBeamElemCnt'
58 if flags.Tile.readDigits:
59 digitsContainer =
'TileDigitsCnt'
63 rawChannelContainer =
'TileRawChannelCnt'
65 elif flags.Common.isOverlay
and flags.Overlay.DataOverlay:
66 beamElemContainer =
''
67 digitsContainer = flags.Overlay.BkgPrefix +
'TileDigitsCnt'
68 rawChannelContainer = flags.Overlay.BkgPrefix +
'TileRawChannelCnt'
71 beamElemContainer =
""
73 rawChannelContainer =
""
75 kwargs.setdefault(
'TileBeamElemContainer', beamElemContainer)
76 kwargs.setdefault(
'TileDigitsContainer', digitsContainer)
77 kwargs.setdefault(
'TileRawChannelContainer', rawChannelContainer)
79 if 'TileDQstatusTool' not in kwargs:
81 kwargs[
'TileDQstatusTool'] = tileDQstatusTool
83 TileDQstatusAlg=CompFactory.TileDQstatusAlg