ATLAS Offline Software
Loading...
Searching...
No Matches
EventFormatTestConfig Namespace Reference

Functions

 EventFormatTestFlags (eventsPerFile=5, inputFiles=None)
 EventFormatTestOutputCfg (flags, streamName="Test", numberOfStreams=5, itemList=None)

Function Documentation

◆ EventFormatTestFlags()

EventFormatTestConfig.EventFormatTestFlags ( eventsPerFile = 5,
inputFiles = None )

Definition at line 12 of file EventFormatTestConfig.py.

12def EventFormatTestFlags(eventsPerFile=5, inputFiles=None):
13 if inputFiles is None:
14 inputFiles = []
15
16 flags = AllConfigFlags.initConfigFlags()
17 flags.Input.Files = inputFiles
18 flags.Concurrency.NumThreads = 8
19 flags.Exec.MaxEvents = eventsPerFile
20
21 return flags
22
23

◆ EventFormatTestOutputCfg()

EventFormatTestConfig.EventFormatTestOutputCfg ( flags,
streamName = "Test",
numberOfStreams = 5,
itemList = None )

Definition at line 24 of file EventFormatTestConfig.py.

29):
30 if itemList is None:
31 itemList = []
32
33 acc = MainServicesConfig.MainServicesCfg(flags)
34
35 for i in range(numberOfStreams):
36 acc.merge(
37 OutputStreamCfg(
38 flags,
39 streamName=f"{streamName}{i}",
40 ItemList=itemList,
41 disableEventTag=True,
42 )
43 )
44
45 acc.merge(
46 addToMetaData(
47 flags,
48 streamName=f"{streamName}{i}",
49 itemOrList=[
50 f"xAOD::EventFormat#EventFormat{outputStreamName(streamName)}{i}",
51 "xAOD::FileMetaData#FileMetaData",
52 "xAOD::FileMetaDataAuxInfo#FileMetaDataAux.",
53 ],
54 HelperTools=[
55 CompFactory.xAODMaker.EventFormatStreamHelperTool(
56 f"{outputStreamName(streamName)}{i}_EventFormatStreamHelperTool",
57 Key=f"EventFormat{outputStreamName(streamName)}{i}",
58 DataHeaderKey=f"{outputStreamName(streamName)}{i}",
59 TypeNames=[".*xAODMakerTest::.*"],
60 OutputLevel=1,
61 ),
62 CompFactory.xAODMaker.FileMetaDataCreatorTool(
63 f"{outputStreamName(streamName)}{i}_FileMetaDataCreatorTool",
64 OutputKey="FileMetaData",
65 StreamName=f"{outputStreamName(streamName)}{i}",
66 ),
67 ],
68 )
69 )
70
71 return acc