ATLAS Offline Software
ForwardDetectors
ZDC
ZdcCnv
ZdcEventAthenaPool
src
ZDC_SimFiberHit_CollectionCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
#include "
ZDC_SimFiberHit_CollectionCnv.h
"
12
#include "
ZdcEventTPCnv/ZDC_SimFiberHit_CollectionCnv_p1.h
"
13
14
#include "GaudiKernel/MsgStream.h"
15
16
ZDC_SimFiberHit_Collection_PERS
*
ZDC_SimFiberHit_CollectionCnv::createPersistent
(
ZDC_SimFiberHit_Collection
* transCont) {
17
18
MsgStream
mlog
(
msgSvc
(),
"ZDC_SimFiberHit_CollectionConverter::createPersistent"
);
19
ZDC_SimFiberHit_CollectionCnv_p1
converter;
20
ZDC_SimFiberHit_Collection_PERS
*persObj = converter.
createPersistent
( transCont,
mlog
);
21
22
23
return
persObj;
24
}
25
26
ZDC_SimFiberHit_Collection
*
ZDC_SimFiberHit_CollectionCnv::createTransient
() {
27
28
29
MsgStream
mlog
(
msgSvc
(),
"ZDC_SimFiberHit_CollectionConverter::createTransient"
);
30
ZDC_SimFiberHit_CollectionCnv_p1
converter_p1;
31
32
ZDC_SimFiberHit_Collection
*trans_cont(
nullptr
);
33
34
static
const
pool::Guid
p1_guid(
"92374D8F-1A24-4A38-86B4-611AAFA89CFB"
);
35
if
( this->
compareClassGuid
(p1_guid)) {
36
std::unique_ptr< ZDC_SimFiberHit_Collection_PERS > col_vect( this->poolReadObject< ZDC_SimFiberHit_Collection_PERS >() );
37
trans_cont = converter_p1.
createTransient
(col_vect.get(),
mlog
);
38
}
39
else
{
40
throw
std::runtime_error(
"Unsupported persistent version of Data collection"
);
41
}
42
43
44
return
trans_cont;
45
}
46
ZDC_SimFiberHit_CollectionCnv_p1
Definition:
ZDC_SimFiberHit_CollectionCnv_p1.h:17
ZDC_SimFiberHit_CollectionCnv::createTransient
virtual ZDC_SimFiberHit_Collection * createTransient()
Definition:
ZDC_SimFiberHit_CollectionCnv.cxx:26
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
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:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
ZDC_SimFiberHit_Collection_p1
Definition:
ZDC_SimFiberHit_Collection_p1.h:17
ZDC_SimFiberHit_CollectionCnv_p1.h
ZDC_SimFiberHit_CollectionCnv.h
Generated header file which defines a typedef for templated converter class.
ZDC_SimFiberHit_CollectionCnv::createPersistent
virtual ZDC_SimFiberHit_Collection_PERS * createPersistent(ZDC_SimFiberHit_Collection *transCont)
Definition:
ZDC_SimFiberHit_CollectionCnv.cxx:16
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
ZDC_SimFiberHit_Collection
Definition:
ZDC_SimFiberHit_Collection.h:16
Generated on Thu Nov 7 2024 21:32:17 for ATLAS Offline Software by
1.8.18