ATLAS Offline Software
RpcSectorLogicContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
10 static const RpcSectorLogicContainerCnv_p1 TPconverter_p1;
11 
13  MsgStream log(msgSvc(), "MuonRpcSectorLogicContainerConverter" );
14  RpcSectorLogicContainer_p1 *persObj = TPconverter_p1.createPersistentConst( transObj, log );
15  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "RpcSectorLogicContainer write Success" << endmsg;
16  return persObj;
17 }
18 
20  static const pool::Guid p1_guid("93035F54-0FA9-4A56-98E0-A808DD23C089");
21  if( compareClassGuid(p1_guid) ) {
22  // using unique_ptr ensures deletion of the persistent object
23  std::unique_ptr< RpcSectorLogicContainer_p1 > col_vect( poolReadObject< RpcSectorLogicContainer_p1 >() );
24  MsgStream log(msgSvc(), "RpcSectorLogicContainerCnv_p1" );
25  //log << MSG::DEBUG << "Reading RpcSectorLogicContainer_p1" << endmsg;
26  return TPconverter_p1.createTransientConst( col_vect.get(), log );
27  }
28  throw std::runtime_error("Unsupported persistent version of RpcSectorLogicContainer");
29 }
RpcSectorLogicContainer.h
RpcSectorLogicContainerCnv_p1
Definition: RpcSectorLogicContainerCnv_p1.h:23
RpcSectorLogicContainerCnv::createTransient
virtual RpcSectorLogicContainer * createTransient()
Definition: RpcSectorLogicContainerCnv.cxx:19
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
RpcSectorLogicContainer
Definition: RpcSectorLogicContainer.h:20
TPConverterConstBase::createPersistentConst
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
RpcSectorLogicContainerCnv::createPersistent
virtual PERS * createPersistent(RpcSectorLogicContainer *transObj)
Definition: RpcSectorLogicContainerCnv.cxx:12
RpcSectorLogicContainer_p1
Class to represent.
Definition: RpcSectorLogicContainer_p1.h:19
RpcSectorLogicContainer_p1.h
RpcSectorLogicContainerCnv_p1.h
DEBUG
#define DEBUG
Definition: page_access.h:11
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.
RpcSectorLogicContainerCnv.h
TPConverterConstBase::createTransientConst
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const