ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventAthenaPool
src
JEMTobRoICollectionCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
#include "
JEMTobRoICollectionCnv.h
"
12
13
//createPersistent
14
JEMTobRoICollection_PERS
*
JEMTobRoICollectionCnv::createPersistent
(
JEMTobRoICollection
*transObj)
15
{
16
17
MsgStream mlog(msgSvc(),
"JEMTobRoICollectionConverter"
);
18
19
//mlog << MSG::DEBUG << "JEMTobRoICollectionCnv::createPersistent called" << endmsg;
20
21
JEMTobRoICollection_PERS
* p_TTColl =
m_TPConverter_tlp1
.createPersistent( transObj, mlog );
22
23
return
p_TTColl;
24
25
}
//end of create persistent method
26
27
28
//createTransient
29
JEMTobRoICollection
*
JEMTobRoICollectionCnv::createTransient
(
const
Token
* token)
30
{
31
MsgStream mlog(msgSvc(),
"JEMTobRoICollectionConverter"
);
32
33
//mlog << MSG::DEBUG << "JEMTobRoICollectionCnv::createTransient called" << endmsg;
34
35
static
const
pool::Guid
tlp1_guid(
"49790040-16E0-4CAB-96A2-31DC010FFB06"
);
36
37
JEMTobRoICollection
*p_collection = 0;
38
if
(
compareClassGuid
(token, tlp1_guid ) )
39
{
40
// using unique_ptr ensures deletion of the persistent object
41
std::unique_ptr< JEMTobRoICollection_PERS > pers_ref(
poolReadObject< JEMTobRoICollection_PERS >
(token) );
42
p_collection =
m_TPConverter_tlp1
.createTransient( pers_ref.get(), mlog );
43
44
}
else
throw
std::runtime_error(
"Unsupported persistent version of JEMTobRoICollection"
);
45
46
return
p_collection;
47
48
}
//end of create transient method
49
JEMTobRoICollectionCnv.h
Generated header file which defines a typedef for templated converter class.
JEMTobRoICollection_PERS
JEMTobRoICollection_tlp1 JEMTobRoICollection_PERS
Definition
JEMTobRoICollectionCnv.h:21
JEMTobRoICollection
DataVector< LVL1::JEMTobRoI > JEMTobRoICollection
Container class for JEMTobRoIs.
Definition
JEMTobRoICollection.h:12
JEMTobRoICollectionCnv::createTransient
virtual JEMTobRoICollection * createTransient(const Token *token)
Definition
JEMTobRoICollectionCnv.cxx:29
JEMTobRoICollectionCnv::m_TPConverter_tlp1
JEMTobRoICollectionCnv_tlp1 m_TPConverter_tlp1
Definition
JEMTobRoICollectionCnv.h:45
JEMTobRoICollectionCnv::createPersistent
virtual JEMTobRoICollection_PERS * createPersistent(JEMTobRoICollection *transCont)
Definition
JEMTobRoICollectionCnv.cxx:14
T_AthenaPoolCustomCnv< JEMTobRoICollection, JEMTobRoICollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< JEMTobRoICollection, JEMTobRoICollection_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