ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
InDetLowBetaContainerCnv.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 "
InDetLowBetaContainerCnv.h
"
6
#include "
InDetEventTPCnv/InDetLowBetaInfo/InDetLowBetaContainerCnv_tlp1.h
"
7
8
InDetLowBetaContainerCnv::InDetLowBetaContainerCnv
(ISvcLocator *svcloc)
9
:
InDetLowBetaContainerCnvBase
(svcloc,
"InDetLowBetaContainerCnv"
),
10
m_TPConverter_tlp1
(new
InDetLowBetaContainerCnv_tlp1
)
11
{ }
12
13
InDetLowBetaContainerCnv::~InDetLowBetaContainerCnv
()
14
{
15
delete
m_TPConverter_tlp1
;
16
}
17
18
19
// createPersistent
20
InDetLowBetaContainer_PERS
*
InDetLowBetaContainerCnv::createPersistent
(
InDet::InDetLowBetaContainer
*transObj) {
21
ATH_MSG_DEBUG
(
"InDetLowBetaContainerCnv::createPersistent called"
);
22
23
InDetLowBetaContainer_PERS
*p_InDetLowBetaCont =
m_TPConverter_tlp1
->createPersistent(transObj,
msg
());
24
25
return
p_InDetLowBetaCont;
26
27
}
28
29
// createTransient
30
InDet::InDetLowBetaContainer
*
InDetLowBetaContainerCnv::createTransient
(
const
Token
* token) {
31
ATH_MSG_DEBUG
(
"InDetLowBetaContainerCnv::createTransient called"
);
32
33
static
const
Guid
tlp1_guid(
"2EBE2034-8157-477B-B327-D37BE8A0317D"
);
34
35
InDet::InDetLowBetaContainer
*p_collection =
nullptr
;
36
if
(
compareClassGuid
(token, tlp1_guid)) {
37
poolReadObject<InDetLowBetaContainer_PERS>
(*
m_TPConverter_tlp1
, token);
38
p_collection =
m_TPConverter_tlp1
->createTransient(
msg
());
39
}
else
40
throw
std::runtime_error(
"Unsupported persistent version of InDetLowBetaContainer"
);
41
42
return
p_collection;
43
}
44
45
46
TopLevelTPCnvBase
*
47
InDetLowBetaContainerCnv::getTopLevelTPCnv
()
48
{
49
return
m_TPConverter_tlp1
;
50
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:28
InDetLowBetaContainerCnv.h
InDetLowBetaContainerCnvBase
T_AthenaPoolCustomCnv< InDet::InDetLowBetaContainer, InDetLowBetaContainer_PERS > InDetLowBetaContainerCnvBase
Definition
InDetLowBetaContainerCnv.h:22
InDetLowBetaContainer_PERS
InDetLowBetaContainer_tlp1 InDetLowBetaContainer_PERS
Definition
InDetLowBetaContainerCnv.h:20
InDetLowBetaContainerCnv_tlp1.h
T_AthenaPoolCustomCnv< InDet::InDetLowBetaContainer, InDetLowBetaContainer_PERS >::msg
MsgStream & msg() const
Definition
AthMessaging.h:167
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
InDetLowBetaContainerCnv_tlp1
Definition
InDetLowBetaContainerCnv_tlp1.h:15
InDetLowBetaContainerCnv::~InDetLowBetaContainerCnv
~InDetLowBetaContainerCnv()
Definition
InDetLowBetaContainerCnv.cxx:13
InDetLowBetaContainerCnv::m_TPConverter_tlp1
InDetLowBetaContainerCnv_tlp1 * m_TPConverter_tlp1
Definition
InDetLowBetaContainerCnv.h:45
InDetLowBetaContainerCnv::InDetLowBetaContainerCnv
InDetLowBetaContainerCnv(ISvcLocator *svcloc)
Definition
InDetLowBetaContainerCnv.cxx:8
InDetLowBetaContainerCnv::createTransient
virtual InDet::InDetLowBetaContainer * createTransient(const Token *token)
Definition
InDetLowBetaContainerCnv.cxx:30
InDetLowBetaContainerCnv::getTopLevelTPCnv
virtual TopLevelTPCnvBase * getTopLevelTPCnv()
Definition
InDetLowBetaContainerCnv.cxx:47
InDetLowBetaContainerCnv::createPersistent
virtual InDetLowBetaContainer_PERS * createPersistent(InDet::InDetLowBetaContainer *transObj)
Definition
InDetLowBetaContainerCnv.cxx:20
InDet::InDetLowBetaContainer
Definition
InDetLowBetaContainer.h:23
T_AthenaPoolCustomCnv< InDet::InDetLowBetaContainer, InDetLowBetaContainer_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< InDet::InDetLowBetaContainer, InDetLowBetaContainer_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
TopLevelTPCnvBase
Base class for top-level TP converters.
Definition
TopLevelTPCnvBase.h:32
Generated on
for ATLAS Offline Software by
1.17.0