ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArByteStream
python
LArRawSCDataReadingConfig.py
Go to the documentation of this file.
1
#!/usr/bin/env athena.py
2
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
from
ByteStreamCnvSvc.ByteStreamConfig
import
ByteStreamReadCfg
7
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
8
9
def
LArRawSCDataReadingCfg
(configFlags, ROBList=None, name="LArRawSCDataReadingAlg", **kwargs):
10
acc=ComponentAccumulator()
11
from
LArGeoAlgsNV.LArGMConfig
import
LArGMCfg
12
acc.merge(LArGMCfg(configFlags))
13
from
LArCabling.LArCablingConfig
import
LArLATOMEMappingCfg
14
acc.merge(LArLATOMEMappingCfg(configFlags))
15
16
if
( ROBList
is
not
None
):
17
acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(name,
18
LATOMEDecoder = CompFactory.LArLATOMEDecoder(
"LArLATOMEDecoder"
,ProtectSourceId =
True
),
19
ROBList=ROBList,
20
**kwargs)
21
)
22
else
:
23
acc.addEventAlgo(CompFactory.LArRawSCDataReadingAlg(name,
24
LATOMEDecoder = CompFactory.LArLATOMEDecoder(
"LArLATOMEDecoder"
,ProtectSourceId =
True
),
25
**kwargs)
26
)
27
28
return
acc
29
30
def
LArRawSCDataReadingInRoICfg
(configFlags,name="LArRawSCDataReadingInRoI",etIdCollKey="SC_ET_ID_RoI",ROBList=[]):
31
return
LArRawSCDataReadingCfg
(configFlags,name=name,adcCollKey=
""
,adcBasCollKey=
""
,etCollKey=
""
,LArLATOMEHeaderKey=
""
,etIdCollKey=etIdCollKey,ROBList=ROBList)
32
33
34
if
__name__==
"__main__"
:
35
36
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
37
flags=initConfigFlags()
38
from
AthenaCommon.Logging
import
log
39
from
AthenaCommon.Constants
import
DEBUG
40
log.setLevel(DEBUG)
41
42
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles, defaultConditionsTags,defaultGeometryTags
43
44
flags.LAr.doAlign=
False
45
flags.Exec.OutputLevel=DEBUG
46
flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_DATA
47
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
48
flags.Input.Files = defaultTestFiles.RAW_RUN3
49
flags.Exec.MaxEvents=10
50
flags.fillFromArgs()
51
flags.lock()
52
53
acc = MainServicesCfg( flags )
54
acc.merge(ByteStreamReadCfg(flags))
55
acc.merge(
LArRawSCDataReadingCfg
(flags))
56
57
acc.run()
58
Constants
python.LArRawSCDataReadingConfig.LArRawSCDataReadingInRoICfg
LArRawSCDataReadingInRoICfg(configFlags, name="LArRawSCDataReadingInRoI", etIdCollKey="SC_ET_ID_RoI", ROBList=[])
Definition
LArRawSCDataReadingConfig.py:30
python.LArRawSCDataReadingConfig.LArRawSCDataReadingCfg
LArRawSCDataReadingCfg(configFlags, ROBList=None, name="LArRawSCDataReadingAlg", **kwargs)
Definition
LArRawSCDataReadingConfig.py:9
Generated on
for ATLAS Offline Software by
1.17.0