ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileRecUtils
python
TileRawChannelNNMakerConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
"""Define method to construct configured Tile NN raw channel maker algorithm"""
4
5
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
8
9
def
TileRawChannelNNMakerCfg
(flags, **kwargs):
10
"""Return component accumulator with configured Tile NN raw channel maker algorithm
11
12
Arguments:
13
flags -- Athena configuration flags
14
"""
15
acc = ComponentAccumulator()
16
from
DetDescrCnvSvc.DetDescrCnvSvcConfig
import
DetDescrCnvSvcCfg
17
18
acc.merge(DetDescrCnvSvcCfg(flags))
19
TileRawChannelNNMaker = CompFactory.TileRawChannelNNMaker
20
acc.addEventAlgo(
TileRawChannelNNMaker
(**kwargs), primary=
True
)
21
22
return
acc
23
24
25
if
__name__ ==
"__main__"
:
26
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
27
from
AthenaConfiguration.TestDefaults
import
defaultGeometryTags, defaultTestFiles
28
from
AthenaCommon.Logging
import
log
29
from
AthenaCommon.Constants
import
DEBUG
30
from
TileConfiguration.TileConfigFlags
import
TileRunType
31
32
log.setLevel(DEBUG)
33
flags = initConfigFlags()
34
flags.Input.Files = defaultTestFiles.RAW_RUN2
35
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
36
flags.Tile.RunType = TileRunType.PHY
37
flags.lock()
38
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
39
40
acc = MainServicesCfg(flags)
41
from
TileByteStream.TileByteStreamConfig
import
TileRawDataReadingCfg
42
43
acc.merge( TileRawDataReadingCfg(flags, readMuRcv=
False
) )
44
acc.merge(
TileRawChannelNNMakerCfg
(flags) )
45
flags.dump()
46
acc.printConfig(withDetails=
True
, summariseProps=
True
)
47
acc.store( open(
'TileRawChannelNNMaker.pkl'
,
'wb'
) )
48
sc = acc.run(maxEvents=3)
49
import
sys
50
# Success should be 0
51
sys.exit(
not
sc.isSuccess())
TileRawChannelNNMaker
Reconstructs Tile raw channel amplitudes with the neural network of the HL-LHC TilePPr firmware,...
Definition
TileRawChannelNNMaker.h:22
Constants
TileRawChannelNNMakerConfig.TileRawChannelNNMakerCfg
TileRawChannelNNMakerCfg(flags, **kwargs)
Definition
TileRawChannelNNMakerConfig.py:9
Generated on
for ATLAS Offline Software by
1.17.0