ATLAS Offline Software
Loading...
Searching...
No Matches
CMXRoICnv.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 "CMXRoICnv.h"
12
13
14using namespace LVL1;
15
16
17//createPersistent
19{
20
21 MsgStream mlog(msgSvc(), "CMXRoIConverter" );
22
23 //mlog << MSG::DEBUG << "CMXRoICnv::createPersistent called" << endmsg;
24
25 CMXRoI_PERS * persObj = m_TPConverter_p1.createPersistent( transObj, mlog );
26
27 return persObj;
28
29}//end of create persistent method
30
31
32//createTransient
34{
35 MsgStream mlog(msgSvc(), "CMXRoIConverter" );
36
37 //mlog << MSG::DEBUG << "CMXRoICnv::createTransient called" << endmsg;
38
39 static const pool::Guid p1_guid( "6EE27E92-E8DE-4F07-810F-025A1450E3BE" );
40
41
42 if ( compareClassGuid(p1_guid) ) {
43 // using unique_ptr ensures deletion of the persistent object
44 std::unique_ptr< CMXRoI_p1 > pers_ref( poolReadObject< CMXRoI_p1 >() );
45 return m_TPConverter_p1.createTransient( pers_ref.get(), mlog );
46 }
47 throw std::runtime_error("Unsupported persistent version of CMXRoI");
48
49 return 0;
50
51}//end of create transient method
52
Generated header file which defines a typedef for templated converter class.
CMXRoI_p1 CMXRoI_PERS
Definition CMXRoICnv.h:22
CMXRoICnv_p1 m_TPConverter_p1
Definition CMXRoICnv.h:45
virtual CMXRoI_PERS * createPersistent(LVL1::CMXRoI *transCont)
Definition CMXRoICnv.cxx:18
virtual LVL1::CMXRoI * createTransient()
Definition CMXRoICnv.cxx:33
virtual bool compareClassGuid(const Guid &clid) const
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...