8#include "GaudiKernel/MsgStream.h"
31 MsgStream log(msgSvc(),
"TBScintillatorRawContCnv");
32 log << MSG::INFO <<
"initialize()" <<
endmsg;
34 return StatusCode::SUCCESS;
40 const std::string& key)
45 MsgStream log(msgSvc(),
"TBScintillatorRawContCnv::PoolToDataObject" );
47 StatusCode
sc = TBScintillatorRawContCnvBase::PoolToDataObject(pObj, token, key);
49 log << MSG::FATAL <<
"Unable to get object from pool" <<
endmsg;
50 return StatusCode::FAILURE;
52 log << MSG::DEBUG <<
" Found DataObject " <<
endmsg;
59 log << MSG::ERROR <<
" failed to cast to TBScintillatorRawCont " <<
endmsg ;
60 return StatusCode::FAILURE;
63 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
convert to and from a SG storable
T_AthenaPoolCnv< TBScintillatorRawCont > TBScintillatorRawContCnvBase
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
virtual StatusCode initialize() override
virtual StatusCode PoolToDataObject(DataObject *&pObj, const Token *token, const std::string &key) override
Extend base-class conversion method to modify when reading in.
TBScintillatorRawContCnv(ISvcLocator *svcloc)
virtual ~TBScintillatorRawContCnv()
"TBEvent/TBScintillatorRawCont.h"
This templated class provides the converter to translate an object to/from its persistent POOL repres...
This class provides a token that identifies in a unique way objects on the persistent storage.
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)