else: eventInfoKey = "EventInfo" from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream StreamRDO = AthenaPoolOutputStream( "StreamRDO", outputFile, asAlg=True, noTag=True, eventInfoKey=eventInfoKey ) StreamRDO.TakeItemsFromInput=TRUE; # The next line is an example on how to exclude clid's if they are causing a problem #StreamRDO.ExcludeList = ['6421#*'] # Look for lists of filter algorithms try: StreamRDO.AcceptAlgs = AcceptList except: print("No accept algs indicated in AcceptList") try: StreamRDO.RequireAlgs = RequireList except: print("No accept algs indicated in RequireList") try: StreamRDO.VetoAlgs = VetoList except: print("No accept algs indicated in VetoList") # Perfmon from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties pmon_properties.PerfMonFlags.doMonitoring=True pmon_properties.PerfMonFlags.doSemiDetailedMonitoring=True pmon_properties.PerfMonFlags.OutputFile = "ntuple_RDOMerge" MessageSvc = ServiceMgr.MessageSvc MessageSvc.OutputLevel = INFO
try: StreamHITS = AthenaPoolOutputStream( "StreamHITS", Out, True ) except: StreamHITS = AthenaPoolOutputStream( "StreamHITS", "DidNotSetOutputName.root", True ) StreamHITS.TakeItemsFromInput=TRUE; StreamHITS.ForceRead=TRUE; #force read of output data objs # The next line is an example on how to exclude clid's if they are causing a problem #StreamHITS.ExcludeList = ['6421#*'] # Look for lists of filter algorithms try: StreamHITS.AcceptAlgs = AcceptList except: print "No accept algs indicated in AcceptList" try: StreamHITS.RequireAlgs = RequireList except: print "No accept algs indicated in RequireList" try: StreamHITS.VetoAlgs = VetoList except: print "No accept algs indicated in VetoList" MessageSvc = ServiceMgr.MessageSvc MessageSvc.OutputLevel = INFO StreamHITS.ExtendProvenanceRecord = False ServiceMgr.AthenaPoolCnvSvc.MaxFileSizes = [ "15000000000" ]
from AthenaPoolCnvSvc.AthenaPoolCnvSvcConf import AthenaPoolCnvSvc svcMgr += AthenaPoolCnvSvc() svcMgr.AthenaPoolCnvSvc.CommitInterval = 10 include("AthenaPoolMultiTest/ExampleStreamConfig.py") from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream DataStream = AthenaPoolOutputStream("DataStream", "AthenaPoolMultiTest_Splittable0.root", True) DataStream.ItemList = exampleItemList # comes from ExampleStreamConfig DataStream.ItemList += ["FauxTriggerMap#*"] # add item not in StreamConfig DataStream.MetadataItemList += exampleMetadataList DataStream.AcceptAlgs = ["PassAllFilter"] DataStream.RequireAlgs = ["PassAllFilter"] DataStream.VetoAlgs = ["PassNoneFilter"] #-------------------------------------------------------------- # Consequently, should have 3 output files # Numbers 3, 4, from PassAll and 1 from Passnone #-------------------------------------------------------------- # # Now configure output collection # #-------------------------------------------------------------- from RegistrationServices.RegistrationServicesConf import RegistrationStream from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool TagTool = RegistrationStreamTagTool("TagTool") #TagTool.FragmentByGroup = True
except: StreamHITS = AthenaPoolOutputStream("StreamHITS", "DidNotSetOutputName.root", True) StreamHITS.TakeItemsFromInput = TRUE StreamHITS.ForceRead = TRUE #force read of output data objs # The next line is an example on how to exclude clid's if they are causing a problem #StreamHITS.ExcludeList = ['6421#*'] # Look for lists of filter algorithms try: StreamHITS.AcceptAlgs = AcceptList except: print "No accept algs indicated in AcceptList" try: StreamHITS.RequireAlgs = RequireList except: print "No accept algs indicated in RequireList" try: StreamHITS.VetoAlgs = VetoList except: print "No accept algs indicated in VetoList" # Perfmon from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties pmon_properties.PerfMonFlags.doMonitoring = True pmon_properties.PerfMonFlags.doSemiDetailedMonitoring = True pmon_properties.PerfMonFlags.OutputFile = "ntuple_HITSMerge" MessageSvc = ServiceMgr.MessageSvc MessageSvc.OutputLevel = INFO
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream Stream1 = AthenaPoolOutputStream("Stream1", "SimplePoolFile1.root", True) Stream1.ItemList += ["ExampleHitContainer#MyHits"] Stream1.ItemList += ["ExampleHitContainer#PetersHits"] Stream1.WritingTool.AttributeListKey = MagicWriteTag.Key Stream2 = AthenaPoolOutputStream("Stream2", "SimplePoolFileA.root", True) Stream2.ItemList += ["ExampleHitContainer#*"] Stream2.ExcludeList += ["ExampleHitContainer#MyHits"] Stream2.WritingTool.AttributeListKey = "RunEventTag" from AthenaPoolExampleAlgorithms.AthenaPoolExampleAlgorithmsConf import AthPoolEx__PassNoneFilter topSequence += AthPoolEx__PassNoneFilter("PassNoneFilter") Stream3 = AthenaPoolOutputStream("Stream3", "EmptyPoolFile.root", True) Stream3.RequireAlgs = ["PassNoneFilter"] #-------------------------------------------------------------- # Event Collection Registration #-------------------------------------------------------------- from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool TagTool = RegistrationStreamTagTool("TagTool") from RegistrationServices.RegistrationServicesConf import RegistrationStream RegStream1 = RegistrationStream("RegStream1", CollectionType="ExplicitROOT", Tool=TagTool) RegStream1.WriteInputDataHeader = False RegStream1.OutputCollection = "SimplePoolCollection1.root" RegStream1.ItemList += ["DataHeader#Stream1"] RegStream1.ItemList += ["TagAthenaAttributeList#" + MagicWriteTag.Key]
StreamEVGEN = AthenaPoolOutputStream("StreamEVGEN", Out, True) except: StreamEVGEN = AthenaPoolOutputStream("StreamEVGEN", "DidNotSetOutputName.root", True) StreamEVGEN.TakeItemsFromInput = True StreamEVGEN.ForceRead = True #force read of output data objs # The next line is an example on how to exclude clid's if they are causing a problem #StreamEVGEN.ExcludeList = ['6421#*'] # Look for lists of filter algorithms try: StreamEVGEN.AcceptAlgs = AcceptList except: print "No accept algs indicated in AcceptList" try: StreamEVGEN.RequireAlgs = RequireList except: print "No accept algs indicated in RequireList" try: StreamEVGEN.VetoAlgs = VetoList except: print "No accept algs indicated in VetoList" # Perfmon from PerfMonComps.PerfMonFlags import jobproperties as pmon_properties pmon_properties.PerfMonFlags.doMonitoring = True pmon_properties.PerfMonFlags.doSemiDetailedMonitoring = True pmon_properties.PerfMonFlags.OutputFile = "ntuple_EVNT_TRMerge" MessageSvc = ServiceMgr.MessageSvc MessageSvc.OutputLevel = INFO
try: Stream1 = AthenaPoolOutputStream("Stream1", Out, True) except: Stream1 = AthenaPoolOutputStream("Stream1", "DidNotSetOutputName.root", True) Stream1.TakeItemsFromInput = TRUE # The next line is an example on how to exclude clid's if they are causing a problem #Stream1.ExcludeList = ['6421#*'] # Look for lists of filter algorithms try: Stream1.AcceptAlgs = AcceptList except: print "No accept algs indicated in AcceptList" try: Stream1.RequireAlgs = RequireList except: print "No accept algs indicated in RequireList" try: Stream1.VetoAlgs = VetoList except: print "No accept algs indicated in VetoList" from IOVDbMetaDataTools.IOVDbMetaDataToolsConf import IOVDbMetaDataTool svcMgr.MetaDataSvc.MetaDataTools += ["IOVDbMetaDataTool"] # EventCheck configuration ------------------------ END MessageSvc = svcMgr.MessageSvc MessageSvc.OutputLevel = INFO #==============================================================