ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisTrigger
AnalysisTriggerEventTPCnv
src
CTP_DecisionCnv_p2.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 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 "
AnalysisTriggerEventTPCnv/CTP_DecisionCnv_p2.h
"
11
12
CTP_DecisionCnv_p2::CTP_DecisionCnv_p2
()
13
:
T_AthenaPoolTPCnvBase
<
CTP_Decision
,
CTP_Decision_p2
>() {
14
15
}
16
17
void
CTP_DecisionCnv_p2::persToTrans
(
const
CTP_Decision_p2
* persObj,
CTP_Decision
* transObj, MsgStream &log ) {
18
19
log << MSG::DEBUG <<
"Converting CTP_Decision from persistent state..."
<<
endmsg
;
20
21
//
22
// Simply copy the contents to the transient object:
23
//
24
transObj->
setWords
( persObj->
m_CTPResultWord
);
25
transObj->
setTriggerTypeWord
( persObj->
m_triggerTypeWord
);
26
transObj->
setItems
( persObj->
m_items
);
27
28
log << MSG::DEBUG <<
"Converting CTP_Decision from persistent state [OK]"
<<
endmsg
;
29
30
return
;
31
32
}
33
34
void
CTP_DecisionCnv_p2::transToPers
(
const
CTP_Decision
* transObj,
CTP_Decision_p2
* persObj, MsgStream &log ) {
35
36
log << MSG::DEBUG <<
"Creating persistent state of CTP_Decision..."
<<
endmsg
;
37
38
//
39
// Simply copy the contents of the persistent object:
40
//
41
persObj->
m_CTPResultWord
= transObj->
getWords
();
42
persObj->
m_triggerTypeWord
= transObj->
getTriggerTypeWord
();
43
persObj->
m_items
= transObj->
getItems
();
44
45
log << MSG::DEBUG <<
"Creating persistent state of CTP_Decision [OK]"
<<
endmsg
;
46
47
return
;
48
49
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
CTP_DecisionCnv_p2.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
CTP_DecisionCnv_p2::transToPers
virtual void transToPers(const CTP_Decision *transObj, CTP_Decision_p2 *persObj, MsgStream &log)
Definition
CTP_DecisionCnv_p2.cxx:34
CTP_DecisionCnv_p2::persToTrans
virtual void persToTrans(const CTP_Decision_p2 *persObj, CTP_Decision *transObj, MsgStream &log)
Definition
CTP_DecisionCnv_p2.cxx:17
CTP_DecisionCnv_p2::CTP_DecisionCnv_p2
CTP_DecisionCnv_p2()
Definition
CTP_DecisionCnv_p2.cxx:12
CTP_Decision_p2
Persistent representation of CTP_Decision.
Definition
CTP_Decision_p2.h:25
CTP_Decision_p2::m_triggerTypeWord
UInt_t m_triggerTypeWord
Definition
CTP_Decision_p2.h:35
CTP_Decision_p2::m_CTPResultWord
std::vector< UInt_t > m_CTPResultWord
Definition
CTP_Decision_p2.h:33
CTP_Decision_p2::m_items
std::vector< std::string > m_items
Definition
CTP_Decision_p2.h:37
CTP_Decision
Legacy data class representing the LVL1 CTP trigger decision.
Definition
CTP_Decision.h:39
CTP_Decision::setWords
void setWords(const std::vector< uint32_t > &words)
Set vector of CTP trigger words.
Definition
CTP_Decision.h:83
CTP_Decision::getTriggerTypeWord
uint32_t getTriggerTypeWord() const
Get trigger type word.
Definition
CTP_Decision.h:75
CTP_Decision::setTriggerTypeWord
void setTriggerTypeWord(uint32_t word)
Set trigger type word.
Definition
CTP_Decision.h:100
CTP_Decision::getItems
const items_type & getItems() const
Get a vector of fired LVL1 items.
Definition
CTP_Decision.h:56
CTP_Decision::setItems
void setItems(const items_type &items)
Set vector of fired LVL1 items.
Definition
CTP_Decision.h:78
CTP_Decision::getWords
const std::vector< uint32_t > & getWords() const
Get vector of CTP trigger words.
Definition
CTP_Decision.h:59
Generated on
for ATLAS Offline Software by
1.17.0