53 std::string PackedRawDataCnvSvc_Name(
"PackedRawDataCnvSvc");
54 std::string RawDataInputSvc_Name(
"RawDataInputSvc");
55 std::string RawDataMucMcHitCnv_Name(
"RawDataMucMcHitCnv");
60 SmartIF<IService> pCnvSvc(conversionSvc());
61 if (isGaudiThreaded(pCnvSvc->name())){
62 PackedRawDataCnvSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name());
63 RawDataInputSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name());
64 RawDataMucMcHitCnv_Name += getGaudiThreadIDfromName(pCnvSvc->name());
69 MsgStream log(messageService(), RawDataMucMcHitCnv_Name.c_str());
72 if (StatusCode::SUCCESS != sc) {
73 log << MSG::ERROR <<
"RawDataBaseCnv: Cant initialize PackedRawDataCnvSvc" << endreq;
79 sc = serviceLocator()->service(PackedRawDataCnvSvc_Name.c_str(), isvc,
true);
80 if (sc != StatusCode::SUCCESS) {
81 log << MSG::ERROR <<
"Cant get PackedRawDataCnvSvc" << endreq;
85 if (m_RawDataAccess == 0 ) {
86 log << MSG::ERROR <<
"RawDataMucCnv: Cant cast to RawDataCnvSvc " << endreq;
87 return StatusCode::FAILURE;
90 sc = serviceLocator()->getService(RawDataInputSvc_Name.c_str(), isvc);
91 if (sc != StatusCode::SUCCESS ) {
92 log << MSG::WARNING <<
"Cant get RawDataInputSvc " << endreq;
97 if (m_inputSvc == 0 ) {
98 log << MSG::WARNING <<
"Cant cast to RawDataInputSvc " << endreq;
99 return StatusCode::FAILURE ;
102 return StatusCode::SUCCESS;