ATLAS Offline Software
InDetBSErrContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #include "InDetBSErrContainerCnv.h"
12 
15  MsgStream log{msgSvc(), "InDetBSErrContainerCnv"};
17  return persObj;
18 }
19 
22  MsgStream log{msgSvc(), "InDetBSErrContainerCnv"};
23  static const pool::Guid p1_guid{"FA64DC17-D07E-4305-9B21-18C64F1B4C47"};
24  static const pool::Guid p2_guid{"ECBBC13B-0A44-4694-AD24-574A7598C627"};
25  if (compareClassGuid(p1_guid)) {
26  return m_TPConverter_p1.createTransient(poolReadObject<InDetBSErrContainer_p1>(), log);
27  } else if (compareClassGuid(p2_guid)) {
28  return m_TPConverter_PERS.createTransient(poolReadObject<InDetBSErrContainer_p2>(), log);
29  }
30  throw std::runtime_error("Unsupported persistent version of Data Collection");
31 }
InDetBSErrContainerCnv::m_TPConverter_PERS
InDetBSErrContainerCnv_p2 m_TPConverter_PERS
Definition: InDetBSErrContainerCnv.h:37
InDetBSErrContainerCnv::m_TPConverter_p1
InDetBSErrContainerCnv_p1 m_TPConverter_p1
Definition: InDetBSErrContainerCnv.h:36
InDetBSErrContainerCnv::createPersistent
virtual InDetBSErrContainer_PERS * createPersistent(InDetBSErrContainer *transCont)
Definition: InDetBSErrContainerCnv.cxx:14
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
InDetBSErrContainerCnv::createTransient
virtual InDetBSErrContainer * createTransient()
Definition: InDetBSErrContainerCnv.cxx:21
DataVector< std::pair< IdentifierHash, int > >
InDetBSErrContainerCnv.h
Generated header file which defines a typedef for templated converter class.
InDetBSErrContainer_p2
Definition: InDetBSErrContainer_p2.h:16
InDetBSErrContainerCnv_p2::createTransient
virtual InDetBSErrContainer * createTransient(const InDetBSErrContainer_p2 *persObj, MsgStream &log)
Definition: InDetBSErrContainerCnv_p2.cxx:30
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDetBSErrContainerCnv_p1::createTransient
virtual InDetBSErrContainer * createTransient(const InDetBSErrContainer_p1 *persObj, MsgStream &log)
Definition: InDetBSErrContainerCnv_p1.cxx:35
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.