ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonEventAthenaPool
src
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
5
#include "
MuonRDO/RpcSectorLogicContainer.h
"
6
#include "
RpcSectorLogicContainerCnv.h
"
7
#include "
MuonEventAthenaPool/RpcSectorLogicContainer_p1.h
"
8
#include "
RpcSectorLogicContainerCnv_p1.h
"
9
10
static
const
RpcSectorLogicContainerCnv_p1
TPconverter_p1
;
11
12
RpcSectorLogicContainer_p1
*
RpcSectorLogicContainerCnv::createPersistent
(
RpcSectorLogicContainer
* transObj) {
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
19
RpcSectorLogicContainer
*
RpcSectorLogicContainerCnv::createTransient
() {
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
TPconverter_p1
static const EventInfoCnv_p1 TPconverter_p1
Definition
EventInfoCnv.cxx:24
RpcSectorLogicContainerCnv.h
RpcSectorLogicContainerCnv_p1.h
RpcSectorLogicContainer.h
RpcSectorLogicContainer_p1.h
RpcSectorLogicContainerCnv_p1
Definition
RpcSectorLogicContainerCnv_p1.h:23
RpcSectorLogicContainerCnv::createTransient
virtual RpcSectorLogicContainer * createTransient()
Definition
RpcSectorLogicContainerCnv.cxx:19
RpcSectorLogicContainerCnv::createPersistent
virtual PERS * createPersistent(RpcSectorLogicContainer *transObj)
Definition
RpcSectorLogicContainerCnv.cxx:12
RpcSectorLogicContainer_p1
Class to represent.
Definition
RpcSectorLogicContainer_p1.h:19
RpcSectorLogicContainer
Definition
RpcSectorLogicContainer.h:20
T_AthenaPoolCustomCnv< RpcSectorLogicContainer, PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
T_AthenaPoolCustomCnv< RpcSectorLogicContainer, PERS >::poolReadObject
P * poolReadObject()
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0