ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTest
python
AthenaPoolTestWrite.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaCommon.Constants
import
DEBUG
6
7
# Setup flags
8
flags = initConfigFlags()
9
flags.Common.MsgSuppression =
False
10
flags.Exec.MaxEvents = 2
11
flags.Input.Files = []
12
stream =
"Stream1"
13
flags.lock()
14
15
# Main services
16
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
17
acc = MainServicesCfg(flags)
18
19
from
McEventSelector.McEventSelectorConfig
import
McEventSelectorCfg
20
acc.merge( McEventSelectorCfg(flags,
21
RunNumber = 1,
22
EventsPerRun = 0x100000010,
23
FirstEvent = 0x100000000,
24
EventsPerLB = 1,
25
FirstLB = 1,
26
InitialTimeStamp = 0,
27
TimeStampInterval = 5) )
28
29
# Pool writing
30
acc.addEventAlgo( CompFactory.AthenaPoolTestDataWriter(OutputLevel = DEBUG),
31
sequenceName =
'AthAlgSeq'
)
32
33
from
OutputStreamAthenaPool.OutputStreamConfig
import
OutputStreamCfg
34
acc.merge( OutputStreamCfg(flags, stream, disableEventTag =
True
,
35
ItemList = [
'EventInfo#*'
,
'EventStreamInfo#*'
,
36
'MergedEventInfo#*'
,
'PileUpEventInfo#*'
,
37
'IAthenaPoolTestCollection#*'
,
38
'AthenaPoolTestMatrix#*'
,
'AthenaPoolTestMap#*'
,
39
'dummy_A#*'
,
'dummy_E#*'
]) )
40
41
# Run
42
import
sys
43
sc = acc.run(flags.Exec.MaxEvents)
44
sys.exit(sc.isFailure())
Constants
Generated on
for ATLAS Offline Software by
1.17.0