Exemplo n.º 1
0
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"]
Coll23.ItemList += ["CollectionMetadataContainer#Default"]
Coll23.OutputLevel = INFO
Coll23.AcceptAlgs = ["Splitter2"]
Coll23.AcceptAlgs += ["Splitter3"]
Coll23.WriteAllProv = False
Coll23.IncludeProvStages = ["NonExisting"]
Coll23.ExcludeProvStages = ["Stream1"]
Exemplo n.º 2
0
#
#--------------------------------------------------------------
from RegistrationServices.RegistrationServicesConf import RegistrationStream
from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool

TagTool = RegistrationStreamTagTool("TagTool")
#TagTool.FragmentByGroup = True

#topSequence    += ["RegistrationStream/FullColl" ]
FullColl = RegistrationStream("FullColl")
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
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
#
###############################################################