ATLAS Offline Software
Loading...
Searching...
No Matches
test_VP1AlgsEventProd_OnlineEventDisplay_script.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
8
9
10
15
16from AthenaCommon.AppMgr import ServiceMgr as svcMgr
17from AthenaServices.AthenaServicesConf import OutputStreamSequencerSvc
18
19outputStreamSequencerSvc = OutputStreamSequencerSvc()
20outputStreamSequencerSvc.SequenceIncidentName = "EndEvent"
21svcMgr += outputStreamSequencerSvc
22
23
24from VP1AlgsEventProd.VP1AlgsEventProdConf import VP1EventProd
25VP1EventProducer = VP1EventProd(InputPoolFile = StreamESD.OutputFile)
26
27print ("<<<<<<< VP1 Output File >>>>>>>")
28print ("OutputFile: %s" % StreamESD.OutputFile)
29
30
31#Write out files in the directory given by the stream name
32VP1EventProducer.DestinationDirectory = "%s/.Unknown/" % OutputDirectory
33#Set number of files large so deleting is doen by prune script
34VP1EventProducer.MaxNumberOfFiles = 250
35
36#Set the output level
37if not 'VP1MsgLvl' in dir():
38 VP1MsgLvl=WARNING
39VP1EventProducer.OutputLevel=VP1MsgLvl
40
41
42from AthenaCommon.AlgSequence import AlgSequence
43topSequence = AlgSequence()
44topSequence += VP1EventProducer
45
46
47if VP1MsgLvl <= DEBUG:
48 print ("\n\n\t VP1 setup\n",VP1EventProducer,"\n\n")
This class provides configuration properties to enable OutputStream file sequences.