ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
InDetByteStreamErrorsAthenaPool
src
IDCInDetBSErrContainerCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
IDCInDetBSErrContainerCnv.h
"
6
7
IDCBSErrContainer_PERS
*
8
IDCInDetBSErrContainerCnv::createPersistent
(
IDCInDetBSErrContainer
* transCont) {
9
MsgStream log(msgSvc(),
"IDCInDetBSErrContainer"
);
10
IDCBSErrContainer_PERS
*persObj =
m_TPConverter
.createPersistent( transCont, log );
11
return
persObj;
12
}
13
14
15
IDCInDetBSErrContainer
*
16
IDCInDetBSErrContainerCnv::createTransient
(
const
Token
* token) {
17
MsgStream log(msgSvc(),
"IDC_BSErrContainerCnv"
);
18
const
pool::Guid
p1_guid(
"84056F02-9D9F-4D0C-8D5A-C6C686F5CF76"
);
19
if
(
compareClassGuid
(token, p1_guid) ) {
20
// using unique_ptr ensures deletion of the persistent object
21
std::unique_ptr< InDetBSErrContainer64_p1 > col_vect(
poolReadObject< InDetBSErrContainer64_p1 >
(token) );
22
return
m_TPConverter
.createTransient( col_vect.get(), log );
23
}
24
throw
std::runtime_error(
"Unsupported persistent version of Data Collection"
);
25
}
26
27
IDCInDetBSErrContainerCnv.h
IDCBSErrContainer_PERS
InDetBSErrContainer64_p1 IDCBSErrContainer_PERS
Definition
IDCInDetBSErrContainerCnv.h:15
IDCInDetBSErrContainerCnv::m_TPConverter
IDCInDetBSErrContainerCnv_p1 m_TPConverter
Definition
IDCInDetBSErrContainerCnv.h:26
IDCInDetBSErrContainerCnv::createTransient
virtual IDCInDetBSErrContainer * createTransient(const Token *token)
Definition
IDCInDetBSErrContainerCnv.cxx:16
IDCInDetBSErrContainerCnv::createPersistent
virtual IDCBSErrContainer_PERS * createPersistent(IDCInDetBSErrContainer *transCont)
Definition
IDCInDetBSErrContainerCnv.cxx:8
IDCInDetBSErrContainer
IDC like storage for BS errors, TODO, customise implementation further so that we store int rather th...
Definition
IDCInDetBSErrContainer.h:19
T_AthenaPoolCustomCnv< IDCInDetBSErrContainer, IDCBSErrContainer_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< IDCInDetBSErrContainer, IDCBSErrContainer_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