1#include "GaudiKernel/MsgStream.h"
2#include "GaudiKernel/IRegistry.h"
30 MsgStream log(messageService(),
"RawDataTrigCnv");
33 sc = serviceLocator()->service(
"PackedRawDataCnvSvc", svc);
34 if (sc != StatusCode::SUCCESS) {
35 log << MSG::ERROR <<
"Can't get RawDataAccess interface" << endreq;
36 return StatusCode::FAILURE;
40 if (m_RawDataAccess == 0 ) {
41 log << MSG::ERROR <<
"RawDataCnv: Cant cast to RawDataCnvSvc" << endreq;
42 return StatusCode::FAILURE;
45 sc = serviceLocator()->getService(
"RawDataInputSvc", svc);
46 if(sc != StatusCode::SUCCESS ) {
47 log << MSG::WARNING <<
"Cant get RawDataInputSvc " << endreq;
52 if(m_inputSvc == 0 ) {
53 log << MSG::ERROR <<
"Cant cast to RawDataInputSvc" << endreq;
54 return StatusCode::FAILURE ;
57 return StatusCode::SUCCESS;
61 MsgStream log(
msgSvc(),
"RawDataTrigCnv");
62 log << MSG::DEBUG <<
"RawDataTrigCnv::updateObj" << endreq;
63 return Converter::updateObj(pAddr, pObj);
70 return StatusCode::SUCCESS;
75 std::string nm = pObj->registry()->name();
79 return StatusCode::SUCCESS;
unsigned const long PACKEDRAWEVENT_StorageType
const CLID & CLID_TrigEvent
const CLID & CLID_TrigEvent
RawDataTrigCnv(ISvcLocator *svc)
static const CLID & classID()
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.