45 StatusCode sc = ConversionSvc::initialize();
47 MsgStream log(
msgSvc(),
"CalibTreeCnvSvc");
49 if (!sc.isSuccess())
return sc;
56 sc = serviceLocator()->getService
57 (
"CalibDataSvc", IDataProviderSvc::interfaceID(),(IInterface*&) m_detDataSvc);
58 if ( !sc.isSuccess() ) {
59 log << MSG::ERROR <<
"Could not locate CalibDataSvc" << endreq;
68 sc = setDataProvider(m_detDataSvc);
69 if ( !sc.isSuccess() ) {
70 log << MSG::ERROR <<
"Could not set data provider" << endreq;
77 sc = serviceLocator()->service
78 (
"DetectorPersistencySvc", m_detPersSvc,
true);
79 if ( !sc.isSuccess() ) {
81 <<
"Cannot locate IConversionSvc interface of DetectorPersistencySvc"
86 <<
"Retrieved IConversionSvc interface of DetectorPersistencySvc"
91 IAddressCreator* iAddrCreator;
94 sc = m_detPersSvc->queryInterface(IAddressCreator::interfaceID(),
95 (
void**) &iAddrCreator);
96 if ( !sc.isSuccess() ) {
98 <<
"Cannot query IAddressCreator interface of DetectorPersistencySvc"
103 <<
"Retrieved IAddressCreator interface of DetectorPersistencySvc"
107 <<
"Set it as the address creator of the CalibTreeCnvSvc" << endreq;
108 sc = setAddressCreator(iAddrCreator);
109 if ( !sc.isSuccess() ) {
110 log << MSG::ERROR <<
"Cannot set the address creator" << endreq;