ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTauTracksInfoCollectionCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7//createPersistent
9{
10 MsgStream mlog(msgSvc(), "TrigTauTracksInfoCollectionConverter" );
11
12 mlog << MSG::DEBUG << "TrigTauTracksInfoCollectionCnv::createPersistent called" << endmsg;
13
14 TrigTauTracksInfoCollection_PERS * p_cont = m_converter.createPersistent( transObj, mlog );
15
16 return p_cont;
17
18}//end of create persistent method
19
20
21//createTransient
23{
24 MsgStream mlog(msgSvc(), "TrigTauTracksInfoCollectionConverter" );
25
26 mlog << MSG::DEBUG << "TrigTauTracksInfoCollectionCnv::createTransient called" << endmsg;
27
28 static const pool::Guid p2_guid( "1AF8C4E5-4862-4625-B9B6-D9B53E716B17" );
29 static const pool::Guid p1_guid( "8A208FA7-C52F-4CD3-AE20-EF1C99FC92A6" );
30 static const pool::Guid p0_guid( "27E95E77-0D99-417D-83C7-7F1B8E6DE511" );
31
32 if( compareClassGuid( p2_guid ) ){
33 std::unique_ptr< TrigTauTracksInfoCollection_p2 > col_vect( poolReadObject< TrigTauTracksInfoCollection_p2 >() );
34 return m_converter.createTransient( col_vect.get(), mlog ) ;
35 } else if( compareClassGuid( p1_guid ) ) {
36 std::unique_ptr< TrigTauTracksInfoCollection_tlp1 > col_vect( poolReadObject< TrigTauTracksInfoCollection_tlp1 >() );
37 return m_converter_tlp1.createTransient( col_vect.get(), mlog );
38 } else if( compareClassGuid( p0_guid ) ){
40 } else throw std::runtime_error( "Unsupported persistent version of TrigTauTracksInfoCollection" );
41
42}//end of create transient method
43
#define endmsg
TrigTauTracksInfoCollection_p2 TrigTauTracksInfoCollection_PERS
virtual TrigTauTracksInfoCollection * createTransient()
TrigTauTracksInfoCollectionCnv_p2 m_converter
virtual TrigTauTracksInfoCollection_PERS * createPersistent(TrigTauTracksInfoCollection *transObj)
TrigTauTracksInfoCollectionCnv_tlp1 m_converter_tlp1