ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventAthenaPool
src
MuCTPIL1TopoCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
// Local include(s):
7
#include "
MuCTPIL1TopoCnv.h
"
8
13
MuCTPIL1Topo_PERS
*
MuCTPIL1TopoCnv::createPersistent
(
LVL1::MuCTPIL1Topo
* transObj ) {
14
15
return
m_converter
.createPersistent( transObj,
msg
() );
16
17
}
18
23
LVL1::MuCTPIL1Topo
*
MuCTPIL1TopoCnv::createTransient
(
const
Token
* token) {
24
25
static
const
Guid
p1_guid(
"BC2BAC47-504A-4A8A-89D9-2086B9038E18"
);
26
27
if
( this->
compareClassGuid
(token, p1_guid ) ) {
28
std::unique_ptr< MuCTPIL1Topo_p1 > pers_ref( this->
poolReadObject< MuCTPIL1Topo_p1 >
(token) );
29
return
m_converter
.createTransient( pers_ref.get(),
msg
() );
30
31
}
else
{
32
throw
std::runtime_error(
"Unsupported persistent version of MuCTPIL1Topo"
);
33
return
0;
34
}
35
}
MuCTPIL1TopoCnv.h
MuCTPIL1Topo_PERS
MuCTPIL1Topo_p1 MuCTPIL1Topo_PERS
Definition
MuCTPIL1TopoCnv.h:20
T_AthenaPoolCustomCnv< LVL1::MuCTPIL1Topo, MuCTPIL1Topo_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
LVL1::MuCTPIL1Topo
MuCTPI input class to the L1Topo simulation.
Definition
MuCTPIL1Topo.h:24
MuCTPIL1TopoCnv::createTransient
virtual LVL1::MuCTPIL1Topo * createTransient(const Token *token) override
Function reading a version of MuCTPIL1Topo from POOL and converting it to a transient MuCTPIL1Topo ob...
Definition
MuCTPIL1TopoCnv.cxx:23
MuCTPIL1TopoCnv::m_converter
MuCTPIL1TopoCnv_p1 m_converter
Definition
MuCTPIL1TopoCnv.h:43
MuCTPIL1TopoCnv::createPersistent
virtual MuCTPIL1Topo_PERS * createPersistent(LVL1::MuCTPIL1Topo *transObj) override
Function creating a persistent MuCTPIL1Topo_PERS object from a transient MuCTPIL1Topo one.
Definition
MuCTPIL1TopoCnv.cxx:13
T_AthenaPoolCustomCnv< LVL1::MuCTPIL1Topo, MuCTPIL1Topo_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< LVL1::MuCTPIL1Topo, MuCTPIL1Topo_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
Generated on
for ATLAS Offline Software by
1.17.0