ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcRawChannelCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
8// Gaudi
9#include "GaudiKernel/MsgStream.h"
10
12 MsgStream mlog(msgSvc(), "ZdcRawChannelCollectionConverter" );
14 ZdcRawChannelCollection_PERS *persObj = converter.createPersistent( transCont, mlog );
15 return persObj;
16}
17
19 MsgStream mlog(msgSvc(), "ZdcRawChannelCollectionConverter" );
21
22 ZdcRawChannelCollection *trans_cont(nullptr);
23
24 static const pool::Guid p1_guid("A2BDA733-7A0A-459D-9237-33DFF3DC9982");
25 if( this->compareClassGuid(p1_guid)) {
26 std::unique_ptr< ZdcRawChannelCollection_p1 > cont( this->poolReadObject< ZdcRawChannelCollection_p1 >() );
27 trans_cont = converter_p1.createTransient( cont.get(), mlog );
28 }
29 else {
30 throw std::runtime_error("Unsupported persistent version of Data collection");
31 }
32 return trans_cont;
33}
ZdcRawChannelCollection_p1 ZdcRawChannelCollection_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.
ZdcRawChannelCollection_PERS * createPersistent(ZdcRawChannelCollection *transCont)
ZdcRawChannelCollection * createTransient()