ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisTrigger
AnalysisTriggerEventTPCnv
src
CTP_DecisionCnv_p1.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_p1.h
"
11
12
CTP_DecisionCnv_p1::CTP_DecisionCnv_p1
()
13
:
T_AthenaPoolTPCnvBase
<
CTP_Decision
,
CTP_Decision_p1
>() {
14
15
}
16
17
void
CTP_DecisionCnv_p1::persToTrans
(
const
CTP_Decision_p1
* 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->
setWord0
( persObj->
m_word0
);
25
transObj->
setWord1
( persObj->
m_word1
);
26
transObj->
setWord2
( persObj->
m_word2
);
27
transObj->
setTriggerTypeWord
( persObj->
m_triggerTypeWord
);
28
for
( std::vector< std::string >::const_iterator it = persObj->
m_items
.begin(); it != persObj->
m_items
.end(); ++it ) {
29
transObj->
setItem
( *it );
30
}
31
32
log << MSG::DEBUG <<
"Converting CTP_Decision from persistent state [OK]"
<<
endmsg
;
33
34
return
;
35
36
}
37
38
void
CTP_DecisionCnv_p1::transToPers
(
const
CTP_Decision
* transObj,
CTP_Decision_p1
* persObj, MsgStream &log ) {
39
40
log << MSG::DEBUG <<
"Creating persistent state of CTP_Decision..."
<<
endmsg
;
41
42
//
43
// Simply copy the contents of the persistent object:
44
//
45
persObj->
m_word0
= transObj->
getWord0
();
46
persObj->
m_word1
= transObj->
getWord1
();
47
persObj->
m_word2
= transObj->
getWord2
();
48
persObj->
m_triggerTypeWord
= transObj->
getTriggerTypeWord
();
49
for
( std::vector< std::string >::const_iterator it = transObj->
getItems
().begin(); it != transObj->
getItems
().end(); ++it ) {
50
persObj->
m_items
.push_back( *it );
51
}
52
53
log << MSG::DEBUG <<
"Creating persistent state of CTP_Decision [OK]"
<<
endmsg
;
54
55
return
;
56
57
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
CTP_DecisionCnv_p1.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
CTP_DecisionCnv_p1::transToPers
virtual void transToPers(const CTP_Decision *transObj, CTP_Decision_p1 *persObj, MsgStream &log)
Definition
CTP_DecisionCnv_p1.cxx:38
CTP_DecisionCnv_p1::persToTrans
virtual void persToTrans(const CTP_Decision_p1 *persObj, CTP_Decision *transObj, MsgStream &log)
Definition
CTP_DecisionCnv_p1.cxx:17
CTP_DecisionCnv_p1::CTP_DecisionCnv_p1
CTP_DecisionCnv_p1()
Definition
CTP_DecisionCnv_p1.cxx:12
CTP_Decision_p1
Persistent representation of CTP_Decision.
Definition
CTP_Decision_p1.h:26
CTP_Decision_p1::m_word2
UInt_t m_word2
Definition
CTP_Decision_p1.h:36
CTP_Decision_p1::m_word1
UInt_t m_word1
Definition
CTP_Decision_p1.h:35
CTP_Decision_p1::m_triggerTypeWord
UInt_t m_triggerTypeWord
Definition
CTP_Decision_p1.h:37
CTP_Decision_p1::m_items
std::vector< std::string > m_items
Definition
CTP_Decision_p1.h:39
CTP_Decision_p1::m_word0
UInt_t m_word0
Definition
CTP_Decision_p1.h:34
CTP_Decision
Legacy data class representing the LVL1 CTP trigger decision.
Definition
CTP_Decision.h:39
CTP_Decision::setItem
void setItem(const items_type::value_type &item)
Set a fired LVL1 item.
Definition
CTP_Decision.h:80
CTP_Decision::setWord1
void setWord1(const uint32_t word)
set 2.
Definition
CTP_Decision.h:91
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::setWord2
void setWord2(const uint32_t word)
set 3.
Definition
CTP_Decision.h:92
CTP_Decision::getWord0
uint32_t getWord0() const
get 1.
Definition
CTP_Decision.h:65
CTP_Decision::setWord0
void setWord0(const uint32_t word)
set 1.
Definition
CTP_Decision.h:90
CTP_Decision::getItems
const items_type & getItems() const
Get a vector of fired LVL1 items.
Definition
CTP_Decision.h:56
CTP_Decision::getWord1
uint32_t getWord1() const
get 2.
Definition
CTP_Decision.h:66
CTP_Decision::getWord2
uint32_t getWord2() const
get 3.
Definition
CTP_Decision.h:67
Generated on
for ATLAS Offline Software by
1.17.0