ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_ClusterContainerCnv.cxx
Go to the documentation of this file.
1
9
11#include "GaudiKernel/MsgStream.h"
12
13#include <memory>
14
15#include <iostream>
16
19
21
22 static const pool::Guid p1_guid(
23 "7B3D57D6-F590-4266-974D-A0807122DA5F"); // with HGTD_Cluster_p1
24 ATH_MSG_DEBUG("createTransient(): main converter");
25
26 HGTD_ClusterContainer* p_collection(0);
27 if (compareClassGuid(p1_guid)) {
28 ATH_MSG_DEBUG("createTransient(): T/P version 1 detected");
29 std::unique_ptr<HGTD_ClusterContainer_p1> p_coll(
31 p_collection = m_converter_p1.createTransient(p_coll.get(), msg());
32 } else {
33 throw std::runtime_error(
34 "Unsupported persistent version of PlanarClusterContainer");
35 }
36 return p_collection;
37}
38
40 HGTD_ClusterContainer* transCont) {
42 m_converter_p1.createPersistent(transCont, msg());
43
44 return pldc_p;
45}
#define ATH_MSG_DEBUG(x)
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
T_AthenaPoolCustomCnv< HGTD_ClusterContainer, HGTD_ClusterContainer_PERS > HGTD_ClusterContainerCnvBase
HGTD_ClusterContainer_p1 HGTD_ClusterContainer_PERS
Trk::PrepRawDataContainer< HGTD_ClusterCollection > HGTD_ClusterContainer
virtual HGTD_ClusterContainer * createTransient() override
virtual HGTD_ClusterContainer_PERS * createPersistent(HGTD_ClusterContainer *transCont) override
HGTD_ClusterContainerCnv_p1 m_converter_p1
HGTD_ClusterContainerCnv(ISvcLocator *svcloc)