#--------------------------------------------------------------
# Event tag collection registration
#--------------------------------------------------------------
# Registration stream:
from RegistrationServices.RegistrationServicesConf import RegistrationStream
from RegistrationServices.RegistrationServicesConf import RegistrationStreamLCGTool
from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool

RegStreamTool1 = RegistrationStreamLCGTool("LCGTool")
RegStreamTool1.OutputCollection = "ToolSupremacy.root"

RegStream1 = RegistrationStream("RegStream1")

RegStream1.OutputLevel = INFO
RegStream1.Tool = RegStreamTool1

# Specifies whether collection references input or output data file:
try:
    RegStream1.WriteInputDataHeader = WriteInputHeader
except:
    RegStream1.WriteInputDataHeader = FALSE
if inCollType == "MonteCarlo":
    RegStream1.WriteInputDataHeader = FALSE

# Output collection name:
try:
    RegStream1.OutputCollection = OutColl
except:
    RegStream1.OutputCollection = "OutputCollection"
예제 #2
0
topSequence += RunEventTagWriter

from RegistrationServices.RegistrationServicesConf import RegistrationStream
from RegistrationServices.RegistrationServicesConf import RegistrationStreamTagTool

TagTool = RegistrationStreamTagTool("TagTool")
#TagTool.PrimaryKey = ['RunNumber','EventNumber']

# output a collection to test multi input metadata copy
FullColl = RegistrationStream("FullColl")
FullColl.WriteInputDataHeader = TRUE
FullColl.OutputCollection = "CheckCollections.root"
FullColl.ItemList += ["DataHeader#*"]
FullColl.ItemList += ["AthenaAttributeList#RunEventTag"]
FullColl.Tool = TagTool
FullColl.OutputLevel = DEBUG

athRegSeq += FullColl

#--------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL)
#--------------------------------------------------------------
svcMgr.MessageSvc.infoLimit = 5000
svcMgr.MessageSvc.debugLimit = 5000
svcMgr.MessageSvc.OutputLevel = INFO
#==============================================================
#
# End of job options file
#
###############################################################
예제 #3
0
#Coll348.CollectionOpenMode = "UPDATE"

#--------------------------------------------------------------
# Complete collection
#
# All bits, but with valid trigger info
CTTool = RegistrationStreamLCGTool("CollTrigTool")
CollTrig = RegistrationStream("CollTrig")
CollTrig.CollectionType = "ExplicitROOT"
CollTrig.OutputCollection = "Collection_SplitTrig.root"
CollTrig.ItemList += ["DataHeader#*"]
CollTrig.ItemList += ["AthenaAttributeList#SimpleTag"]
CollTrig.ItemList += ["CollectionMetadataContainer#Default"]
CollTrig.AcceptAlgs = ["Triggered"]
#CollTrig.OutputLevel = DEBUG
CollTrig.Tool = CTTool

# not Trigger, i.e. corrupted
CollBad = RegistrationStream("CollBad")
CollBad.CollectionType = "ExplicitROOT"
CollBad.OutputCollection = "Collection_SplitBad.root"
CollBad.WriteInputDataHeader = TRUE
CollBad.ItemList += ["DataHeader#EventSelector"]
CollBad.ItemList += ["AthenaAttributeList#SimpleTag"]
CollBad.ItemList += ["CollectionMetadataContainer#Default"]
CollBad.OutputLevel = INFO
CollBad.VetoAlgs = ["Triggered"]

athRegSeq += CollBit1
athRegSeq += Coll23
athRegSeq += Coll456
예제 #4
0
# Converters:
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )

#--------------------------------------------------------------
# Event Collection Registration
#--------------------------------------------------------------
# Run OutputStream as an algorithm
from RegistrationServices.RegistrationServicesConf import RegistrationStream
from RegistrationServices.RegistrationServicesConf import RegistrationStreamLCGTool

TagTool = RegistrationStreamLCGTool("RegistrationStreamLCGTool")

RegStream1 = RegistrationStream( "RegStream1" )
RegStream1.WriteInputDataHeader = True
RegStream1.Tool = TagTool

# Full path name of output collection:
try:
  RegStream1.OutputCollection = Out
except:
  RegStream1.OutputCollection = "test.coll.root"

# Collection type (ExplicitROOT, ExplicitMySQL or ExplicitMySQLlt):
try:
  RegStream1.CollectionType = Type
except:
  RegStream1.CollectionType = "ExplicitROOT"

# Database connection string (Set to "" for ExplicitROOT collection):
try: