ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCompositeContainerCnv.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(), "TrigCompositeContainerConverter" );
11
12 mlog << MSG::DEBUG << "TrigCompositeContainerCnv::createPersistent called" << endmsg;
13
14 TrigCompositeContainer_PERS * p_CompositeCont = m_converter.createPersistent( transObj, mlog );
15
16 return p_CompositeCont;
17
18}//end of create persistent method
19
20//createTransient
22{
23 MsgStream mlog(msgSvc(), "TrigCompositeContainerConverter" );
24
25 mlog << MSG::DEBUG << "TrigCompositeContainerCnv::createTransient called" << endmsg;
26
27 static const pool::Guid p1_guid( "6D16EA6B-968C-41F0-B5E8-9CC6D5BD7F9A" );
28
29
30 if( compareClassGuid( p1_guid ) ){
31 std::unique_ptr< TrigCompositeContainer_p1 > col_vect( poolReadObject< TrigCompositeContainer_p1 >() );
32 // std::cout << "Reading IMFC p1" << std::endl;
33 return m_converter.createTransient( col_vect.get(), mlog ) ;
34 } else { throw std::runtime_error( "Unsupported persistent version of TrigCompositeContainer" ); }
35
36}//end of create transient method
37
#define endmsg
TrigCompositeContainer_p1 TrigCompositeContainer_PERS
TrigCompositeContainerCnv_p1 m_converter
virtual TrigCompositeContainer_PERS * createPersistent(TrigCompositeContainer *transObj)
virtual TrigCompositeContainer * createTransient()