ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleTruthCollectionContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
13
14#include "GaudiKernel/StatusCode.h"
15#include "GaudiKernel/MsgStream.h"
16#include "GaudiKernel/ISvcLocator.h"
17
18
25
26
32
34 MsgStream log(msgSvc(), "TrackParticleTruthCollectionContainerCnv");
35 log<<MSG::DEBUG<<"Writing TrackParticleTruthCollectionContainer_tlp3"<<endmsg;
36
37 TrackParticleTruthCollectionContainerPERS* p_cont = m_converter_p3->createPersistent( trans, log );
38 return p_cont;
39}
40
41
43 pool::Guid p1_guid("9F47124C-0033-4556-B14A-D7F28E4249EC");
44 pool::Guid p2_guid("9F47124C-0033-4556-B14A-D7F28E4249ED");
45 pool::Guid p3_guid("018F1AD6-09F9-7634-A065-2343D74DD289");
46
47 MsgStream log(msgSvc(), "TrackParticleTruthCollectionContainerCnv" );
49 if( compareClassGuid( p3_guid ) ){
51 p_collection = m_converter_p3->createTransient( log );
52 }
53 else if( compareClassGuid( p2_guid ) ){
55 p_collection = m_converter_p2->createTransient( log );
56 }
57 else if ( compareClassGuid( p1_guid ) ){
59 p_collection = m_converter_p1->createTransient( log );
60 }
61 else {
62 throw std::runtime_error( "Unsupported persistent version of TrigTrackCountsCollection" );
63 }
64
65 return p_collection;
66}
#define endmsg
TrackParticleTruthCollectionContainer_tlp3 TrackParticleTruthCollectionContainerPERS
T_AthenaPoolCustomCnv< TrackParticleTruthCollectionContainer, TrackParticleTruthCollectionContainerPERS > TrackParticleTruthCollectionContainerCnvBase
DataVector< TrackParticleTruthCollection > TrackParticleTruthCollectionContainer
TrackParticleTruthCollectionContainerCnv_tlp1 * m_converter_p1
virtual TrackParticleTruthCollectionContainerPERS * createPersistent(TrackParticleTruthCollectionContainer *)
TrackParticleTruthCollectionContainerCnv_tlp2 * m_converter_p2
TrackParticleTruthCollectionContainerCnv_tlp3 * m_converter_p3
virtual TrackParticleTruthCollectionContainer * createTransient()