ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonConditionsAthenaPool
src
RpcByteStreamErrorContainerCnv.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 "
MuonByteStreamErrors/RpcByteStreamErrorContainer.h
"
6
#include "
RpcByteStreamErrorContainerCnv.h
"
7
#include "
MuonConditionsAthenaPool/MuonByteStreamErrors/RpcByteStreamErrorContainer_p1.h
"
8
#include "
MuonConditionsAthenaPool/MuonByteStreamErrors/RpcByteStreamErrorContainerCnv_p1.h
"
9
10
static
const
RpcByteStreamErrorContainerCnv_p1
TPconverter_p1
;
11
12
RpcByteStreamErrorContainer_PERS
*
RpcByteStreamErrorContainerCnv::createPersistent
(
Muon::RpcByteStreamErrorContainer
* transObj) {
13
using namespace
Muon
;
14
MsgStream log(msgSvc(),
"RpcByteStreamErrorContainer converter"
);
15
RpcByteStreamErrorContainer_PERS
*persObj =
TPconverter_p1
.createPersistentConst( transObj, log );
16
return
persObj;
17
}
18
19
Muon::RpcByteStreamErrorContainer
*
RpcByteStreamErrorContainerCnv::createTransient
() {
20
using namespace
Muon
;
21
static
const
pool::Guid
p1_guid(
"4E46BDDC-E1F9-420A-A11F-47EF082A3E3A"
);
22
if
(
compareClassGuid
(p1_guid) ) {
23
std::unique_ptr< RpcByteStreamErrorContainer_p1 > col_vect(
poolReadObject< RpcByteStreamErrorContainer_p1 >
() );
24
MsgStream log(msgSvc(),
"RpcByteStreamErrorContainer_p1"
);
25
return
TPconverter_p1
.createTransientConst( col_vect.get(), log );
26
}
27
throw
std::runtime_error(
"Unsupported persistent version of RpcByteStreamErrorContainer"
);
28
}
TPconverter_p1
static const EventInfoCnv_p1 TPconverter_p1
Definition
EventInfoCnv.cxx:24
RpcByteStreamErrorContainerCnv.h
RpcByteStreamErrorContainer_PERS
Muon::RpcByteStreamErrorContainer_p1 RpcByteStreamErrorContainer_PERS
Definition
RpcByteStreamErrorContainerCnv.h:13
RpcByteStreamErrorContainerCnv_p1.h
RpcByteStreamErrorContainer.h
RpcByteStreamErrorContainer_p1.h
Muon::RpcByteStreamErrorContainer
Definition
RpcByteStreamErrorContainer.h:50
RpcByteStreamErrorContainerCnv_p1
Definition
RpcByteStreamErrorContainerCnv_p1.h:21
RpcByteStreamErrorContainerCnv::createPersistent
virtual RpcByteStreamErrorContainer_PERS * createPersistent(Muon::RpcByteStreamErrorContainer *transObj)
Definition
RpcByteStreamErrorContainerCnv.cxx:12
RpcByteStreamErrorContainerCnv::createTransient
virtual Muon::RpcByteStreamErrorContainer * createTransient()
Definition
RpcByteStreamErrorContainerCnv.cxx:19
T_AthenaPoolCustomCnv< Muon::RpcByteStreamErrorContainer, RpcByteStreamErrorContainer_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
T_AthenaPoolCustomCnv< Muon::RpcByteStreamErrorContainer, RpcByteStreamErrorContainer_PERS >::poolReadObject
P * poolReadObject()
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:45
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0