ATLAS Offline Software
Loading...
Searching...
No Matches
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):
11
16
17void 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
38void 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}
#define endmsg
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
virtual void transToPers(const CTP_Decision *transObj, CTP_Decision_p1 *persObj, MsgStream &log)
virtual void persToTrans(const CTP_Decision_p1 *persObj, CTP_Decision *transObj, MsgStream &log)
Persistent representation of CTP_Decision.
std::vector< std::string > m_items
Legacy data class representing the LVL1 CTP trigger decision.
void setItem(const items_type::value_type &item)
Set a fired LVL1 item.
void setWord1(const uint32_t word)
set 2.
uint32_t getTriggerTypeWord() const
Get trigger type word.
void setTriggerTypeWord(uint32_t word)
Set trigger type word.
void setWord2(const uint32_t word)
set 3.
uint32_t getWord0() const
get 1.
void setWord0(const uint32_t word)
set 1.
const items_type & getItems() const
Get a vector of fired LVL1 items.
uint32_t getWord1() const
get 2.
uint32_t getWord2() const
get 3.