6#include "GaudiKernel/StatusCode.h"
7#include "GaudiKernel/DataObject.h"
38 ,
m_tool(
"TileDigitsContByteStreamTool")
68 return StatusCode::SUCCESS;
79 return StatusCode::FAILURE;
82 const std::string containerName(*(pRE_Addr->par()));
83 bool isTMDB(containerName == std::string(
"MuRcvDigitsCnt"));
84 bool isFELIX(containerName == std::string(
"TileDigitsFlxCnt"));
85 uint32_t newrob = 0x0;
88 std::vector<uint32_t> robid(1);
90 std::vector<const ROBDataProviderSvc::ROBF*> robf;
99 digitsCollection->
clear();
104 newrob =
m_hid2re->getRobFromTileMuRcvFragID(collID);
105 }
else if (isFELIX) {
108 newrob =
m_hid2re->getRobFromFragID(collID);
111 if (newrob != robid[0]) {
114 m_robSvc->getROBData(Gaudi::Hive::currentContext(), robid, robf);
117 if (robf.size() > 0 ) {
120 m_decoder->fillCollection_TileMuRcv_Digi(robf[0], *digitsCollection);
123 m_decoder->fillCollection_FELIX_Digi(robf[0], *digitsCollection);
125 m_decoder->fillCollection(robf[0], *digitsCollection);
129 digitsCollection->
setFragBCID(0xDEAD | (status<<16));
130 ATH_MSG_DEBUG(
"Status for " << ((isTMDB)?
"TMDB ":
"") <<
"drawer 0x" << MSG::hex << collID <<
" in Digi frag is 0x" << status << MSG::dec);
136 ATH_MSG_DEBUG(
"Creating digits container: " << containerName );
142 return StatusCode::SUCCESS;
156 std::string key(
"Tile");
165 return StatusCode::FAILURE;
168 std::string
name = pObj->registry()->name();
176 return m_tool->convert(digicont, fea);
181 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
Incident sent after a store is cleared.
TileMutableDataContainer< TileDigitsContainer > TileMutableDigitsContainer
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()
Template class for assembling a full atlas raw event from subfragments.
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.
static const unsigned int FELIX_FRAGID_OFFSET
Offset for frag ID used for FELIX in frag ID to ROB ID map.
void clear()
Clear everything for next event.
void setFragBCID(uint32_t bcid)
Set BCID.
virtual StatusCode finalize() override
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
virtual StatusCode initialize() override
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
static const CLID & classID()
ToolHandle< TileDigitsContByteStreamTool > m_tool
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
TileDigitsContByteStreamCnv(ISvcLocator *svcloc)
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
static long storageType()
StatusCode status() const
Return the error status from the constructors.
Collection * indexFindPtr(IdentifierHash hash)
Look up a (non-const) collection via hash.
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)