ATLAS Offline Software
Loading...
Searching...
No Matches
TileRawChannelMakerConfig Namespace Reference

Functions

 TileRawChannelMakerCfg (flags, **kwargs)
 TileRawChannelMakerDigiHSTruthCfg (flags, **kwargs)
 TileRawChannelOutputCfg (flags, tileRawChannelMaker, streamName)
 TileRawChannelMakerOutputCfg (flags, streamName='ESD', **kwargs)
 TileRawChannelMakerDigiHSTruthOutputCfg (flags, streamName='ESD', **kwargs)

Variables

 flags = initConfigFlags()
 Files
 AtlasVersion
 GlobalTag
 RunType
 doFit
 doOF1
 doWiener
 doOpt2
 doOptATLAS
 correctTimeJumps
 NoiseFilter
 ESDFileName
 MaxEvents
 acc = MainServicesCfg(flags)
 withDetails
 True
 summariseProps
 sc = acc.run()

Detailed Description

Define method to construct configured Tile raw channel maker algorithm

Function Documentation

◆ TileRawChannelMakerCfg()

TileRawChannelMakerConfig.TileRawChannelMakerCfg ( flags,
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm

Arguments:
    flags  -- Athena configuration flags

Definition at line 10 of file TileRawChannelMakerConfig.py.

10def TileRawChannelMakerCfg(flags, **kwargs):
11 """Return component accumulator with configured Tile raw channel maker algorithm
12
13 Arguments:
14 flags -- Athena configuration flags
15 """
16
17 acc = ComponentAccumulator()
18
19 from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
20 acc.merge( TileInfoLoaderCfg(flags) )
21
22 kwargs.setdefault('name', 'TileRChMaker')
23 name = kwargs['name']
24
25 if flags.Common.ProductionStep in [ProductionStep.PileUpPresampling, ProductionStep.PileUpPretracking]:
26 kwargs.setdefault('TileDigitsContainer', flags.Overlay.BkgPrefix + 'TileDigitsCnt')
27 else:
28 kwargs.setdefault('TileDigitsContainer', 'TileDigitsCnt')
29
30 from AthenaCommon.Logging import logging
31 mlog = logging.getLogger( 'TileRawChannelMakerCfg' )
32
33 if flags.Tile.doOverflowFit:
34 kwargs.setdefault('FitOverflow', True)
35 from TileRecUtils.TileRawChannelBuilderFitConfig import TileRawChannelBuilderFitOverflowCfg
36 tileRawChannelBuilderFitOverflow = acc.popToolsAndMerge( TileRawChannelBuilderFitOverflowCfg(flags) )
37 kwargs.setdefault('TileRawChannelBuilderFitOverflow', tileRawChannelBuilderFitOverflow)
38 else:
39 kwargs.setdefault('FitOverflow', False)
40
41 tileRawChannelBuilder = []
42
43 if flags.Tile.doFit:
44 from TileRecUtils.TileRawChannelBuilderFitConfig import TileRawChannelBuilderFitFilterCfg
45 tileRawChannelBuilderFitFilter = acc.popToolsAndMerge( TileRawChannelBuilderFitFilterCfg(flags) )
46 tileRawChannelBuilder += [tileRawChannelBuilderFitFilter]
47 mlog.info(" adding now TileRawChannelBuilderFitFilter with name %s to the algorithm: %s",
48 tileRawChannelBuilderFitFilter.name, name)
49
50 if flags.Tile.doMF:
51 from TileRecUtils.TileRawChannelBuilderMFConfig import TileRawChannelBuilderMFCfg
52 tileRawChannelBuilderMF = acc.popToolsAndMerge( TileRawChannelBuilderMFCfg(flags) )
53 tileRawChannelBuilder += [tileRawChannelBuilderMF]
54 mlog.info(" adding now TileRawChannelBuilderMF with name %s to the algorithm: %s",
55 tileRawChannelBuilderMF.name, name)
56
57 if flags.Tile.doOF1:
58 from TileRecUtils.TileRawChannelBuilderOptConfig import TileRawChannelBuilderOF1Cfg
59 tileRawChannelBuilderOF1 = acc.popToolsAndMerge( TileRawChannelBuilderOF1Cfg(flags) )
60 tileRawChannelBuilder += [tileRawChannelBuilderOF1]
61 mlog.info(" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
62 tileRawChannelBuilderOF1.name, name)
63
64 if flags.Tile.doWiener:
65 from TileRecUtils.TileRawChannelBuilderWienerConfig import TileRawChannelBuilderWienerCfg
66 tileRawChannelBuilderWiener = acc.popToolsAndMerge( TileRawChannelBuilderWienerCfg(flags) )
67 tileRawChannelBuilder += [tileRawChannelBuilderWiener]
68 mlog.info(" adding now TileRawChannelBuilderWienerFilter with name %s to the algorithm: %s",
69 tileRawChannelBuilderWiener.name, name)
70
71 if flags.Tile.doOpt2:
72 from TileRecUtils.TileRawChannelBuilderOptConfig import TileRawChannelBuilderOpt2Cfg
73 tileRawChannelBuilderOpt2 = acc.popToolsAndMerge( TileRawChannelBuilderOpt2Cfg(flags) )
74 tileRawChannelBuilder += [tileRawChannelBuilderOpt2]
75 mlog.info(" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
76 tileRawChannelBuilderOpt2.name, name)
77
78 if flags.Tile.doOptATLAS:
79 from TileRecUtils.TileRawChannelBuilderOptConfig import TileRawChannelBuilderOptATLASCfg
80 tileRawChannelBuilderOptATLAS = acc.popToolsAndMerge( TileRawChannelBuilderOptATLASCfg(flags) )
81 tileRawChannelBuilder += [tileRawChannelBuilderOptATLAS]
82 mlog.info(" adding now TileRawChannelBuilderOpt2Filter with name %s to the algorithm: %s",
83 tileRawChannelBuilderOptATLAS.name, name)
84
85 kwargs.setdefault('TileRawChannelBuilder', tileRawChannelBuilder)
86
87 if flags.Common.isOverlay and flags.Concurrency.NumThreads > 0:
88 kwargs.setdefault('Cardinality', flags.Concurrency.NumThreads)
89
90 TileRawChannelMaker=CompFactory.TileRawChannelMaker
91 acc.addEventAlgo(TileRawChannelMaker(**kwargs), primary = True)
92
93 return acc
94
95

◆ TileRawChannelMakerDigiHSTruthCfg()

TileRawChannelMakerConfig.TileRawChannelMakerDigiHSTruthCfg ( flags,
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm for HS

Arguments:
    flags  -- Athena configuration flags

Definition at line 96 of file TileRawChannelMakerConfig.py.

96def TileRawChannelMakerDigiHSTruthCfg(flags, **kwargs):
97 """Return component accumulator with configured Tile raw channel maker algorithm for HS
98
99 Arguments:
100 flags -- Athena configuration flags
101 """
102
103 kwargs.setdefault('name', 'TileRChMaker_DigiHSTruth')
104 kwargs.setdefault('TileDigitsContainer', 'TileDigitsCnt_DigiHSTruth')
105
106 acc = TileRawChannelMakerCfg(flags, **kwargs)
107 rawChannelMaker = acc.getPrimary()
108
109 rawChannelbuilders = rawChannelMaker.TileRawChannelBuilder
110
111 for rawChannelBuilder in rawChannelbuilders:
112 rawChannelBuilder.TileRawChannelContainer = f'{rawChannelBuilder.TileRawChannelContainer}_DigiHSTruth'
113
114 return acc
115
116

◆ TileRawChannelMakerDigiHSTruthOutputCfg()

TileRawChannelMakerConfig.TileRawChannelMakerDigiHSTruthOutputCfg ( flags,
streamName = 'ESD',
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm and Output stream

Arguments:
    flags  -- Athena configuration flags
    streamName -- name of output stream. Defaults to ESD.

Definition at line 152 of file TileRawChannelMakerConfig.py.

152def TileRawChannelMakerDigiHSTruthOutputCfg(flags, streamName = 'ESD', **kwargs):
153 """Return component accumulator with configured Tile raw channel maker algorithm and Output stream
154
155 Arguments:
156 flags -- Athena configuration flags
157 streamName -- name of output stream. Defaults to ESD.
158 """
159
160 acc = TileRawChannelMakerDigiHSTruthCfg(flags, **kwargs)
161 acc.merge( TileRawChannelOutputCfg(flags, acc.getPrimary(), streamName) )
162
163 return acc
164
165

◆ TileRawChannelMakerOutputCfg()

TileRawChannelMakerConfig.TileRawChannelMakerOutputCfg ( flags,
streamName = 'ESD',
** kwargs )
Return component accumulator with configured Tile raw channel maker algorithm and Output stream

Arguments:
    flags  -- Athena configuration flags
    streamName -- name of output stream. Defaults to ESD.

Definition at line 138 of file TileRawChannelMakerConfig.py.

138def TileRawChannelMakerOutputCfg(flags, streamName = 'ESD', **kwargs):
139 """Return component accumulator with configured Tile raw channel maker algorithm and Output stream
140
141 Arguments:
142 flags -- Athena configuration flags
143 streamName -- name of output stream. Defaults to ESD.
144 """
145
146 acc = TileRawChannelMakerCfg(flags, **kwargs)
147 acc.merge( TileRawChannelOutputCfg(flags, acc.getPrimary(), streamName) )
148
149 return acc
150
151

◆ TileRawChannelOutputCfg()

TileRawChannelMakerConfig.TileRawChannelOutputCfg ( flags,
tileRawChannelMaker,
streamName )
Return component accumulator with configured Output stream for Tile raw channel maker algorithm

Arguments:
    flags  -- Athena configuration flags
    tileRawChannelMaker -- Tile raw channel maker algorithm
    streamName -- name of output stream.

Definition at line 117 of file TileRawChannelMakerConfig.py.

117def TileRawChannelOutputCfg(flags, tileRawChannelMaker, streamName):
118 """Return component accumulator with configured Output stream for Tile raw channel maker algorithm
119
120 Arguments:
121 flags -- Athena configuration flags
122 tileRawChannelMaker -- Tile raw channel maker algorithm
123 streamName -- name of output stream.
124 """
125
126 outputItemList = []
127 rawChannelbuilders = tileRawChannelMaker.TileRawChannelBuilder
128
129 for rawChannelBuilder in rawChannelbuilders:
130 outputItemList += [f'TileRawChannelContainer#{rawChannelBuilder.TileRawChannelContainer}']
131
132 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
133 acc = OutputStreamCfg(flags, streamName, ItemList = outputItemList)
134
135 return acc
136
137

Variable Documentation

◆ acc

TileRawChannelMakerConfig.acc = MainServicesCfg(flags)

Definition at line 195 of file TileRawChannelMakerConfig.py.

◆ AtlasVersion

TileRawChannelMakerConfig.AtlasVersion

Definition at line 178 of file TileRawChannelMakerConfig.py.

◆ correctTimeJumps

TileRawChannelMakerConfig.correctTimeJumps

Definition at line 186 of file TileRawChannelMakerConfig.py.

◆ doFit

TileRawChannelMakerConfig.doFit

Definition at line 181 of file TileRawChannelMakerConfig.py.

◆ doOF1

TileRawChannelMakerConfig.doOF1

Definition at line 182 of file TileRawChannelMakerConfig.py.

◆ doOpt2

TileRawChannelMakerConfig.doOpt2

Definition at line 184 of file TileRawChannelMakerConfig.py.

◆ doOptATLAS

TileRawChannelMakerConfig.doOptATLAS

Definition at line 185 of file TileRawChannelMakerConfig.py.

◆ doWiener

TileRawChannelMakerConfig.doWiener

Definition at line 183 of file TileRawChannelMakerConfig.py.

◆ ESDFileName

TileRawChannelMakerConfig.ESDFileName

Definition at line 188 of file TileRawChannelMakerConfig.py.

◆ Files

TileRawChannelMakerConfig.Files

Definition at line 177 of file TileRawChannelMakerConfig.py.

◆ flags

TileRawChannelMakerConfig.flags = initConfigFlags()

Definition at line 176 of file TileRawChannelMakerConfig.py.

◆ GlobalTag

TileRawChannelMakerConfig.GlobalTag

Definition at line 179 of file TileRawChannelMakerConfig.py.

◆ MaxEvents

TileRawChannelMakerConfig.MaxEvents

Definition at line 189 of file TileRawChannelMakerConfig.py.

◆ NoiseFilter

TileRawChannelMakerConfig.NoiseFilter

Definition at line 187 of file TileRawChannelMakerConfig.py.

◆ RunType

TileRawChannelMakerConfig.RunType

Definition at line 180 of file TileRawChannelMakerConfig.py.

◆ sc

TileRawChannelMakerConfig.sc = acc.run()

Definition at line 206 of file TileRawChannelMakerConfig.py.

◆ summariseProps

TileRawChannelMakerConfig.summariseProps

Definition at line 203 of file TileRawChannelMakerConfig.py.

◆ True

TileRawChannelMakerConfig.True

Definition at line 203 of file TileRawChannelMakerConfig.py.

◆ withDetails

TileRawChannelMakerConfig.withDetails

Definition at line 203 of file TileRawChannelMakerConfig.py.