6#include "GaudiKernel/StatusCode.h"
7#include "GaudiKernel/DataObject.h"
8#include "GaudiKernel/IRegistry.h"
60 return StatusCode::SUCCESS;
72 return StatusCode::FAILURE;
75 std::vector<uint32_t> robid(1);
77 std::vector<const ROBDataProviderSvc::ROBF*> robf;
80 m_event =
m_robSvc->getEvent(Gaudi::Hive::currentContext());
82 m_robFrag = (robf.size() > 0 ) ? robf[0] : 0;
90 beamCollection->
clear();
94 uint32_t newrob =
m_hid2re->getRobFromFragID(collID);
95 if (newrob != robid[0]) {
98 m_robSvc->getROBData(Gaudi::Hive::currentContext(), robid, robf);
102 if (robf.size() > 0 ) {
103 m_decoder->fillCollection(robf[0], *beamCollection);
107 ATH_MSG_DEBUG(
" Creating Container " << *(pRE_Addr->par()) );
111 return StatusCode::SUCCESS;
120 return StatusCode::FAILURE ;
125 return Converter::finalize();
#define ATH_CHECK
Evaluate an expression and check for errors.
macros to associate a CLID to a type
Helpers for checking error return status codes and reporting errors.
uint32_t CLID
The Class ID type.
convert to and from a SG storable
AthConstConverter(long storage_type, const CLID &class_type, ISvcLocator *svc, const std::string &name)
const std::string & name() const
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
virtual std::vector< IdentifierHash > GetAllCurrentHashes() const override final
Returns a collection of all hashes availiable in this IDC.
This is a "hash" representation of an Identifier.
virtual StatusCode initialize() override
TileBeamElemContByteStreamCnv(ISvcLocator *svcloc)
static const CLID & classID()
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
virtual StatusCode finalize() override
static long storageType()
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
std::vector< uint32_t > m_ROBID
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
StatusCode status() const
Return the error status from the constructors.
Collection * indexFindPtr(IdentifierHash hash)
Look up a (non-const) collection via hash.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)