ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
13
14#include "GaudiKernel/MsgStream.h"
15
17
18 MsgStream mlog(msgSvc(), "ZDC_SimFiberHit_CollectionConverter::createPersistent" );
20 ZDC_SimFiberHit_Collection_PERS *persObj = converter.createPersistent( transCont, mlog );
21
22
23 return persObj;
24}
25
27
28
29 MsgStream mlog(msgSvc(), "ZDC_SimFiberHit_CollectionConverter::createTransient" );
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
Generated header file which defines a typedef for templated converter class.
ZDC_SimFiberHit_Collection_p1 ZDC_SimFiberHit_Collection_PERS
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual ZDC_SimFiberHit_Collection_PERS * createPersistent(ZDC_SimFiberHit_Collection *transCont)
virtual ZDC_SimFiberHit_Collection * createTransient()