3 Functions creating ComponentAccumulator with ByteStream converters for L1Topo objects
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from TriggerJobOpts.TriggerByteStreamConfig
import ByteStreamReadCfg
10 from libpyeformat_helper
import SourceIdentifier, SubDetector
11 from AthenaConfiguration.ComponentFactory
import CompFactory
14 tool = CompFactory.L1TopoPhase1ByteStreamTool(name)
16 tool.ROBIDs = [
int(SourceIdentifier(SubDetector.TDAQ_CALO_TOPO_PROC, moduleid))
for moduleid
in moduleids]
19 tool.L1TopoPhase1RAWDataReadContainer =
"L1_Phase1L1TopoRAWData"
20 tool.L1TopoPhase1RAWDataWriteContainer =
""
22 tool.L1TopoPhase1RAWDataReadContainer =
""
23 tool.L1TopoPhase1RAWDataWriteContainer =
"L1_Phase1L1TopoRAWData"
25 acc.setPrivateTools(tool)
29 typeNamesToDecode = [
"L1TopoRDOCollection/L1TopoRDOCollection",
30 "SG::AuxVectorBase/L1TopoRDOCollection"]
35 typeNamesToDecode = [
"xAOD::L1TopoRawDataContainer/L1TopoRawData",
36 "xAOD::L1TopoRawDataAuxContainer/L1TopoRawDataAux."]
47 if __name__ ==
'__main__':
48 '''Run a functional unit test if module is executed'''
50 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
51 from AthenaConfiguration.TestDefaults
import defaultTestFiles
52 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
56 flags.Exec.OutputLevel = DEBUG
57 flags.Input.Files = defaultTestFiles.RAW_RUN2
64 with open(
'L1TopoByteStreamConfig.pkl',
'wb')
as pkl: