ATLAS Offline Software
|
Example implementation of a tool for L1 RoI conversion from BS to xAOD and from xAOD to BS (IL1TriggerByteStreamTool interface) More...
#include <ExampleL1TriggerByteStreamTool.h>
Public Member Functions | |
ExampleL1TriggerByteStreamTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~ExampleL1TriggerByteStreamTool () override=default |
virtual StatusCode | initialize () override |
virtual StatusCode | convertFromBS (const std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &vrobf, const EventContext &eventContext) const override |
BS->xAOD conversion. More... | |
virtual StatusCode | convertToBS (std::vector< OFFLINE_FRAGMENTS_NAMESPACE_WRITE::ROBFragment * > &vrobf, const EventContext &eventContext) override |
xAOD->BS conversion More... | |
virtual const std::vector< uint32_t > & | robIds () const override |
Declare ROB IDs for conversion. More... | |
Private Attributes | |
Gaudi::Property< std::vector< uint32_t > > | m_robIds |
SG::WriteHandleKey< xAOD::MuonRoIContainer > | m_roiWriteKey |
SG::ReadHandleKey< xAOD::MuonRoIContainer > | m_roiReadKey |
Example implementation of a tool for L1 RoI conversion from BS to xAOD and from xAOD to BS (IL1TriggerByteStreamTool interface)
This example decodes Muon RoIs from MUCTPI raw data, filling the results with dummy values. Real implementations should have very similar structure and should implement the same functionality and properties. In particular, the convertFromBS method should record a new xAOD collection in the event store using a WriteHandle, and the convertToBS method should take the xAOD collection from the event store using a ReadHandle.
Definition at line 27 of file ExampleL1TriggerByteStreamTool.h.
ExampleL1TriggerByteStreamTool::ExampleL1TriggerByteStreamTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 21 of file ExampleL1TriggerByteStreamTool.cxx.
|
overridevirtualdefault |
|
overridevirtual |
BS->xAOD conversion.
Definition at line 37 of file ExampleL1TriggerByteStreamTool.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 26 of file ExampleL1TriggerByteStreamTool.cxx.
|
inlineoverridevirtual |
|
private |
Definition at line 48 of file ExampleL1TriggerByteStreamTool.h.
|
private |
Definition at line 55 of file ExampleL1TriggerByteStreamTool.h.
|
private |
Definition at line 52 of file ExampleL1TriggerByteStreamTool.h.