ATLAS Offline Software
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 
11 #include "CMXRoICnv.h"
12 
13 
14 using 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 
CMXRoICnv::createTransient
virtual LVL1::CMXRoI * createTransient()
Definition: CMXRoICnv.cxx:33
LVL1::CMXRoI
CMX RoI data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXRoI.h:22
CMXRoICnv.h
Generated header file which defines a typedef for templated converter class.
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
CMXRoICnv::createPersistent
virtual CMXRoI_PERS * createPersistent(LVL1::CMXRoI *transCont)
Definition: CMXRoICnv.cxx: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
CMXRoI_p1
T/P separation for TrigT1Calo::CMXRoI class.
Definition: CMXRoI_p1.h:12