7#include "GaudiKernel/IRegistry.h"
30 m_tool(
"L1TopoByteStreamTool"),
65 StatusCode
sc = Converter::initialize();
80 ATH_MSG_DEBUG(
"Connected to ByteStreamEventAccess interface");
110 return StatusCode::SUCCESS;
119 DataObject*& pObj)
const {
123 CHECK(pBS_Addr !=
nullptr);
125 const std::string nm = *(pBS_Addr->par());
133 if (
sc.isFailure()) {
139 return StatusCode::SUCCESS;
148 IOpaqueAddress*& pAddr)
const {
156 return StatusCode::FAILURE;
168 it !=
result->end(); ++it) {
170 if (
sc.isFailure()) {
171 ATH_MSG_ERROR(
" Failed to create ROB for L1TopoRDO: " << **it);
175 return StatusCode::SUCCESS;
const boost::regex re(r_e)
#define ATH_MSG_WARNING(x)
#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...
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
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()
DataModel_detail::const_iterator< DataVector > const_iterator
L1TopoByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.
virtual StatusCode initialize()
Function connecting to all the needed services/tools.
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Service used when writing the BS data.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service used when reading the BS data.
static long storageType()
Function needed by the framework.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const
Function creating the L1Topo ROB fragment from a L1TopoRDOCollection object.
L1TopoSrcIdMap * m_srcIdMap
Object storing the various IDs of the CTP fragment.
~L1TopoByteStreamCnv()
Standard destructor.
static const CLID & classID()
Function needed by the framework.
ToolHandle< L1TopoByteStreamTool > m_tool
Tool doing the actual conversion.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const
Function creating the L1TopoRDOCollection object from a L1Topo ROB fragment.
Container of L1TopoRDOs (standard Athena boilerplate)
This class provides conversion between Lower level Source ID to higher level source ID for L1Topo Byt...
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)