1#include "GaudiKernel/MsgStream.h"
3#include "GaudiKernel/ThreadGaudi.h"
6#include "RawDataCnv/RawDataAddress.h"
7#include "RawDataCnv/RawDataInputSvc.h"
8#include "RawDataCnv/PackedRawDataCnvSvc.h"
9#include "RawDataCnv/EventManagement/RAWEVENT.h"
10#include "EventModel/EventHeader.h"
11#include "RawDataCnv/RawDataEvtHeaderCnv.h"
26 if ( sc.isFailure() )
return sc;
28 std::string PackedRawDataCnvSvc_Name(
"PackedRawDataCnvSvc");
29 std::string RawDataInputSvc_Name(
"RawDataInputSvc");
30 std::string RawDataEvtHeaderCnv_Name(
"RawDataEvtHeaderCnv");
35 SmartIF<IService> pCnvSvc(conversionSvc());
36 if (isGaudiThreaded(pCnvSvc->name())){
37 PackedRawDataCnvSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name());
38 RawDataInputSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name());
39 RawDataEvtHeaderCnv_Name += getGaudiThreadIDfromName(pCnvSvc->name());
43 MsgStream log(messageService(), RawDataEvtHeaderCnv_Name.c_str());
46 sc = serviceLocator()->service(PackedRawDataCnvSvc_Name.c_str(), svc);
47 if ( sc.isFailure() ) {
48 log << MSG::ERROR <<
"Can't get RawDataAccess interface" << endreq;
49 return StatusCode::FAILURE;
53 if (m_RawDataAccess == 0 ) {
54 log << MSG::ERROR <<
"RawDataEvtHeaderCnv: Cant cast to RawDataCnvSvc" << endreq;
55 return StatusCode::FAILURE;
58 sc = serviceLocator()->getService(RawDataInputSvc_Name.c_str(), svc);
59 if ( sc.isFailure() ) {
60 log << MSG::WARNING <<
"Cant get RawDataInputSvc " << endreq;
65 if ( m_inputSvc == 0 ) {
66 log << MSG::ERROR <<
"Cant cast to RawDataInputSvc" << endreq;
67 return StatusCode::FAILURE ;
70 return StatusCode::SUCCESS;
81 return Converter::updateObj(pAddr, pObj);
97 if (evt == NULL)
return StatusCode::FAILURE;
106 return StatusCode::SUCCESS;
unsigned const long PACKEDRAWEVENT_StorageType
const RawEventHeader & eventHeader() const