ATLAS Offline Software
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 
11 #include "CMMRoICnv.h"
12 
13 using 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 
CMMRoICnv::createPersistent
virtual CMMRoI_PERS * createPersistent(LVL1::CMMRoI *transCont)
Definition: CMMRoICnv.cxx:16
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
python.InDetPriVxFinderConfig.mlog
mlog
Definition: InDetPriVxFinderConfig.py:134
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
CMMRoI_p1
T/P separation for TrigT1Calo::CMMRoI class.
Definition: CMMRoI_p1.h:19
CMMRoICnv::createTransient
virtual LVL1::CMMRoI * createTransient()
Definition: CMMRoICnv.cxx:31
CMMRoICnv.h
Generated header file which defines a typedef for templated converter class.
LVL1::CMMRoI
CMM RoI data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:21