ATLAS Offline Software
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
}
RpcByteStreamErrorContainer_p1.h
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition:
TrackSystemController.h:45
RpcByteStreamErrorContainerCnv::createPersistent
virtual RpcByteStreamErrorContainer_PERS * createPersistent(Muon::RpcByteStreamErrorContainer *transObj)
Definition:
RpcByteStreamErrorContainerCnv.cxx:12
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
Muon::RpcByteStreamErrorContainer
Definition:
RpcByteStreamErrorContainer.h:54
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
TPConverterConstBase::createPersistentConst
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
RpcByteStreamErrorContainerCnv::createTransient
virtual Muon::RpcByteStreamErrorContainer * createTransient()
Definition:
RpcByteStreamErrorContainerCnv.cxx:19
RpcByteStreamErrorContainerCnv_p1.h
RpcByteStreamErrorContainer.h
RpcByteStreamErrorContainerCnv.h
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.
Muon::RpcByteStreamErrorContainer_p1
Definition:
RpcByteStreamErrorContainer_p1.h:15
RpcByteStreamErrorContainerCnv_p1
Definition:
RpcByteStreamErrorContainerCnv_p1.h:21
TPConverterConstBase::createTransientConst
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const
Generated on Wed Jan 22 2025 21:17:07 for ATLAS Offline Software by
1.8.18