#-------------------------------------------------------------- theApp.OutStream = [] from AthenaServices.AthenaServicesConf import AthenaOutputStream ToolSvc = Service("ToolSvc") # Declare output streams: Stream1 = AthenaOutputStream("Stream1") # Tool for output stream: Stream1.WritingTool = "AthenaPoolOutputStreamTool" # Set processing stage name for <>_ref try: Stream1.ProcessingTag = StageOutName except: print "No processing tag set for stream1" # Persistent data file name: try: Stream1.OutputFile = OutFile except: Stream1.OutputFile = "OutputData.root" #Extend or not provenance on event stream try: Stream1.ExtendProvenanceRecord = Extend except: print "Provenance record will be extended in DataHeader"
#-------------------------------------------------------------- # Output streams #-------------------------------------------------------------- theApp.OutStream = []; from AthenaServices.AthenaServicesConf import AthenaOutputStream ToolSvc = Service( "ToolSvc" ) # Declare output streams: Stream1 = AthenaOutputStream( "Stream1" ) # Tool for output stream: Stream1.WritingTool = "AthenaPoolOutputStreamTool" # Set processing stage name for <>_ref Stream1.ProcessingTag = 'PROP_ONLY' Stream1.OutputFile = "OutputData.root" # List of data objects to be persistified: Stream1.ItemList += ["EventInfo#*"] topSequence+=Stream1 #-------------------------------------------------------------- # Event tag collection registration #-------------------------------------------------------------- # Registration stream: from RegistrationServices.RegistrationServicesConf import RegistrationStream RegStream1 = RegistrationStream( "RegStream1" ) # List of data object references to be added to collection: