|
ATLAS Offline Software
|
Go to the documentation of this file.
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"),
60 m_robDataProvider(
"ROBDataProviderSvc",m_name),
61 m_ByteStreamEventAccess(
"ByteStreamCnvSvc", m_name),
62 m_evtStore(
"StoreGateSvc", m_name)
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;
ToolHandle< ZdcByteStreamReadV1V2Tool > m_tool
Tool that does the actual work.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for READING bytestream.
ZdcByteStreamCnv(ISvcLocator *svcloc)
ZdcByteStreamCnv.cxx.
convert to and from a SG storable
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
static long storageType()
Gaudi converter base class with const interfaces.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
ServiceHandle< StoreGateSvc > m_evtStore
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
std::vector< const ROBF * > VROBFRAG
uint32_t CLID
The Class ID type.
static const CLID & classID()
static constexpr long storageType()
Helpers for checking error return status codes and reporting errors.
An STL vector of pointers that by default owns its pointed-to elements.
#define ATH_MSG_WARNING(x)
virtual StatusCode initialize() override
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Service for WRITING bytestream.
virtual ~ZdcByteStreamCnv()