Ejemplo n.º 1
0
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"]

# bit ( 4 | 5 | 6 )
Coll456 = RegistrationStream("Coll456")
Coll456.CollectionType = "ExplicitROOT"
Coll456.OutputCollection = "Collection_Split456.root"
Coll456.ItemList += ["DataHeader#*"]
Coll456.ItemList += ["AthenaAttributeList#SimpleTag"]
Coll456.ItemList += ["CollectionMetadataContainer#Default"]
Coll456.OutputLevel = INFO
Coll456.AcceptAlgs = ["Splitter456"]

# not ( 1 & 2 & 3 & 4 & 5 & 6 )   complement of previous 3
CollBar = RegistrationStream("CollBar")
try:
    RegStream1.Connection = OutCollConnect
except:
    RegStream1.Connection = ""

# Output collection open mode:
try:
    RegStream1.CollectionOpenMode = OpenMode
except:
    RegStream1.CollectionOpenMode = "CREATE_AND_OVERWRITE"

# Reference to input file
addProv = False
try:
    addProv = ProvOn
    RegStream1.WriteAllProv = ProvOn
except:
    print "Writing only primary token to collection"
    RegStream1.WriteAllProv = False

# prov stage included
if addProv:
    try:
        RegStream1.IncludeProvStages = ProvIncludes
    except:
        print "Prov in attributelist will be set based on first data header"

# List of data object references to be added to collection:
RegStream1.ItemList += ["DataHeader#*"]

# List of attribute list objects to be added to collection:
# List of data object references to be added to collection:
RegStream1.ItemList += [ "DataHeader#*" ]
RegStream1.ItemList +=  [ "AthenaAttributeList#SimpleTag" ]
# Output collection type:
RegStream1.CollectionType = "ExplicitROOT"
# Output collection database connection string:
RegStream1.Connection = ""
# Output collection name:
RegStream1.OutputCollection = "OutputCollection"
# Output collection open mode:
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 = []