24#include "GaudiKernel/DataObject.h"
25#include "GaudiKernel/IOpaqueAddress.h"
26#include "GaudiKernel/IRegistry.h"
27#include "GaudiKernel/ISvcLocator.h"
28#include "GaudiKernel/StatusCode.h"
54 AthMessaging(svcloc != 0 ? msgSvc() : 0,
"L1TopoByteStreamAuxCnv"),
55 m_name(
"L1TopoByteStreamAuxCnv"),
56 m_readTool(
"L1TopoByteStreamTool/L1TopoByteStreamTool") {}
71 CHECK(Converter::initialize());
74 return StatusCode::SUCCESS;
83 CHECK(pBS_Addr !=
nullptr);
85 const std::string nm = *(pBS_Addr->par());
90 topoContainer.setStore(
aux);
93 StatusCode
sc =
m_readTool->convert(nm, &topoRDOCollection);
100 for (
auto topoRDO : topoRDOCollection) {
103 item->initialize(topoRDO->getDataWords(), topoRDO->getStatusWords(),
104 topoRDO->getError(), topoRDO->getSourceID());
112 return StatusCode::SUCCESS;
118 return StatusCode::FAILURE;
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
convert to and from a SG storable
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Container of L1TopoRDOs (standard Athena boilerplate)
static long storageType()
std::string m_name
Converter name.
L1TopoByteStreamAuxCnv(ISvcLocator *svcloc)
virtual StatusCode initialize()
static const CLID & classID()
ToolHandle< L1TopoByteStreamTool > m_readTool
Do the main job - retrieve xAOD Topo from robs.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
L1TopoRawDataAuxContainer_v1 L1TopoRawDataAuxContainer
Define the latest version of the L1TopoRawData auxiliary container.
L1TopoRawData_v1 L1TopoRawData
Define the latest version of the L1TopoRawData class.
L1TopoRawDataContainer_v1 L1TopoRawDataContainer
Define the latest version of the L1TopoRawData container.