ATLAS Offline Software
LArCalorimeter
LArCnv
LArByteStream
python
LArRawSCDataReadingConfig.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
ByteStreamCnvSvc.ByteStreamConfig
import
ByteStreamReadCfg
6
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
7
8
def
LArRawSCDataReadingCfg
(configFlags, **kwargs):
9
acc=
ComponentAccumulator
()
10
from
LArGeoAlgsNV.LArGMConfig
import
LArGMCfg
11
acc.merge(
LArGMCfg
(configFlags))
12
acc.merge(
ByteStreamReadCfg
(configFlags))
13
from
LArCabling.LArCablingConfig
import
LArLATOMEMappingCfg
14
acc.merge(
LArLATOMEMappingCfg
(configFlags))
15
16
acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(
"LArRawSCDataReadingAlg"
,
17
LATOMEDecoder = CompFactory.LArLATOMEDecoder(
"LArLATOMEDecoder"
,ProtectSourceId =
True
),
18
**kwargs)
19
)
20
return
acc
21
22
23
if
__name__==
"__main__"
:
24
25
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
26
flags=
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.LAr.doAlign=
False
33
flags.Exec.OutputLevel=DEBUG
34
flags.Input.Files = defaultTestFiles.RAW_RUN2
35
flags.lock()
36
37
acc =
MainServicesCfg
( flags )
38
acc.merge(
LArRawSCDataReadingCfg
(flags))
39
40
acc.run(2)
41
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition:
JetAnalysisCommon.py:302
python.LArRawSCDataReadingConfig.LArRawSCDataReadingCfg
def LArRawSCDataReadingCfg(configFlags, **kwargs)
Definition:
LArRawSCDataReadingConfig.py:8
python.ByteStreamConfig.ByteStreamReadCfg
def ByteStreamReadCfg(flags, type_names=None)
Definition:
Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:25
LArCablingConfig.LArLATOMEMappingCfg
def LArLATOMEMappingCfg(configFlags)
Definition:
LArCablingConfig.py:95
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition:
MainServicesConfig.py:260
Constants
some useful constants -------------------------------------------------—
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition:
LArGMConfig.py:8
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition:
AllConfigFlags.py:19
Generated on Sun Dec 22 2024 21:13:42 for ATLAS Offline Software by
1.8.18