6#include "GaudiKernel/ThreadGaudi.h"
25 if ( sc.isFailure() )
return sc;
27 std::string PackedRawDataCnvSvc_Name(
"PackedRawDataCnvSvc");
28 std::string RawDataInputSvc_Name(
"RawDataInputSvc");
29 std::string RawDataZddEventCnv_Name(
"RawDataZddEventCnv");
31 SmartIF<IService> pCnvSvc(conversionSvc());
32 if (isGaudiThreaded(pCnvSvc->name())){
33 PackedRawDataCnvSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name());
34 RawDataInputSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name());
35 RawDataZddEventCnv_Name += getGaudiThreadIDfromName(pCnvSvc->name());
38 MsgStream log(messageService(), RawDataZddEventCnv_Name.c_str());
41 sc = serviceLocator()->getService(RawDataInputSvc_Name.c_str(), svc);
43 if ( m_inputSvc == 0 ) {
44 log<<MSG::WARNING<<
" Cant cast to RawDataInputSvc " <<endreq;
45 return StatusCode::FAILURE ;
50 return StatusCode::SUCCESS;
66 return StatusCode::FAILURE;
72 uint32_t nbuf = zddBuf.
nBuf();
73 for ( uint32_t i = 0; i < nbuf; ++i ) {
74 uint32_t* buf = zddBuf(i);
78 return StatusCode::SUCCESS;
83 return Converter::updateObj(pAddr, pObj);
89 return StatusCode::SUCCESS;
unsigned const long PACKEDRAWEVENT_StorageType
const CLID & CLID_ZddEvent
const CLID & CLID_ZddEvent
uint32_t bufSize(int i) const
const BufferHolder & getZddBuf() const
static const CLID & classID()
virtual ~RawDataZddEventCnv()
RawDataZddEventCnv(ISvcLocator *svc)
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
virtual StatusCode updateObj(IOpaqueAddress *, DataObject *)
override the RawDataBaseCnv version
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert the transient object to the requested representation.
static ZddConverter * instance(int runMode=2)
bool convert(uint32_t *pdata, int size, Event::ZddEvent *evt)