ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
InDetByteStreamErrorsAthenaPool
src
InDetBSErrContainerCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
#include "
InDetBSErrContainerCnv.h
"
12
13
InDetBSErrContainer_PERS
*
14
InDetBSErrContainerCnv::createPersistent
(
InDetBSErrContainer
* transCont) {
15
MsgStream log{msgSvc(),
"InDetBSErrContainerCnv"
};
16
InDetBSErrContainer_PERS
* persObj{
m_TPConverter_PERS
.createPersistent(transCont, log)};
17
return
persObj;
18
}
19
20
InDetBSErrContainer
*
21
InDetBSErrContainerCnv::createTransient
(
const
Token
* token) {
22
MsgStream log{msgSvc(),
"InDetBSErrContainerCnv"
};
23
static
const
pool::Guid
p1_guid{
"FA64DC17-D07E-4305-9B21-18C64F1B4C47"
};
24
static
const
pool::Guid
p2_guid{
"ECBBC13B-0A44-4694-AD24-574A7598C627"
};
25
if
(
compareClassGuid
(token, p1_guid)) {
26
return
m_TPConverter_p1
.createTransient(
poolReadObject<InDetBSErrContainer_p1>
(token), log);
27
}
else
if
(
compareClassGuid
(token, p2_guid)) {
28
return
m_TPConverter_PERS
.createTransient(
poolReadObject<InDetBSErrContainer_p2>
(token), log);
29
}
30
throw
std::runtime_error(
"Unsupported persistent version of Data Collection"
);
31
}
InDetBSErrContainerCnv.h
Generated header file which defines a typedef for templated converter class.
InDetBSErrContainer_PERS
InDetBSErrContainer_p2 InDetBSErrContainer_PERS
the latest persistent representation type of DataCollection:
Definition
InDetBSErrContainerCnv.h:25
InDetBSErrContainer
DataVector< std::pair< IdentifierHash, int > > InDetBSErrContainer
Definition
InDetBSErrContainer.h:19
InDetBSErrContainerCnv::m_TPConverter_PERS
InDetBSErrContainerCnv_p2 m_TPConverter_PERS
Definition
InDetBSErrContainerCnv.h:37
InDetBSErrContainerCnv::createTransient
virtual InDetBSErrContainer * createTransient(const Token *token)
Definition
InDetBSErrContainerCnv.cxx:21
InDetBSErrContainerCnv::m_TPConverter_p1
InDetBSErrContainerCnv_p1 m_TPConverter_p1
Definition
InDetBSErrContainerCnv.h:36
InDetBSErrContainerCnv::createPersistent
virtual InDetBSErrContainer_PERS * createPersistent(InDetBSErrContainer *transCont)
Definition
InDetBSErrContainerCnv.cxx:14
T_AthenaPoolCustomCnv< InDetBSErrContainer, InDetBSErrContainer_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< InDetBSErrContainer, InDetBSErrContainer_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
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.17.0