ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTauContainerCnv.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(), "TrigTauContainerConverter" );
11
12 mlog << MSG::DEBUG << "TrigTauContainerCnv::createPersistent called" << endmsg;
13
14 TrigTauContainer_PERS * p_TauCont = m_converter.createPersistent( transObj, mlog );
15
16 return p_TauCont;
17
18}//end of create persistent method
19
20//createTransient
22{
23 MsgStream mlog(msgSvc(), "TrigTauContainerConverter" );
24
25 mlog << MSG::DEBUG << "TrigTauContainerCnv::createTransient called" << endmsg;
26
27 static const pool::Guid p3_guid( "32FE95F3-F85E-481E-9DD6-7BBA08ABDBD7" );
28 static const pool::Guid tlp1_guid( "1551CECC-52C7-4B5B-876C-27005A8DCCC8" );
29
30 if( compareClassGuid( p3_guid ) ){
31 std::unique_ptr< TrigTauContainer_p3 > col_vect( poolReadObject< TrigTauContainer_p3 >() );
32 // std::cout << "Reading IMFC p3" << std::endl;
33 return m_converter.createTransient( col_vect.get(), mlog ) ;
34 } else if( compareClassGuid( tlp1_guid ) ) {
35 std::unique_ptr< TrigTauContainer_tlp1 > col_vect( poolReadObject< TrigTauContainer_tlp1 >() );
36 return m_converter_tlp1.createTransient( col_vect.get(), mlog );
37 } else { throw std::runtime_error( "Unsupported persistent version of TrigTauContainer" ); }
38
39}//end of create transient method
40
#define endmsg
TrigTauContainer_p3 TrigTauContainer_PERS
virtual TrigTauContainer * createTransient()
TrigTauContainerCnv_tlp1 m_converter_tlp1
virtual TrigTauContainer_PERS * createPersistent(TrigTauContainer *transObj)
TrigTauContainerCnv_p3 m_converter
File: TrigTauContainer.h.