ATLAS Offline Software
ForwardDetectors
AFP
AFP_EventCnv
AFP_EventAthenaPool
src
AFP_TDLocRecoEvCollectionCnv.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_TDLocRecoEvCollectionCnv_p1.h
"
6
#include "
AFP_TDLocRecoEvCollectionCnv.h
"
7
8
9
10
AFP_TDLocRecoEvCollection_PERS
*
AFP_TDLocRecoEvCollectionCnv::createPersistent
(
AFP_TDLocRecoEvCollection
* transCont) {
11
MsgStream
mlog
(
msgSvc
(),
"AFP_TDLocRecoEvCollectionConverter"
);
12
AFP_TDLocRecoEvCollectionCnv_p1
TPConverter;
13
AFP_TDLocRecoEvCollection_PERS
*persObj = TPConverter.
createPersistent
( transCont,
mlog
);
14
return
persObj;
15
}
16
17
18
AFP_TDLocRecoEvCollection
*
AFP_TDLocRecoEvCollectionCnv::createTransient
() {
19
MsgStream
mlog
(
msgSvc
(),
"AFP_TDLocRecoEvCollectionConverter"
);
20
21
AFP_TDLocRecoEvCollectionCnv_p1
TPConverter_p1;
22
23
AFP_TDLocRecoEvCollection
*trans_cont(
nullptr
);
// probably inicialization
24
25
//GUID of persistence collection class (see selection.xml in AFP_EventTPCnv, class item AFP_TDLocRecoEvCollection_p1)
26
static
const
pool::Guid
p1_guid (
"3149C8A8-DEED-4922-8705-1D727A280B9E"
);
27
28
if
( this->
compareClassGuid
(p1_guid)) {
29
std::unique_ptr< AFP_TDLocRecoEvCollection_p1 > col_vect( this->poolReadObject< AFP_TDLocRecoEvCollection_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_TDLocRecoEvCollectionCnv_p1.h
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
AFP_TDLocRecoEvCollectionCnv::createPersistent
AFP_TDLocRecoEvCollection_PERS * createPersistent(AFP_TDLocRecoEvCollection *transCont)
Definition:
AFP_TDLocRecoEvCollectionCnv.cxx:10
AFP_TDLocRecoEvCollection_p1
Definition:
AFP_TDLocRecoEvCollection_p1.h:16
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
python.InDetPriVxFinderConfig.mlog
mlog
Definition:
InDetPriVxFinderConfig.py:139
AFP_TDLocRecoEvCollectionCnv::createTransient
AFP_TDLocRecoEvCollection * createTransient()
Definition:
AFP_TDLocRecoEvCollectionCnv.cxx:18
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
AFP_TDLocRecoEvCollectionCnv_p1
Definition:
AFP_TDLocRecoEvCollectionCnv_p1.h:14
AFP_TDLocRecoEvCollection
Definition:
AFP_TDLocRecoEvCollection.h:13
AFP_TDLocRecoEvCollectionCnv.h
T_AthenaPoolCustCnv< AFP_TDLocRecoEvCollection, AFP_TDLocRecoEvCollection_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
Generated on Sun Dec 22 2024 21:06:43 for ATLAS Offline Software by
1.8.18