ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
ITkStripsByteStreamCnv
python
testITkDecodeNewConf.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
#
4
5
if
__name__ ==
"__main__"
:
6
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
7
flags = initConfigFlags()
8
flags.Input.Files = [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/ITkStrip/data_test.00242020.EventStorage_StreamBSFileOutput.daq.RAW._lb0002._Athena._0001.data"
]
9
from
AthenaConfiguration.TestDefaults
import
defaultConditionsTags, defaultGeometryTags
10
flags.IOVDb.GlobalTag = defaultConditionsTags.RUN4_MC
11
flags.Input.isMC =
True
12
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN4
13
flags.Detector.GeometryITkStrip =
True
14
flags.ITk.Geometry.AllLocal =
False
15
16
# We want to keet the commented code for debugging
17
# from AthenaCommon.Constants import DEBUG
18
# flags.Exec.OutputLevel=DEBUG
19
20
#flags.Output.RDOFileName = "RDO.pool.root"
21
22
flags.fillFromArgs()
23
flags.lock()
24
25
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
26
acc = MainServicesCfg(flags)
27
28
# For ByteStream file reading
29
from
ByteStreamCnvSvc.ByteStreamConfig
import
ByteStreamReadCfg
30
acc.merge(ByteStreamReadCfg(flags))
31
32
from
ITkStripsByteStreamCnv.ITkStripByteStreamCnvConfig
import
ITkStripRawDataProviderCfg
33
acc.merge(ITkStripRawDataProviderCfg(flags))
34
35
itemList = []
# items to store in RDO
36
acceptAlgs = []
# skimming algs
37
38
# We want to keet the commented code for debugging
39
#itemList.append(f'SCT_RDO_Container#ITkStripRDOs')
40
#itemList.append('IDCInDetBSErrContainer#SCT_ByteStreamErrs')
41
42
#from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
43
#acc.merge(OutputStreamCfg(flags, 'RDO', itemList, AcceptAlgs=acceptAlgs))
44
45
acc.run(maxEvents=1)
46
47
Generated on
for ATLAS Offline Software by
1.17.0