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 <<
"AthenaRootxAODCnv_" << clid;
54 ISvcLocator* pSvcLocator ) :
55 ::
Converter( POOL_ROOTTREE_StorageType, clid, pSvcLocator ),
67 ::
Converter ( POOL_ROOTTREE_StorageType, CLID_NULL, pSvcLocator ),
98 return StatusCode::FAILURE;
105 IDictLoaderSvc_t dictSvc(
"AthDictLoaderSvc",
108 if ( !dictSvc.retrieve().isSuccess() ) {
109 ATH_MSG_ERROR(
"could not retrieve [" << dictSvc.typeAndName() <<
"] !");
110 return StatusCode::FAILURE;
113 RootType ty = dictSvc->load_type(this->objType());
115 << this->objType() <<
"]: name=["
116 << ty.
Name() <<
"]");
119 ATH_MSG_DEBUG(
"converter correctly initialized - clid=[" << objType() <<
"]");
120 return StatusCode::SUCCESS;
158 return POOL_ROOTTREE_StorageType;
171 ATH_MSG_DEBUG(
"::createObj(" << pAddr <<
", " << pObj <<
")");
175 return StatusCode::FAILURE;
178 <<
"/" << rba->par()[1] <<
"]...");
184 <<
"/" << rba->par()[1] <<
"]... [done]");
191 return StatusCode::SUCCESS;
202 ATH_MSG_INFO(
"::createRep(" << pObj <<
", " << pAddr <<
")");
205 return StatusCode::FAILURE;
207 msg(MSG::INFO) <<
" -> clid: [" << pObj->clID() <<
"]" <<
endmsg
208 <<
" -> name: [" << pObj->name() <<
"]" <<
endmsg;
229 GenericAddress* addr =
new GenericAddress(POOL_ROOTTREE_StorageType,
234 (POOL_ROOTTREE_StorageType,
id,
237 (
unsigned long)(value_ptr),
238 (
unsigned long)(m_nbrEvts-1));
241 return StatusCode::SUCCESS;
247 std::cout <<
"Calling xAODCnv::storageType" << std::endl;
249 return POOL_ROOTTREE_StorageType;