23 #include "GaudiKernel/DataObject.h"
25 #include "GaudiKernel/ServiceHandle.h"
26 #include "GaudiKernel/System.h"
37 std::string name_from_clid (
const CLID clid)
40 o <<
"AthenaRootLeafCnv_" << clid;
54 ISvcLocator* pSvcLocator ) :
55 ::
Converter( ROOT_StorageType, clid, pSvcLocator ),
67 ::
Converter ( ROOT_StorageType, CLID_NULL, pSvcLocator ),
90 msg().setLevel( MSG::INFO );
97 return StatusCode::FAILURE;
104 IDictLoaderSvc_t dictSvc(
"AthDictLoaderSvc",
107 if ( !dictSvc.retrieve().isSuccess() ) {
108 ATH_MSG_ERROR(
"could not retrieve [" << dictSvc.typeAndName() <<
"] !");
109 return StatusCode::FAILURE;
112 RootType ty = dictSvc->load_type(this->objType());
114 << this->objType() <<
"]: name=["
115 << ty.
Name() <<
"]");
118 ATH_MSG_DEBUG(
"converter correctly initialized - clid=[" << objType() <<
"]");
119 return StatusCode::SUCCESS;
156 return ROOT_StorageType;
169 ATH_MSG_DEBUG(
"::createObj(" << pAddr <<
", " << pObj <<
")");
173 return StatusCode::FAILURE;
176 <<
"/" << rba->par()[1] <<
"]...");
179 <<
"/" << rba->par()[1] <<
"]... [done]");
182 return StatusCode::SUCCESS;
191 ATH_MSG_INFO(
"::createRep(" << pObj <<
", " << pAddr <<
")");
194 return StatusCode::FAILURE;
196 msg(MSG::INFO) <<
" -> clid: [" << pObj->clID() <<
"]" <<
endmsg
197 <<
" -> name: [" << pObj->name() <<
"]" <<
endmsg;
218 GenericAddress* addr =
new GenericAddress(ROOT_StorageType,
223 (ROOT_StorageType,
id,
226 (
unsigned long)(value_ptr),
227 (
unsigned long)(m_nbrEvts-1));
230 return StatusCode::SUCCESS;
236 return ROOT_StorageType;