ATLAS Offline Software
Loading...
Searching...
No Matches
TruthEtIsolationsContainerCnv.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7// TruthEtIsolationsContainerCnv.cxx
8// Implementation file for class TruthEtIsolationsContainerCnv
9// Author: S.Binet<binet@cern.ch>
11
12// STL includes
13
14// Framework includes
15#include "GaudiKernel/MsgStream.h"
16
17// McParticleEventTPCnv includes
19
20// McParticleEventAthenaPool includes
22
26
30
32// Protected methods:
34
39
40
43{
44 MsgStream msg( msgSvc(), "TruthEtIsolationsContainerCnv" );
45
48
49 msg << MSG::DEBUG << "::createPersistent [Success]" << endmsg;
50 return pers;
51}
52
54{
55 MsgStream msg( msgSvc(), "TruthEtIsolationsContainerCnv" );
56
58
59 //static pool::Guid tr_guid("003AE8C0-B033-4470-9F3D-869724F34E48");
60 static const pool::Guid p1_guid("EB6EC9D5-4D99-4565-9E4A-65BE1C21B35D");
61
62 if ( compareClassGuid(p1_guid) ) {
63
64 std::unique_ptr<TruthEtIsolationsContainer_p1> pers( poolReadObject<TruthEtIsolationsContainer_p1>() );
66 trans = cnv.createTransient( pers.get(), msg );
67
68 } else {
69 throw std::runtime_error("Unsupported persistent version of TruthEtIsolationsContainer");
70 }
71
72 return trans;
73}
#define endmsg
TruthEtIsolationsContainer_p1 TruthEtIsolationsContainer_PERS
T_AthenaPoolTPCnvVector< TruthEtIsolationsContainer, TruthEtIsolationsContainer_p1, TruthEtIsolationsCnv_p1 > TruthEtIsolationsContainerCnv_p1
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.
Compatibility for old converter classes that don't get passed the key.
virtual TruthEtIsolationsContainer * createTransient()
Build the transient representation from a persistent one.
TruthEtIsolationsContainerCnv(ISvcLocator *svcloc)
Create the converter from the service locator.
virtual TruthEtIsolationsContainer_PERS * createPersistent(TruthEtIsolationsContainer *transCont)
Build the persistent representation from the transient one.