New CTPResultByteStreamTool for xAOD::CTPResult (ATR-24445)
As title suggests, this MR introduces a new tool that allows for both bytestream encoding and decoding of the new xAOD::CTPResult object for the Run-3 EDM implementation of the result of the CTP (!81388 (merged)). Both the encoding and decoding has been tested with the CTP result words compared with those interpreted by the RoIBResultByteStreamTool that is currently used for both the encoding and decoding of the previous ROIB::CTPResult object. This was tested using the commands presented in the associated JIRA (ATR-24445), where it was checked that TrigDecisionMakerMT was using the xAOD::CTPResult object formed from decoding the previously encoded xAOD::CTPResult from the result of the L1 CTP simulation.
Detailed summary of the changes:
-
CTPResultByteStreamTool: New bytestream encoding/decoding tool. Functionality follows what was done byRoIBResultByteStreamToolforROIB::CTPResult. -
CTPResult.cxx: Correct bug in debug printing (this is for the oldROIB::CTPResultobject). -
CTPResult_v1: Inclusion of new helpful functions to get and set the header and trailer information. -
CTPResultUtils.cxx: Change initialize function for new header and trailer helper functions and improve readability of object debug printing. -
L1TriggerResultByteStreamCnv: Adapted to use new tool. Follows what was done byRoIBResultByteStreamTool. -
ResultBuilder.cxx: Simplify creation ofxAOD::CTPResultand correct logic behind setting time stamp words. -
TrigDecisionMakerMT.cxx: Change the logging level of a message fromINFOtoDEBUGas information is only necessary for debugging. -
TriggerConfig.py: IncludexAOD::CTPResultto writing inputs and outputs when performing bytestream conversion when rewriting L1 simulation results. -
TrigT1ResultByteStreamConfig.py: Add configuration of new encoder/decoder tools. -
TrigT1ResultByteStream_entries.cxx: Include new tool.
Edited by Elliot Watton