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;
129 return ROOT_StorageType;
142 ATH_MSG_DEBUG(
"::createObj(" << pAddr <<
", " << pObj <<
")");
146 return StatusCode::FAILURE;
149 <<
"/" << rba->par()[1] <<
"]...");
152 <<
"/" << rba->par()[1] <<
"]... [done]");
155 return StatusCode::SUCCESS;
164 ATH_MSG_INFO(
"::createRep(" << pObj <<
", " << pAddr <<
")");
167 return StatusCode::FAILURE;
169 msg(MSG::INFO) <<
" -> clid: [" << pObj->clID() <<
"]" <<
endmsg
170 <<
" -> name: [" << pObj->name() <<
"]" <<
endmsg;
191 GenericAddress* addr =
new GenericAddress(ROOT_StorageType,
196 (ROOT_StorageType,
id,
199 (
unsigned long)(value_ptr),
200 (
unsigned long)(m_nbrEvts-1));
203 return StatusCode::SUCCESS;
209 return ROOT_StorageType;