ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
ForwardRec
python
LucidRecConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
OutputStreamAthenaPool.OutputStreamConfig
import
addToESD
6
from
ByteStreamCnvSvc.ByteStreamConfig
import
ByteStreamReadCfg
7
8
9
def
LucidRecCfg
(flags):
10
result=ComponentAccumulator()
11
12
if
flags.Input.isMC:
13
result.addEventAlgo(CompFactory.LUCID_DigitRawDataCnv(
"LUCID_DigitRawDataCnv"
))
14
else
:
15
result.merge(ByteStreamReadCfg(flags))
16
result.addEventAlgo(CompFactory.LUCID_ByteStreamRawDataCnv(
"LUCID_ByteStreamRawDataCnv"
))
17
result.merge(addToESD(flags,[
"LUCID_RawDataContainer#Lucid_RawData"
,]))
18
19
return
result
20
21
22
23
24
if
__name__==
"__main__"
:
25
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
26
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
27
from
AthenaCommon.Logging
import
log
28
from
AthenaCommon.Constants
import
DEBUG
29
log.setLevel(DEBUG)
30
31
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
32
flags = initConfigFlags()
33
flags.Input.Files = defaultTestFiles.RAW_RUN2
34
flags.lock()
35
36
acc = MainServicesCfg(flags)
37
acc.merge(
LucidRecCfg
(flags))
38
39
acc.run(10)
Constants
LucidRecConfig.LucidRecCfg
LucidRecCfg(flags)
Definition
LucidRecConfig.py:9
Generated on
for ATLAS Offline Software by
1.17.0