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;
131 return POOL_ROOTTREE_StorageType;
144 ATH_MSG_DEBUG(
"::createObj(" << pAddr <<
", " << pObj <<
")");
148 return StatusCode::FAILURE;
151 <<
"/" << rba->par()[1] <<
"]...");
157 <<
"/" << rba->par()[1] <<
"]... [done]");
164 return StatusCode::SUCCESS;
175 ATH_MSG_INFO(
"::createRep(" << pObj <<
", " << pAddr <<
")");
178 return StatusCode::FAILURE;
180 msg(MSG::INFO) <<
" -> clid: [" << pObj->clID() <<
"]" <<
endmsg
181 <<
" -> name: [" << pObj->name() <<
"]" <<
endmsg;
202 GenericAddress* addr =
new GenericAddress(POOL_ROOTTREE_StorageType,
207 (POOL_ROOTTREE_StorageType,
id,
210 (
unsigned long)(value_ptr),
211 (
unsigned long)(m_nbrEvts-1));
214 return StatusCode::SUCCESS;
220 std::cout <<
"Calling xAODCnv::storageType" << std::endl;
222 return POOL_ROOTTREE_StorageType;