ServiceMgr.MultipleEventLoopMgr.ToBeReinitialized = [ "StoreGateSvc", "DetectorStore" ] # # I/O stuff # ServiceMgr.EventSelector.InputCollections = [ "root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000011.pool.root.1" ] include("AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py") from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream Stream1 = AthenaPoolOutputStream("Stream1") Stream1.OutputFile = "MultiplePassFile.root" # ** mandatory parameter ** // The output file name Stream1.ItemList = ["EventInfo#*", "McEventCollection#*"] #-------------------------------------------------------------- #--- Monitoring and Debug printouts #-------------------------------------------------------------- MessageSvc.OutputLevel = INFO Stream1.OutputLevel = DEBUG #StoreGateSvc.Dump=1 #StoreGateSvc.OutputLevel=DEBUG from AthenaCommon.AppMgr import theAuditorSvc from GaudiAud.GaudiAudConf import ChronoAuditor theAuditorSvc += ChronoAuditor()
#-------------------------------------------------------------- # Event Collection Registration #-------------------------------------------------------------- from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool TagTool = RegistrationStreamTagTool("TagTool") from RegistrationServices.RegistrationServicesConf import RegistrationStream RegStream2 = RegistrationStream( "RegStream2" , CollectionType="ExplicitROOT" , Tool=TagTool ) RegStream2.WriteInputDataHeader = False RegStream2.OutputCollection = "SimplePoolCollection2.root" RegStream2.CollectionOpenMode = "UPDATE" RegStream2.ItemList += [ "DataHeader#Stream2" ] RegStream2.ItemList += [ "TagAthenaAttributeList#RunEventTag" ] topSequence += RegStream2 #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL) #-------------------------------------------------------------- svcMgr.MessageSvc.OutputLevel = 3 svcMgr.PoolSvc.OutputLevel = 2 svcMgr.AthenaPoolCnvSvc.OutputLevel = 2 topSequence.WriteData.OutputLevel = 2 Stream2.OutputLevel = 2 RegStream2.OutputLevel = 2 # # End of job options file # ###############################################################
#topSequence += ["RegistrationStream/NullColl" ] NullColl = RegistrationStream("NullColl") NullColl.OutputCollection = "NullableCollection.root" NullColl.ItemList += ["DataHeader#DataStream"] NullColl.ItemList += ["AthenaAttributeList#SimpleTag"] NullColl.OutputLevel = INFO NullColl.RequireAlgs = ["PassNoneFilter"] #topSequence += DataStream topSequence += FullColl topSequence += NullColl #-------------------------------------------------------------- # Output options #-------------------------------------------------------------- include("AthenaPoolExampleConverter/AthenaPoolExampleConverter_jobOption.py") #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL) #-------------------------------------------------------------- svcMgr.MessageSvc.OutputLevel = INFO svcMgr.PoolSvc.OutputLevel = DEBUG svcMgr.AthenaPoolCnvSvc.OutputLevel = DEBUG topSequence.WriteData.OutputLevel = DEBUG DataStream.OutputLevel = DEBUG # # End of job options file # ###############################################################
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream Stream1 = AthenaPoolOutputStream("Stream1", "ROOTTREE:SimplePoolFile5.root") Stream1.ItemList += ["ExampleHitContainer#MyHits"] Stream1.MetadataItemList += ["ExampleHitContainer#PedestalWriteData"] Stream1.ProvideDef = True #-------------------------------------------------------------- # Private Application Configuration options #-------------------------------------------------------------- # Load "user algorithm" top algorithms to be run, and the libraries that house them from AthenaPoolExampleAlgorithms.AthenaPoolExampleAlgorithmsConf import AthPoolEx__WriteData, AthPoolEx__WriteCond topSequence += AthPoolEx__WriteData("WriteData") from StoreGate.StoreGateConf import StoreGateSvc topSequence += AthPoolEx__WriteCond("WriteCond", DetStore=StoreGateSvc("MetaDataStore"), ConditionName="PedestalWriteData") #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL) #-------------------------------------------------------------- svcMgr.MessageSvc.OutputLevel = 3 svcMgr.PoolSvc.OutputLevel = 2 svcMgr.AthenaPoolCnvSvc.OutputLevel = 2 topSequence.WriteData.OutputLevel = 2 Stream1.OutputLevel = 2 # # End of job options file # ###############################################################
RegStream2.ItemList += ["TagAthenaAttributeList#RunEventTag"] topSequence += RegStream2 RegStream3 = RegistrationStream("RegStream3", CollectionType="ExplicitROOT", Tool=TagTool) RegStream3.WriteInputDataHeader = False RegStream3.OutputCollection = "EmptyPoolCollection.root" RegStream3.ItemList += ["DataHeader#Stream2"] RegStream3.ItemList += ["TagAthenaAttributeList#" + MagicWriteTag.Key] RegStream3.RequireAlgs = ["PassNoneFilter"] topSequence += RegStream3 #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL) #-------------------------------------------------------------- svcMgr.MessageSvc.OutputLevel = 3 svcMgr.PoolSvc.OutputLevel = 2 svcMgr.AthenaPoolCnvSvc.OutputLevel = 2 topSequence.WriteData.OutputLevel = 2 Stream1.OutputLevel = 2 Stream2.OutputLevel = 2 RegStream1.OutputLevel = 2 RegStream2.OutputLevel = 2 RegStream3.OutputLevel = 2 # # End of job options file # ###############################################################
#services that need to be reinit ServiceMgr.MultipleEventLoopMgr.ToBeReinitialized = ["StoreGateSvc", "DetectorStore"] # # I/O stuff # ServiceMgr.EventSelector.InputCollections = [ "root://eosatlas//eos/atlas/atlascerngroupdisk/proj-sit/digitization/RTT/mc10/mc10_7TeV.005008.CavernInput.merge.HITS.e4_e607_s951_s952_tid170551_00/HITS.170551._000011.pool.root.1" ] # Set up for seeking. ServiceMgr.EventSelector.CollectionType = "SeekableROOT" include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" ) from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream Stream1 = AthenaPoolOutputStream( "Stream1" ) Stream1.OutputFile = "MultiplePassFile.root"; # ** mandatory parameter ** // The output file name Stream1.ForceRead=TRUE #force read of output data objs Stream1.ItemList=["EventInfo#*", "McEventCollection#*"] #-------------------------------------------------------------- #--- Monitoring and Debug printouts #-------------------------------------------------------------- MessageSvc.OutputLevel = INFO Stream1.OutputLevel = DEBUG #StoreGateSvc.Dump=1 #StoreGateSvc.OutputLevel=DEBUG from AthenaCommon.AppMgr import theAuditorSvc from GaudiAud.GaudiAudConf import ChronoAuditor theAuditorSvc += ChronoAuditor()
#-------------------------------------------------------------- # DEBUG messaging #-------------------------------------------------------------- svcMgr.ProxyProviderSvc.OutputLevel = DEBUG svcMgr.AthenaPoolAddressProviderSvcPrimary.OutputLevel = DEBUG svcMgr.AthenaPoolAddressProviderSvcSecondary.OutputLevel = DEBUG svcMgr.DoubleEventSelector.OutputLevel = DEBUG #-------------------------------------------------------------- # Output options #-------------------------------------------------------------- from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream # TODO: noTag=True to avoid warning, needs EventInfo overlay implemented Stream1 = AthenaPoolOutputStream("Stream1", asAlg=True, noTag=True) Stream1.OutputLevel = INFO Stream1.OutputFile = "OutputRDO.root" # List of DO's to write out Stream1.ItemList = [] Stream1.ItemList += ["McEventCollection#TruthEvent"] Stream1.ItemList += ["RecoTimingObj#EVNTtoHITS_timings"] #-------------------------------------------------------------- # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) #-------------------------------------------------------------- svcMgr.MessageSvc.debugLimit = 100000 # No stats printout include("AthenaPoolTest/NoStats_jobOptions.py")
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream StreamDPD = AthenaPoolOutputStream("StreamDPD") StreamDPD.TakeItemsFromInput = True #StreamDPD.ItemList += ['CaloClusterContainer#CaloCalTopoCluster'] #StreamDPD.ItemList += ['JetCollection#Cone4H1TowerJets'] #StreamDPD.ItemList += ['JetKeyDescriptor#JetKeyMap'] #StreamDPD.ItemList += ['Rec::TrackParticleContainer#TrackParticleCandidate'] #StreamDPD.ItemList += ['Rec::TrackParticleContainer#StacoTrackParticles'] #StreamDPD.ItemList += ['TruthParticleContainer#SpclMC'] #StreamDPD.ItemList += ['McEventCollection#GEN_AOD'] StreamDPD.ExcludeList =['CaloClusterContainer#CaloCalTopoCluster'] StreamDPD.ExcludeList+=['TrigRoiDescriptor#HLTAutoKey*'] StreamDPD.ExcludeList+=['98849495#ConvertedMBoySegments'] StreamDPD.ExcludeList+=['107385089#*'] StreamDPD.ExcludeList+=['Rec::TrackParticleContainer#TrackParticleCandidate'] StreamDPD.OutputLevel = DEBUG StreamDPD.OutputFile = "SkimmedThin.AOD.pool.root" #StreamDPD.OutputFile = outFileName StreamDPD.ForceRead=TRUE; #force read of output data objs StreamDPD.AcceptAlgs=["ttbarFilter"] ChronoStatSvc = Service( "ChronoStatSvc" ) ChronoStatSvc.ChronoDestinationCout = True ChronoStatSvc.PrintUserTime = True ChronoStatSvc.PrintSystemTime = True ChronoStatSvc.PrintEllapsedTime = True AthenaPoolCnvSvc = Service( "AthenaPoolCnvSvc" ) AthenaPoolCnvSvc.UseDetailChronoStat = True
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream StreamDPD = AthenaPoolOutputStream("StreamDPD") StreamDPD.TakeItemsFromInput = True #StreamDPD.ItemList += ['CaloClusterContainer#CaloCalTopoCluster'] #StreamDPD.ItemList += ['JetCollection#Cone4H1TowerJets'] #StreamDPD.ItemList += ['JetKeyDescriptor#JetKeyMap'] #StreamDPD.ItemList += ['Rec::TrackParticleContainer#TrackParticleCandidate'] #StreamDPD.ItemList += ['Rec::TrackParticleContainer#StacoTrackParticles'] #StreamDPD.ItemList += ['TruthParticleContainer#SpclMC'] #StreamDPD.ItemList += ['McEventCollection#GEN_AOD'] StreamDPD.ExcludeList = ['CaloClusterContainer#CaloCalTopoCluster'] StreamDPD.ExcludeList += ['TrigRoiDescriptor#HLTAutoKey*'] StreamDPD.ExcludeList += ['98849495#ConvertedMBoySegments'] StreamDPD.ExcludeList += ['107385089#*'] StreamDPD.ExcludeList += ['Rec::TrackParticleContainer#TrackParticleCandidate'] StreamDPD.OutputLevel = DEBUG StreamDPD.OutputFile = "SkimmedThin.AOD.pool.root" #StreamDPD.OutputFile = outFileName StreamDPD.ForceRead = TRUE #force read of output data objs StreamDPD.AcceptAlgs = ["ttbarFilter"] ChronoStatSvc = Service("ChronoStatSvc") ChronoStatSvc.ChronoDestinationCout = True ChronoStatSvc.PrintUserTime = True ChronoStatSvc.PrintSystemTime = True ChronoStatSvc.PrintEllapsedTime = True AthenaPoolCnvSvc = Service("AthenaPoolCnvSvc") AthenaPoolCnvSvc.UseDetailChronoStat = True