ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventAthenaPool
src
RoIBResultCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
// Gaudi/Athena include(s):
7
#include "GaudiKernel/MsgStream.h"
8
9
// Local include(s):
10
#include "
RoIBResultCnv.h
"
11
16
RoIBResult_PERS
*
RoIBResultCnv::createPersistent
(
ROIB::RoIBResult
* transObj ) {
17
18
MsgStream log( this->msgSvc(),
"RoIBResultCnv"
);
19
return
m_converter
.createPersistent( transObj, log );
20
21
}
22
27
ROIB::RoIBResult
*
RoIBResultCnv::createTransient
(
const
Token
* token) {
28
29
static
const
Guid
p1_guid(
"A9FF18A0-E5A2-4F24-82C7-605CAA9EA1F8"
);
30
static
const
Guid
p0_guid(
"E9F89B95-329A-4FF1-9110-4CE48D1D7176"
);
31
32
if
( this->
compareClassGuid
(token, p1_guid ) ) {
33
34
std::unique_ptr< RoIBResult_p1 > pers_ref( this->
poolReadObject< RoIBResult_p1 >
(token) );
35
MsgStream log( this->msgSvc(),
"RoIBResultCnv"
);
36
return
m_converter
.createTransient( pers_ref.get(), log );
37
38
}
else
if
( this->
compareClassGuid
(token, p0_guid ) ) {
39
40
return
this->
poolReadObject< ROIB::RoIBResult >
(token);
41
42
}
43
44
throw
std::runtime_error(
"Unsupported persistent version of ROIB::RoIBResult"
);
45
return
0;
46
47
}
RoIBResultCnv.h
RoIBResult_PERS
RoIBResult_p1 RoIBResult_PERS
Definition
RoIBResultCnv.h:20
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition
Guid.h:25
ROIB::RoIBResult
Class holding the LVL1 RoIB result build by the RoIBuilder.
Definition
RoIBResult.h:47
RoIBResultCnv::createTransient
virtual ROIB::RoIBResult * createTransient(const Token *token)
Function reading a version of RoIBResult from POOL and converting it to a transient ROIB::RoIBResult ...
Definition
RoIBResultCnv.cxx:27
RoIBResultCnv::createPersistent
virtual RoIBResult_PERS * createPersistent(ROIB::RoIBResult *transObj)
Function creating a persistent RoIBResult_PERS object from a transient ROIB::RoIBResult one.
Definition
RoIBResultCnv.cxx:16
RoIBResultCnv::m_converter
RoIBResultCnv_p1 m_converter
Definition
RoIBResultCnv.h:43
T_AthenaPoolCustomCnv< ROIB::RoIBResult, RoIBResult_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< ROIB::RoIBResult, RoIBResult_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
Generated on
for ATLAS Offline Software by
1.17.0