Skip to content
Snippets Groups Projects

Event format meta data

Merged Frank Berghaus requested to merge berghaus/athena:EventFormatMetaData into master
8 files
+ 245
71
Compare changes
  • Side-by-side
  • Inline
Files
8
  • 3bf924f3
    To unify the approach to EventFormat and EventStreamInfo we maintain
    multiple EventFormat objects in the MetaDataStore: one for each output
    stream. This means each object will need a unique key, in the test I
    choose "Format"+StreamName.
    
    The writing job option shows how one could write to multiple streams
    this way. The read job option shows how the content can be acccessed.
    Not sure how and where the configuration needs to be amended to handle
    different keys for EventFormat ...
    
    Thie removes the need for the fully multi-threaded EventFormatSvc, as
    the stream algorithms run in serial.
@@ -2,14 +2,26 @@
# Read an input test file.
import AthenaPoolCnvSvc.ReadAthenaPool
ServiceMgr.EventSelector.InputCollections = [ 'EventFormatWriteTest.pool.root' ]
ServiceMgr.EventSelector.InputCollections = ["testStream1.pool.root"]
# Read in the metadata
from AthenaCommon.AppMgr import ServiceMgr, ToolSvc
ToolSvc += CfgMgr.xAODMaker__EventFormatMetaDataTool(
"EventFormatMetaDataTool"
)
ServiceMgr.MetaDataSvc.MetaDataTools += [ToolSvc.EventFormatMetaDataTool]
# Access the main algorithm sequence.
from AthenaCommon.AlgSequence import AlgSequence
algSeq = AlgSequence()
# Add the xAOD::EventFormat printer algorithm.
algSeq += CfgMgr.xAODMakerTest__EventFormatPrinterAlg()
algSeq += CfgMgr.xAODMakerTest__EventFormatPrinterAlg(
InputKey="FormattestStream1",
)
# Some extra job parameters.
theApp.EvtMax = 1
Loading