|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/StatusCode.h"
7 #include "GaudiKernel/DataObject.h"
8 #include "GaudiKernel/IRegistry.h"
32 :
AthConstConverter(storageType(), classID(), svcloc,
"TileBeamElemContByteStreamCnv")
33 , m_robSvc(
"ROBDataProviderSvc",
name())
34 , m_decoder(
"TileROD_Decoder")
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();
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 ;
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
convert to and from a SG storable
StatusCode status() const
Return the error status from the constructors.
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
uint32_t getRobFromFragID(int frag_id) const
make a ROB SrcID for a fragment ID
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
DataObject * asStorable(T *pObject)
std::vector< uint32_t > m_ROBID
virtual StatusCode initialize() override
Gaudi converter base class with const interfaces.
static const CLID & classID()
static const CLID & ID()
the CLID of T
virtual std::vector< IdentifierHash > GetAllCurrentHashes() const override final
Returns a collection of all hashes availiable in this IDC.
static long storageType()
virtual StatusCode finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
uint32_t CLID
The Class ID type.
static constexpr long storageType()
TileBeamElemContByteStreamCnv(ISvcLocator *svcloc)
Collection * indexFindPtr(IdentifierHash hash)
Look up a (non-const) collection via hash.
Helpers for checking error return status codes and reporting errors.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
macros to associate a CLID to a type