ATLAS Offline Software
TRT_BSIdErrContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 
15  MsgStream log(msgSvc(), "TRT_BSIdErrContainerCnv" );
17  return persObj;
18 }
19 
22  MsgStream log(msgSvc(), "TRT_BSIdErrContainerCnv" );
23  static const pool::Guid p1_guid("26F44F1E-D1F5-43B3-93E9-09376AB37491");
24  if( compareClassGuid(p1_guid) ) {
25  // using unique_ptr ensures deletion of the persistent object
26  std::unique_ptr< TRT_BSIdErrContainer_p1 > col_vect( poolReadObject< TRT_BSIdErrContainer_p1 >() );
27  return m_TPConverter.createTransient( col_vect.get(), log );
28  }
29  throw std::runtime_error("Unsupported persistent version of Data Collection");
30 }
TRT_BSIdErrContainerCnv.h
Generated header file which defines a typedef for templated converter class.
TRT_BSIdErrContainerCnv_p1::createTransient
virtual TRT_BSIdErrContainer * createTransient(const TRT_BSIdErrContainer_p1 *persObj, MsgStream &log)
Definition: TRT_BSIdErrContainerCnv_p1.cxx:43
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TRT_BSIdErrContainerCnv::createTransient
virtual TRT_BSIdErrContainer * createTransient()
Definition: TRT_BSIdErrContainerCnv.cxx:21
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TRT_BSIdErrContainerCnv::m_TPConverter
TRT_BSIdErrContainerCnv_p1 m_TPConverter
Definition: TRT_BSIdErrContainerCnv.h:33
TRT_BSIdErrContainerCnv::createPersistent
virtual TRT_BSIdErrContainer_PERS * createPersistent(TRT_BSIdErrContainer *transCont)
Definition: TRT_BSIdErrContainerCnv.cxx:14
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
TRT_BSIdErrContainer_p1
Definition: TRT_BSIdErrContainer_p1.h:12