ATLAS Offline Software
Trigger
TrigT1
TrigT1EventAthenaPool
src
RODHeaderCollectionCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
#include "
RODHeaderCollectionCnv.h
"
12
13
//createPersistent
14
RODHeaderCollection_PERS
*
RODHeaderCollectionCnv::createPersistent
(
RODHeaderCollection
*transObj)
15
{
16
17
MsgStream
mlog
(
msgSvc
(),
"RODHeaderCollectionConverter"
);
18
19
//mlog << MSG::DEBUG << "RODHeaderCollectionCnv::createPersistent called" << endmsg;
20
21
RODHeaderCollection_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
RODHeaderCollection
*
RODHeaderCollectionCnv::createTransient
()
30
{
31
MsgStream
mlog
(
msgSvc
(),
"RODHeaderCollectionConverter"
);
32
33
//mlog << MSG::DEBUG << "RODHeaderCollectionCnv::createTransient called" << endmsg;
34
35
static
const
pool::Guid
tlp1_guid(
"8226F1B6-374D-424D-B059-E0A1B18A1DA7"
);
36
37
RODHeaderCollection
*p_collection = 0;
38
if
(
compareClassGuid
( tlp1_guid ) )
39
{
40
// using unique_ptr ensures deletion of the persistent object
41
std::unique_ptr< RODHeaderCollection_PERS > pers_ref( poolReadObject< RODHeaderCollection_PERS >() );
42
p_collection =
m_TPConverter_tlp1
.
createTransient
( pers_ref.get(),
mlog
);
43
44
}
else
throw
std::runtime_error(
"Unsupported persistent version of RODHeaderCollection"
);
45
46
return
p_collection;
47
48
}
//end of create transient method
49
RODHeaderCollectionCnv.h
Generated header file which defines a typedef for templated converter class.
RODHeaderCollectionCnv::createTransient
virtual RODHeaderCollection * createTransient()
Definition:
RODHeaderCollectionCnv.cxx:29
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition:
TopLevelTPConverter.h:62
python.InDetPriVxFinderConfig.mlog
mlog
Definition:
InDetPriVxFinderConfig.py:139
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
RODHeaderCollectionCnv::createPersistent
virtual RODHeaderCollection_PERS * createPersistent(RODHeaderCollection *transCont)
Definition:
RODHeaderCollectionCnv.cxx:14
RODHeaderCollectionCnv::m_TPConverter_tlp1
RODHeaderCollectionCnv_tlp1 m_TPConverter_tlp1
Definition:
RODHeaderCollectionCnv.h:45
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
RODHeaderCollection_tlp1
Definition:
RODHeaderCollection_tlp1.h:11
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition:
TopLevelTPConverter.h:110
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
Generated on Mon Jan 6 2025 21:17:14 for ATLAS Offline Software by
1.8.18