ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventAthenaPool
src
JEMEtSumsCollectionCnv.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 "
JEMEtSumsCollectionCnv.h
"
12
13
//createPersistent
14
JEMEtSumsCollection_PERS
*
JEMEtSumsCollectionCnv::createPersistent
(
JEMEtSumsCollection
*transObj)
15
{
16
17
MsgStream mlog(msgSvc(),
"JEMEtSumsCollectionConverter"
);
18
19
//mlog << MSG::DEBUG << "JEMEtSumsCollectionCnv::createPersistent called" << endmsg;
20
21
JEMEtSumsCollection_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
JEMEtSumsCollection
*
JEMEtSumsCollectionCnv::createTransient
(
const
Token
* token)
30
{
31
MsgStream mlog(msgSvc(),
"JEMEtSumsCollectionConverter"
);
32
33
//mlog << MSG::DEBUG << "JEMEtSumsCollectionCnv::createTransient called" << endmsg;
34
35
static
const
Guid
tlp1_guid(
"FFEF6FF1-31E5-492A-9A44-4AD5B79DB22B"
);
36
37
JEMEtSumsCollection
*p_collection = 0;
38
if
(
compareClassGuid
(token, tlp1_guid ) )
39
{
40
// using unique_ptr ensures deletion of the persistent object
41
std::unique_ptr< JEMEtSumsCollection_PERS > pers_ref(
poolReadObject< JEMEtSumsCollection_PERS >
(token) );
42
p_collection =
m_TPConverter_tlp1
.createTransient( pers_ref.get(), mlog );
43
44
}
else
throw
std::runtime_error(
"Unsupported persistent version of JEMEtSumsCollection"
);
45
46
return
p_collection;
47
48
}
//end of create transient method
49
JEMEtSumsCollectionCnv.h
Generated header file which defines a typedef for templated converter class.
JEMEtSumsCollection_PERS
JEMEtSumsCollection_tlp1 JEMEtSumsCollection_PERS
Definition
JEMEtSumsCollectionCnv.h:21
JEMEtSumsCollection
DataVector< LVL1::JEMEtSums > JEMEtSumsCollection
Definition
JEMEtSumsCollection.h:12
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
JEMEtSumsCollectionCnv::createTransient
virtual JEMEtSumsCollection * createTransient(const Token *token)
Definition
JEMEtSumsCollectionCnv.cxx:29
JEMEtSumsCollectionCnv::createPersistent
virtual JEMEtSumsCollection_PERS * createPersistent(JEMEtSumsCollection *transCont)
Definition
JEMEtSumsCollectionCnv.cxx:14
JEMEtSumsCollectionCnv::m_TPConverter_tlp1
JEMEtSumsCollectionCnv_tlp1 m_TPConverter_tlp1
Definition
JEMEtSumsCollectionCnv.h:45
T_AthenaPoolCustomCnv< JEMEtSumsCollection, JEMEtSumsCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< JEMEtSumsCollection, JEMEtSumsCollection_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