ATLAS Offline Software
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_EventCnv
AFP_EventAthenaPool
src
AFP_SIDLocRecoEvCollectionCnv.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 "
AFP_EventTPCnv/AFP_SIDLocRecoEvCollectionCnv_p1.h
"
6
#include "
AFP_SIDLocRecoEvCollectionCnv.h
"
7
8
9
10
AFP_SIDLocRecoEvCollection_PERS
*
AFP_SIDLocRecoEvCollectionCnv::createPersistent
(
AFP_SIDLocRecoEvCollection
* transCont) {
11
MsgStream mlog(msgSvc(),
"AFP_SIDLocRecoEvCollectionConverter"
);
12
AFP_SIDLocRecoEvCollectionCnv_p1
TPConverter
;
13
AFP_SIDLocRecoEvCollection_PERS
*persObj =
TPConverter
.createPersistent( transCont, mlog );
14
return
persObj;
15
}
16
17
18
AFP_SIDLocRecoEvCollection
*
AFP_SIDLocRecoEvCollectionCnv::createTransient
() {
19
MsgStream mlog(msgSvc(),
"AFP_SIDLocRecoEvCollectionConverter"
);
20
21
AFP_SIDLocRecoEvCollectionCnv_p1
TPConverter_p1;
22
23
AFP_SIDLocRecoEvCollection
*trans_cont(
nullptr
);
// probably inicialization
24
25
//GUID of persistence collection class (see selection.xml in AFP_EventTPCnv, class item AFP_SIDLocRecoEvCollection_p1)
26
static
const
pool::Guid
p1_guid (
"D0C144F2-E82E-44B3-84BC-22C7D10F262E"
);
27
28
if
( this->
compareClassGuid
(p1_guid)) {
29
std::unique_ptr< AFP_SIDLocRecoEvCollection_p1 > col_vect( this->
poolReadObject< AFP_SIDLocRecoEvCollection_p1 >
() );
30
trans_cont = TPConverter_p1.
createTransient
( col_vect.get(), mlog );
31
}
32
33
else
{
34
throw
std::runtime_error(
"Unsupported persistent version of Data container"
);
35
}
36
return
trans_cont;
37
}
AFP_SIDLocRecoEvCollectionCnv.h
AFP_SIDLocRecoEvCollection_PERS
AFP_SIDLocRecoEvCollection_p1 AFP_SIDLocRecoEvCollection_PERS
Definition
AFP_SIDLocRecoEvCollectionCnv.h:17
AFP_SIDLocRecoEvCollectionCnv_p1.h
TPConverter
static const LVL1_ROICnv_p1 TPConverter
Definition
LVL1_ROICnv.cxx:12
AFP_SIDLocRecoEvCollectionCnv_p1
Definition
AFP_SIDLocRecoEvCollectionCnv_p1.h:14
AFP_SIDLocRecoEvCollectionCnv::createTransient
AFP_SIDLocRecoEvCollection * createTransient()
Definition
AFP_SIDLocRecoEvCollectionCnv.cxx:18
AFP_SIDLocRecoEvCollectionCnv::createPersistent
AFP_SIDLocRecoEvCollection_PERS * createPersistent(AFP_SIDLocRecoEvCollection *transCont)
Definition
AFP_SIDLocRecoEvCollectionCnv.cxx:10
AFP_SIDLocRecoEvCollection
Definition
AFP_SIDLocRecoEvCollection.h:13
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
T_AthenaPoolCustomCnv< AFP_SIDLocRecoEvCollection, AFP_SIDLocRecoEvCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
T_AthenaPoolCustomCnv< AFP_SIDLocRecoEvCollection, AFP_SIDLocRecoEvCollection_PERS >::poolReadObject
P * poolReadObject()
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.14.0