2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
6 T_LArCondAthenaPoolCnv<T>::T_LArCondAthenaPoolCnv(ISvcLocator* svcloc)
7 : LArCondAthenaPoolCnvBase( svcloc)
13 T_LArCondAthenaPoolCnv<T>::~T_LArCondAthenaPoolCnv()
19 StatusCode T_LArCondAthenaPoolCnv<T>::DataObjectToPool(IOpaqueAddress* pAddr, DataObject* pObj)
23 const std::string className = System::typeinfoName(typeid(T));
24 SG::fromStorable(pObj, obj);
26 MsgStream log(msgSvc(), "T_LArCondAthenaPoolCnv");
27 log << MSG::ERROR << "Failed to cast to " << className << endmsg;
28 return(StatusCode::FAILURE);
32 const MAP_P* cache = obj->getCache();
37 // write persistent data to POOL.
38 // MsgStream log(msgSvc(), "T_LArCondAthenaPoolCnv");
40 // return(StatusCode::FAILURE);
45 return LArCondAthenaPoolCnvBase::DataObjectToPool(pAddr, pObj) ;
52 T_LArCondAthenaPoolCnv<T>::PoolToDataObject(DataObject*& pObj,
53 const std::string& token,
54 const std::string& key)
56 StatusCode sc = LArCondAthenaPoolCnvBase:: PoolToDataObject(pObj, token, key);
57 if(!sc.isSuccess() ) return sc;
60 const std::string className = System::typeinfoName(typeid(T));
61 SG::fromStorable(pObj, obj);
66 MsgStream log(msgSvc(), "T_LArCondAthenaPoolCnv");
67 const std::string className = System::typeinfoName(typeid(T));
68 log << MSG::ERROR << "Failed to cast to " << className << endmsg;
69 return(StatusCode::FAILURE);
72 return StatusCode::SUCCESS;