ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
InDetLowBetaCandidateCnv.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 "
InDetLowBetaCandidateCnv.h
"
6
#include "
InDetEventTPCnv/InDetLowBetaInfo/InDetLowBetaCandidateCnv_tlp1.h
"
7
8
InDetLowBetaCandidateCnv::InDetLowBetaCandidateCnv
(ISvcLocator* svcloc) :
9
T_AthenaPoolCustomCnv
<
InDet
::InDetLowBetaCandidate,
InDetLowBetaCandidate_PERS
>( svcloc,
"InDetLowBetaCandidateConverter"
),
10
m_TPConverter
(new
InDetLowBetaCandidateCnv_tlp1
)
11
{ }
12
InDetLowBetaCandidateCnv::~InDetLowBetaCandidateCnv
()
13
{
14
delete
m_TPConverter
;
15
}
16
17
18
19
InDetLowBetaCandidate_PERS
*
InDetLowBetaCandidateCnv::createPersistent
(
InDet::InDetLowBetaCandidate
* transCont) {
20
ATH_MSG_DEBUG
(
"InDetLowBetaCandidateCnv::createPersistent"
);
21
22
InDetLowBetaCandidate_PERS
*persObj =
m_TPConverter
->createPersistent(transCont,
msg
());
23
24
return
persObj;
25
}
26
27
28
InDet::InDetLowBetaCandidate
*
InDetLowBetaCandidateCnv::createTransient
(
const
Token
* token) {
29
ATH_MSG_DEBUG
(
"InDetLowBetaCandidateCnv::createTransient "
);
30
31
static
const
pool::Guid
tlp1_guid(
"8C24589F-FBAA-4686-9254-B5C360A94733"
);
32
33
InDet::InDetLowBetaCandidate
*trans_cont(
nullptr
);
34
35
if
(
compareClassGuid
(token, tlp1_guid) ) {
36
ATH_MSG_DEBUG
(
"InDetLowBetaCandidateCnv::reading tlp1 persistent object"
);
37
std::unique_ptr<InDetLowBetaCandidate_tlp1> col_vect(this->
poolReadObject<InDetLowBetaCandidate_tlp1>
(token));
38
trans_cont =
m_TPConverter
->createTransient(col_vect.get(),
msg
());
39
}
else
{
40
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
41
}
42
return
trans_cont;
43
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
InDetLowBetaCandidateCnv.h
InDetLowBetaCandidate_PERS
InDetLowBetaCandidate_tlp1 InDetLowBetaCandidate_PERS
Definition
InDetLowBetaCandidateCnv.h:15
InDetLowBetaCandidateCnv_tlp1.h
T_AthenaPoolCustomCnv< InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_PERS >::msg
MsgStream & msg() const
Definition
AthMessaging.h:167
InDetLowBetaCandidateCnv_tlp1
Definition
InDetLowBetaCandidateCnv_tlp1.h:14
InDetLowBetaCandidateCnv::~InDetLowBetaCandidateCnv
~InDetLowBetaCandidateCnv()
Definition
InDetLowBetaCandidateCnv.cxx:12
InDetLowBetaCandidateCnv::InDetLowBetaCandidateCnv
InDetLowBetaCandidateCnv(ISvcLocator *svcloc)
Definition
InDetLowBetaCandidateCnv.cxx:8
InDetLowBetaCandidateCnv::createPersistent
InDetLowBetaCandidate_PERS * createPersistent(InDet::InDetLowBetaCandidate *transCont)
Definition
InDetLowBetaCandidateCnv.cxx:19
InDetLowBetaCandidateCnv::m_TPConverter
InDetLowBetaCandidateCnv_tlp1 * m_TPConverter
Definition
InDetLowBetaCandidateCnv.h:36
InDetLowBetaCandidateCnv::createTransient
InDet::InDetLowBetaCandidate * createTransient(const Token *token)
Definition
InDetLowBetaCandidateCnv.cxx:28
InDet::InDetLowBetaCandidate
Definition
InDetLowBetaCandidate.h:24
T_AthenaPoolCustomCnv< InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_PERS >::poolReadObject
P * poolReadObject(const Token *token)
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition
T_AthenaPoolCustomCnv.h:129
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
InDet
Primary Vertex Finder.
Definition
VP1ErrorUtils.h:36
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.17.0