Exemplo n.º 1
0
FullColl.OutputCollection = "SplittableCollection.root"
#FullColl.ItemList        += [ "DataHeader#*" ]
FullColl.ItemList += ["DataHeader#DataStream"]
FullColl.ItemList += ["AthenaAttributeList#SimpleTag"]
FullColl.ItemList += ["CollectionMetadataContainer#*"]
FullColl.AcceptAlgs = ["PassAllFilter"]
#FullColl.Tool = TagTool

# Now put full veto to make sure vetos work on collections
#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
                                CollectionType="ExplicitROOT",
                                Tool=TagTool)
RegStream2.WriteInputDataHeader = False
RegStream2.OutputCollection = "SimplePoolCollection2.root"
RegStream2.ItemList += ["DataHeader#Stream2"]
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
Exemplo n.º 3
0
CollBar.VetoAlgs += ["Splitter3"]
CollBar.VetoAlgs += ["Splitter456"]

#--------------------------------------------------------------
# Overlapping collections
#

# bit ( 1 & 7 )
Coll1and7 = RegistrationStream("Coll1and7")
Coll1and7.CollectionType = "ExplicitROOT"
Coll1and7.OutputCollection = "Collection_Split1plus7"
Coll1and7.ItemList += ["DataHeader#*"]
Coll1and7.ItemList += ["AthenaAttributeList#SimpleTag"]
Coll1and7.ItemList += ["CollectionMetadataContainer#Default"]
Coll1and7.OutputLevel = INFO
Coll1and7.RequireAlgs = ["Splitter1"]
Coll1and7.RequireAlgs += ["Splitter7"]

# bit ( 3 | 4 | 8 )
Coll348 = RegistrationStream("Coll348")
Coll348.CollectionType = "ExplicitROOT"
Coll348.OutputCollection = "Collection_Split348.root"
Coll348.ItemList += ["DataHeader#*"]
Coll348.ItemList += ["AthenaAttributeList#SimpleTag"]
Coll348.ItemList += ["CollectionMetadataContainer#Default"]
Coll348.OutputLevel = INFO
Coll348.AcceptAlgs = ["Splitter48"]
Coll348.AcceptAlgs += ["Splitter3"]
#Coll348.CollectionOpenMode = "UPDATE"

#--------------------------------------------------------------
RegStream1.CollectionOpenMode = "CREATE_AND_OVERWRITE"
# Specifies whether collection references input or output data file:
RegStream1.WriteInputDataHeader = FALSE
# Reference to input file
RegStream1.WriteAllProv = False
# prov stage included
RegStream1.IncludeProvStages = []
RegStream1.IncludeProvStages = ['test']
# prov stage excluded
RegStream1.ExcludeProvStages = []
RegStream1.ExcludeProvStages = ['test0']
RegStream1.ExcludeProvStages += ['nottest']
# Persistency service
RegStream1.PersistencySvc = 'EventPersistencySvc'
# Storename
RegStream1.StoreName = 'StoreGateSvc'
# Accept alg list
RegStream1.AcceptAlgs = []
# Requre alg list
RegStream1.RequireAlgs = []
# Veto alg list
RegStream1.VetoAlgs = []

topSequence+=RegStream1

#==============================================================
#
# End of job options file
#
###############################################################