ATLAS Offline Software
testITkDecodeNewConf.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2025 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  flags.IOVDb.GlobalTag = "OFLCOND-MC15c-SDR-14-05"
10  flags.Input.isMC = True
11  from AthenaConfiguration.TestDefaults import defaultGeometryTags
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.lock()
23 
24  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
25  acc = MainServicesCfg(flags)
26 
27  # For ByteStream file reading
28  from ByteStreamCnvSvc.ByteStreamConfig import ByteStreamReadCfg
29  acc.merge(ByteStreamReadCfg(flags))
30 
31  from ITkStripsByteStreamCnv.ITkStripRawDataByteStreamCnvConfig import ITkStripRawDataProviderCfg
32  acc.merge(ITkStripRawDataProviderCfg(flags))
33 
34  itemList = [] # items to store in RDO
35  acceptAlgs = [] # skimming algs
36 
37  # We want to keet the commented code for debugging
38  #itemList.append(f'SCT_RDO_Container#ITkStripRDOs')
39  #itemList.append('IDCInDetBSErrContainer#SCT_ByteStreamErrs')
40 
41  #from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
42  #acc.merge(OutputStreamCfg(flags, 'RDO', itemList, AcceptAlgs=acceptAlgs))
43 
44  acc.run(maxEvents=1)
45 
46 
python.ByteStreamConfig.ByteStreamReadCfg
def ByteStreamReadCfg(flags, type_names=None)
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:25
ITkStripRawDataByteStreamCnvConfig.ITkStripRawDataProviderCfg
def ITkStripRawDataProviderCfg(flags, **kwargs)
Definition: ITkStripRawDataByteStreamCnvConfig.py:23
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:310
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19