ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventAthenaPool
src
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
13
using namespace
LVL1
;
14
15
//createPersistent
16
CMMRoI_PERS
*
CMMRoICnv::createPersistent
(
CMMRoI
*transObj)
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
31
CMMRoI
*
CMMRoICnv::createTransient
(
const
Token
* token)
32
{
33
MsgStream mlog(msgSvc(),
"CMMRoIConverter"
);
34
35
//mlog << MSG::DEBUG << "CMMRoICnv::createTransient called" << endmsg;
36
37
static
const
Guid
p1_guid(
"AF2D0BF8-8B28-4BFD-92B1-67F4708039C3"
);
38
39
40
if
(
compareClassGuid
(token, p1_guid) ) {
41
// using unique_ptr ensures deletion of the persistent object
42
std::unique_ptr< CMMRoI_p1 > pers_ref(
poolReadObject< CMMRoI_p1 >
(token) );
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.h
Generated header file which defines a typedef for templated converter class.
CMMRoI_PERS
CMMRoI_p1 CMMRoI_PERS
Definition
CMMRoICnv.h:22
CMMRoICnv::createTransient
virtual LVL1::CMMRoI * createTransient(const Token *token)
Definition
CMMRoICnv.cxx:31
CMMRoICnv::m_TPConverter_p1
CMMRoICnv_p1 m_TPConverter_p1
Definition
CMMRoICnv.h:46
CMMRoICnv::createPersistent
virtual CMMRoI_PERS * createPersistent(LVL1::CMMRoI *transCont)
Definition
CMMRoICnv.cxx:16
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
LVL1::CMMRoI
CMM RoI data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMRoI.h:21
T_AthenaPoolCustomCnv< LVL1::CMMRoI, CMMRoI_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< LVL1::CMMRoI, CMMRoI_PERS >::poolReadObject
P * poolReadObject(const Token *token)
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0