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" ] #-------------------------------------------------------------- ## Post-include if hasattr(runArgs,"postInclude"):
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 StreamRDO.ExtendProvenanceRecord = False ServiceMgr.AthenaPoolCnvSvc.MaxFileSizes = [ "15000000000" ]
Others.CheckNumberOfWrites = False # Events that failed at least one filter Bad = AthenaPoolOutputStream("Bad", "AthenaPoolMultiTest_Missed.root", False, noTag=False) Bad.CheckNumberOfWrites = False # Configure them using filter methods and itemlist # Must make sure that no OutStream's have been declared #theApp.OutStream = []; # bit 2 Stream2.TakeItemsFromInput = True Stream2.AcceptAlgs = ["Splitter2"] Stream2.VetoAlgs = ["Splitter1"] Stream2.WritingTool.SaveDecisions = True # bit 1 Stream1.TakeItemsFromInput = True Stream1.AcceptAlgs = ["Splitter1"] # bit 3 Stream3.TakeItemsFromInput = True Stream3.AcceptAlgs = ["Splitter3"] Stream3.VetoAlgs = ["Splitter1"] Stream3.VetoAlgs += ["Splitter2"] # missed Others.TakeItemsFromInput = True Others.ExcludeList = ['FauxTriggerMap#ExcludeTestTrigMap'] Others.AcceptAlgs = ["Triggered"] Others.VetoAlgs = ["Splitter1"] Others.VetoAlgs += ["Splitter2"]
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
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 StreamHITS.ExtendProvenanceRecord = False ServiceMgr.AthenaPoolCnvSvc.MaxFileSizes = ["15000000000"]
StreamAll = AthenaPoolOutputStream("StreamAll", "AthenaPoolMultiTest_StreamAll.root", False, noTag=False) StreamAll.CheckNumberOfWrites = False StreamAll.WritingTool.AttributeListKey = "SimpleTag" StreamAll.WritingTool.SaveDecisions = True # Configure them using filter methods and itemlist # Must make sure that no OutStream's have been declared #theApp.OutStream = []; # bit 2 Stream2.TakeItemsFromInput = True Stream2.AcceptAlgs = ["Splitter2"] Stream2.VetoAlgs = ["Splitter1"] # bit 1 Stream1.TakeItemsFromInput = True Stream1.AcceptAlgs = ["Splitter1"] # bit 3 Stream3.TakeItemsFromInput = True Stream3.AcceptAlgs = ["Splitter3"] Stream3.VetoAlgs = ["Splitter2"] # Unfiltered StreamAll.TakeItemsFromInput = True for stream in [Stream1, Stream2, Stream3]: stream.WriteOnExecute = False stream.MetadataItemList = [] #--------------------------------------------------------------
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 StreamEVGEN.ExtendProvenanceRecord = False ServiceMgr.AthenaPoolCnvSvc.MaxFileSizes = ["15000000000"]
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 #============================================================== # # End of job options file # ###############################################################