ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventAthenaPool
src
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
14
using namespace
LVL1
;
15
16
17
//createPersistent
18
CMXRoI_PERS
*
CMXRoICnv::createPersistent
(
CMXRoI
*transObj)
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
33
CMXRoI
*
CMXRoICnv::createTransient
(
const
Token
* token)
34
{
35
MsgStream mlog(msgSvc(),
"CMXRoIConverter"
);
36
37
//mlog << MSG::DEBUG << "CMXRoICnv::createTransient called" << endmsg;
38
39
static
const
Guid
p1_guid(
"6EE27E92-E8DE-4F07-810F-025A1450E3BE"
);
40
41
42
if
(
compareClassGuid
(token, p1_guid) ) {
43
// using unique_ptr ensures deletion of the persistent object
44
std::unique_ptr< CMXRoI_p1 > pers_ref(
poolReadObject< CMXRoI_p1 >
(token) );
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.h
Generated header file which defines a typedef for templated converter class.
CMXRoI_PERS
CMXRoI_p1 CMXRoI_PERS
Definition
CMXRoICnv.h:22
CMXRoICnv::m_TPConverter_p1
CMXRoICnv_p1 m_TPConverter_p1
Definition
CMXRoICnv.h:45
CMXRoICnv::createPersistent
virtual CMXRoI_PERS * createPersistent(LVL1::CMXRoI *transCont)
Definition
CMXRoICnv.cxx:18
CMXRoICnv::createTransient
virtual LVL1::CMXRoI * createTransient(const Token *token)
Definition
CMXRoICnv.cxx:33
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
LVL1::CMXRoI
CMX RoI data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXRoI.h:22
T_AthenaPoolCustomCnv< LVL1::CMXRoI, CMXRoI_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< LVL1::CMXRoI, CMXRoI_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