ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisTrigger
AnalysisTriggerEventAthenaPool
src
CTP_DecisionCnv.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 "
CTP_DecisionCnv.h
"
11
12
// AnalysisTrigger include(s):
13
#include "
AnalysisTriggerEventTPCnv/CTP_Decision_p1.h
"
14
15
CTP_Decision_PERS
*
CTP_DecisionCnv::createPersistent
(
CTP_Decision
* transObj ) {
16
17
MsgStream log( this->msgSvc(),
"CTP_DecisionCnv"
);
18
CTP_Decision_PERS
* persObj =
m_converter
.createPersistent( transObj, log );
19
return
persObj;
20
21
}
22
23
CTP_Decision
*
CTP_DecisionCnv::createTransient
(
const
Token
* token) {
24
25
static
const
pool::Guid
p2_guid(
"08922DA9-6E47-4D3A-9FEC-0B4440644B50"
);
26
static
const
pool::Guid
p1_guid(
"1F421F32-8FBD-47B7-82ED-5354B9BE96D8"
);
27
static
const
pool::Guid
p0_guid(
"2A450F66-8A30-42E1-91CB-BE1CEE3C772F"
);
28
29
if
( this->
compareClassGuid
(token, p2_guid ) ) {
30
31
std::unique_ptr< CTP_Decision_p2 > pers_ref( this->
poolReadObject< CTP_Decision_p2 >
(token) );
32
MsgStream log( this->msgSvc(),
"CTP_DecisionCnv"
);
33
return
m_converter
.createTransient( pers_ref.get(), log );
34
35
}
else
if
( this->
compareClassGuid
(token, p1_guid ) ) {
36
37
std::unique_ptr< CTP_Decision_p1 > pers_ref( this->
poolReadObject< CTP_Decision_p1 >
(token) );
38
MsgStream log( this->msgSvc(),
"CTP_DecisionCnv"
);
39
return
m_converter_p1
.createTransient( pers_ref.get(), log );
40
41
}
else
if
( this->
compareClassGuid
(token, p0_guid ) ) {
42
43
return
this->
poolReadObject< CTP_Decision >
(token);
44
45
}
46
47
throw
std::runtime_error(
"Unsupported persistent version of CTP_Decision"
);
48
return
0;
49
50
}
CTP_DecisionCnv.h
CTP_Decision_PERS
CTP_Decision_p2 CTP_Decision_PERS
Definition
CTP_DecisionCnv.h:20
CTP_Decision_p1.h
CTP_DecisionCnv::createPersistent
virtual CTP_Decision_PERS * createPersistent(CTP_Decision *transObj)
Definition
CTP_DecisionCnv.cxx:15
CTP_DecisionCnv::m_converter_p1
CTP_DecisionCnv_p1 m_converter_p1
Definition
CTP_DecisionCnv.h:45
CTP_DecisionCnv::m_converter
CTP_DecisionCnv_p2 m_converter
Definition
CTP_DecisionCnv.h:44
CTP_DecisionCnv::createTransient
virtual CTP_Decision * createTransient(const Token *token)
Definition
CTP_DecisionCnv.cxx:23
CTP_Decision
Legacy data class representing the LVL1 CTP trigger decision.
Definition
CTP_Decision.h:39
T_AthenaPoolCustomCnv< CTP_Decision, CTP_Decision_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< CTP_Decision, CTP_Decision_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
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.17.0