#-------------------------------------------------------------- # Now do collections #-------------------------------------------------------------- # Explicit (i.e. not just files) collections (ROOT) # from RegistrationServices.RegistrationServicesConf import RegistrationStream from RegistrationServices.RegistrationServicesConf import RegistrationStreamLCGTool from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool TagTool = RegistrationStreamTagTool("TagTool") TagTool.OutputLevel = INFO # bit 1 CollBit1 = RegistrationStream("CollBit1") CollBit1.CollectionType = "ExplicitROOT" #CollBit1.OutputCollection = "AthenaPoolMultiTest_Split1"; # The output file name CollBit1.OutputCollection = "Collection_Split1.root" CollBit1.ItemList += ["DataHeader#*"] CollBit1.ItemList += ["AthenaAttributeList#SimpleTag"] CollBit1.ItemList += ["CollectionMetadataContainer#*"] CollBit1.OutputLevel = INFO CollBit1.AcceptAlgs = ["Splitter1"] #CollBit1.CollectionOpenMode = "UPDATE" # bit ( 2 | 3 ) Coll23 = RegistrationStream("Coll23") Coll23.CollectionType = "ExplicitROOT" Coll23.OutputCollection = "Collection_Split23.root" Coll23.ItemList += ["DataHeader#*"] Coll23.ItemList += ["AthenaAttributeList#SimpleTag"]
try: RegStream1.WriteInputDataHeader = WriteInputHeader except: RegStream1.WriteInputDataHeader = FALSE if inCollType == "MonteCarlo": RegStream1.WriteInputDataHeader = FALSE # Output collection name: try: RegStream1.OutputCollection = OutColl except: RegStream1.OutputCollection = "OutputCollection" # Output collection type: try: RegStream1.CollectionType = OutCollType except: RegStream1.CollectionType = "ExplicitROOT" # Output collection database connection string: try: RegStream1.Connection = OutCollConnect except: RegStream1.Connection = "" # Output collection open mode: try: RegStream1.CollectionOpenMode = OpenMode except: RegStream1.CollectionOpenMode = "CREATE_AND_OVERWRITE"
Stream1 = AthenaPoolOutputStream( "Stream1" ) Stream1.OutputFile = "SimplePoolFile.root" # List of DO's to write out Stream1.ItemList+=["CaloCellContainer#*"] Stream1.ItemList+=["EventInfo#*"] # Must make sure that no OutStream's have been declared theApp.OutStream = []; #-------------------------------------------------------------- # Event Collection Registration #-------------------------------------------------------------- # Run OutputStream as an algorithm from RegistrationServices.RegistrationServicesConf import RegistrationStream RegStream1 = RegistrationStream( "RegStream1" ) RegStream1.CollectionType = "ExplicitROOT" RegStream1.OutputCollection = "NewEventCollection" RegStream1.OutputLevel = INFO # List of DO's to register RegStream1.ItemList += [ "DataHeader#*" ] # Key name of AthenaAttributeList used for the tag: RegStream1.ItemList += [ "AthenaAttributeList#SimpleTag" ] topSequence += RegStream1 #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) #-------------------------------------------------------------- svcMgr.MessageSvc.OutputLevel = INFO svcMgr.MessageSvc.debugLimit = 100000 svcMgr.ClassIDSvc.OutputLevel = INFO svcMgr.AthenaSealSvc.OutputLevel = INFO