9 #include "GaudiKernel/DataObject.h"
10 #include "GaudiKernel/IRegistry.h"
16 AthConstConverter(storageType(), classID(),svcloc,
"LArLATOMEHeaderContByteStreamCnv"),
17 m_scTool(
"LArLATOMEDecoder"),
18 m_rdpSvc(
"ROBDataProviderSvc",
name()) {};
34 return StatusCode::SUCCESS;
39 ATH_MSG_VERBOSE(
"Executing CreateObj method for LArLATOMEHeaderContainer");
43 {
ATH_MSG_ERROR(
"dynamic_cast of OpaqueAdress to ByteStreamAddress failed!");
44 return StatusCode::FAILURE;
47 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> robFrags;
48 m_rdpSvc->getROBData(Gaudi::Hive::currentContext(), LArByteStream::s_allROBIDs_LATOME, robFrags );
49 const std::string&
key = *(pAddr->par());
51 std::unique_ptr<LArLATOMEHeaderContainer> header_coll=std::make_unique<LArLATOMEHeaderContainer>();
58 StatusCode sc=
m_scTool->convert(robFrags,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr, header_coll.get());
59 if (
sc!=StatusCode::SUCCESS) {
60 ATH_MSG_WARNING(
"Conversion tool returned an error. LAr SC containers might be empty.");
64 return StatusCode::SUCCESS;
71 return StatusCode::SUCCESS;