ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCaloClusterContainerCnv.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(), "TrigCaloClusterContainerConverter" );
11
12 mlog << MSG::DEBUG << "TrigCaloClusterContainerCnv::createPersistent called" << endmsg;
13
14 TrigCaloClusterContainer_PERS * p_CaloClusterCont = m_converter.createPersistent( transObj, mlog );
15
16 return p_CaloClusterCont;
17
18}//end of create persistent method
19
20//createTransient
22{
23 MsgStream mlog(msgSvc(), "TrigCaloClusterContainerConverter" );
24
25 mlog << MSG::DEBUG << "TrigCaloClusterContainerCnv::createTransient called" << endmsg;
26
27 static const pool::Guid p3_guid( "98A28943-662A-4141-82C3-537447264DA3" );
28
29 if( compareClassGuid( p3_guid ) ){
30 std::unique_ptr< TrigCaloClusterContainer_p3 > col_vect( poolReadObject< TrigCaloClusterContainer_p3 >() );
31 // std::cout << "Reading IMFC p3" << std::endl;
32 return m_converter.createTransient( col_vect.get(), mlog ) ;
33 } else { throw std::runtime_error( "Unsupported persistent version of TrigCaloClusterContainer" ); }
34
35}//end of create transient method
36
#define endmsg
TrigCaloClusterContainer_p3 TrigCaloClusterContainer_PERS
virtual TrigCaloClusterContainer_PERS * createPersistent(TrigCaloClusterContainer *transObj)
virtual TrigCaloClusterContainer * createTransient()
TrigCaloClusterContainerCnv_p3 m_converter