ATLAS Offline Software
Loading...
Searching...
No Matches
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
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}
#define endmsg
static const EventInfoCnv_p1 TPconverter_p1
virtual RpcSectorLogicContainer * createTransient()
virtual PERS * createPersistent(RpcSectorLogicContainer *transObj)
virtual bool compareClassGuid(const Guid &clid) const