ATLAS Offline Software
IDCInDetBSErrContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
9  MsgStream log(msgSvc(), "IDCInDetBSErrContainer" );
11  return persObj;
12 }
13 
14 
17  MsgStream log(msgSvc(), "IDC_BSErrContainerCnv" );
18  const pool::Guid p1_guid("84056f02-9d9f-4d0c-8d5a-c6c686f5cf76");
19  if( compareClassGuid(p1_guid) ) {
20  // using unique_ptr ensures deletion of the persistent object
21  std::unique_ptr< InDetBSErrContainer64_p1 > col_vect( poolReadObject< InDetBSErrContainer64_p1 >() );
22  return m_TPConverter.createTransient( col_vect.get(), log );
23  }
24  throw std::runtime_error("Unsupported persistent version of Data Collection");
25 }
26 
27 
IDCInDetBSErrContainer
IDC like storage for BS errors, TODO, customise implementation further so that we store int rather th...
Definition: IDCInDetBSErrContainer.h:19
IDCInDetBSErrContainerCnv::createTransient
virtual IDCInDetBSErrContainer * createTransient()
Definition: IDCInDetBSErrContainerCnv.cxx:16
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
IDCInDetBSErrContainerCnv::createPersistent
virtual IDCBSErrContainer_PERS * createPersistent(IDCInDetBSErrContainer *transCont)
Definition: IDCInDetBSErrContainerCnv.cxx:8
IDCInDetBSErrContainerCnv::m_TPConverter
IDCInDetBSErrContainerCnv_p1 m_TPConverter
Definition: IDCInDetBSErrContainerCnv.h:26
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
InDetBSErrContainer64_p1
Definition: InDetBSErrContainer64_p1.h:15
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
IDCInDetBSErrContainerCnv.h
IDCInDetBSErrContainerCnv_p1::createTransient
virtual IDCInDetBSErrContainer * createTransient(const InDetBSErrContainer64_p1 *persObj, MsgStream &log)
Definition: IDCInDetBSErrContainerCnv_p1.cxx:23
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.