ATLAS Offline Software
Loading...
Searching...
No Matches
CMMRoICnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#include "CMMRoICnv.h"
12
13using namespace LVL1;
14
15//createPersistent
17{
18
19 MsgStream mlog(msgSvc(), "CMMRoIConverter" );
20
21 //mlog << MSG::DEBUG << "CMMRoICnv::createPersistent called" << endmsg;
22
23 CMMRoI_PERS * persObj = m_TPConverter_p1.createPersistent( transObj, mlog );
24
25 return persObj;
26
27}//end of create persistent method
28
29
30//createTransient
32{
33 MsgStream mlog(msgSvc(), "CMMRoIConverter" );
34
35 //mlog << MSG::DEBUG << "CMMRoICnv::createTransient called" << endmsg;
36
37 static const pool::Guid p1_guid( "AF2D0BF8-8B28-4BFD-92B1-67F4708039C3" );
38
39
40 if ( compareClassGuid(p1_guid) ) {
41 // using unique_ptr ensures deletion of the persistent object
42 std::unique_ptr< CMMRoI_p1 > pers_ref( poolReadObject< CMMRoI_p1 >() );
43 return m_TPConverter_p1.createTransient( pers_ref.get(), mlog );
44 }
45 throw std::runtime_error("Unsupported persistent version of CMMRoI");
46
47 return 0;
48
49}//end of create transient method
50
Generated header file which defines a typedef for templated converter class.
CMMRoI_p1 CMMRoI_PERS
Definition CMMRoICnv.h:22
virtual LVL1::CMMRoI * createTransient()
Definition CMMRoICnv.cxx:31
CMMRoICnv_p1 m_TPConverter_p1
Definition CMMRoICnv.h:46
virtual CMMRoI_PERS * createPersistent(LVL1::CMMRoI *transCont)
Definition CMMRoICnv.cxx:16
virtual bool compareClassGuid(const Guid &clid) const
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...