32#include "GaudiKernel/DataObject.h"
33#include "GaudiKernel/IOpaqueAddress.h"
34#include "GaudiKernel/IRegistry.h"
35#include "GaudiKernel/ISvcLocator.h"
36#include "GaudiKernel/StatusCode.h"
37#include "GaudiKernel/MsgStream.h"
57 m_name(
"ZdcByteStreamCnv"),
59 m_tool(
"ZdcByteStreamReadV1V2Tool/ZdcByteStreamReadV1V2Tool"),
115 return StatusCode::SUCCESS;
129 return StatusCode::FAILURE;
132 const std::string nm = *(pBS_Addr->par());
138 const std::vector<uint32_t>& vID(
m_tool->ppmSourceIDs(
"temp"));
145 ATH_MSG_DEBUG(
"ZDC: Number of ROB fragments is " << robFrags.size() );
148 auto TTCollection = std::make_unique<xAOD::TriggerTowerContainer>();
149 auto aux = std::make_unique<xAOD::TriggerTowerAuxContainer>();
150 TTCollection->setStore(
aux.get());
152 if (robFrags.empty())
156 return StatusCode::SUCCESS;
165 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
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.
An STL vector of pointers that by default owns its pointed-to elements.
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
AthConstConverter(long storage_type, const CLID &class_type, ISvcLocator *svc, const std::string &name)
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
std::vector< const ROBF * > VROBFRAG
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for READING bytestream.
ServiceHandle< StoreGateSvc > m_evtStore
virtual StatusCode initialize() override
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
static long storageType()
ZdcByteStreamCnv(ISvcLocator *svcloc)
ZdcByteStreamCnv.cxx.
static const CLID & classID()
std::string m_name
Converter name.
ToolHandle< ZdcByteStreamReadV1V2Tool > m_tool
Tool that does the actual work.
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Service for WRITING bytestream.
virtual ~ZdcByteStreamCnv()
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)