ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_RDO_ContainerCnv.cxx
Go to the documentation of this file.
1
8
10#include "GaudiKernel/MsgStream.h"
11
12#include <memory>
13
16
18
19 static const pool::Guid p1_guid(
20 "C25315CC-F0A2-43D6-8F42-012BE34B0107"); // with HGTD_RDO_p1
21 ATH_MSG_DEBUG("createTransient(): main converter");
22
23 HGTD_RDO_Container* trans_cont(0);
24 if (compareClassGuid(p1_guid)) {
25 ATH_MSG_DEBUG("createTransient(): T/P version 1 detected");
26 std::unique_ptr<HGTD_RDO_Container_PERS_t> pers_cont(
28
29 trans_cont = m_converter.createTransient(pers_cont.get(), msg());
30
31 } else {
32 throw std::runtime_error(
33 "Unsupported persistent version of HGTD_RDO_Container");
34 }
35 return trans_cont;
36}
37
40
41 HGTD_RDO_Container_PERS_t* pers_cont =
42 m_converter.createPersistent(trans_cont, msg());
43
44 return pers_cont;
45}
#define ATH_MSG_DEBUG(x)
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration.
T_AthenaPoolCustomCnv< HGTD_RDO_Container, HGTD_RDO_Container_PERS_t > HGTD_RDO_ContainerCnvBase_t
HGTD_RDO_Container_p1 HGTD_RDO_Container_PERS_t
HGTD_RDO_ContainerCNV_t m_converter
HGTD_RDO_ContainerCnv(ISvcLocator *svcloc)
virtual HGTD_RDO_Container_PERS_t * createPersistent(HGTD_RDO_Container *trans) override
virtual HGTD_RDO_Container * createTransient() override