ATLAS Offline Software
Toggle main menu visibility
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
(
const
Token
* token) {
20
using namespace
Muon
;
21
static
const
Guid
p1_guid(
"4E46BDDC-E1F9-420A-A11F-47EF082A3E3A"
);
22
if
(
compareClassGuid
(token, p1_guid) ) {
23
std::unique_ptr< RpcByteStreamErrorContainer_p1 > col_vect(
poolReadObject< RpcByteStreamErrorContainer_p1 >
(token) );
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
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
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(const Token *token)
Definition
RpcByteStreamErrorContainerCnv.cxx:19
T_AthenaPoolCustomCnv< Muon::RpcByteStreamErrorContainer, RpcByteStreamErrorContainer_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< Muon::RpcByteStreamErrorContainer, RpcByteStreamErrorContainer_PERS >::poolReadObject
P * poolReadObject(const Token *token)
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0