ATLAS Offline Software
Loading...
Searching...
No Matches
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):
11
16
17void 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
34void 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}
#define endmsg
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
virtual void transToPers(const CTP_Decision *transObj, CTP_Decision_p2 *persObj, MsgStream &log)
virtual void persToTrans(const CTP_Decision_p2 *persObj, CTP_Decision *transObj, MsgStream &log)
Persistent representation of CTP_Decision.
std::vector< UInt_t > m_CTPResultWord
std::vector< std::string > m_items
Legacy data class representing the LVL1 CTP trigger decision.
void setWords(const std::vector< uint32_t > &words)
Set vector of CTP trigger words.
uint32_t getTriggerTypeWord() const
Get trigger type word.
void setTriggerTypeWord(uint32_t word)
Set trigger type word.
const items_type & getItems() const
Get a vector of fired LVL1 items.
void setItems(const items_type &items)
Set vector of fired LVL1 items.
const std::vector< uint32_t > & getWords() const
Get vector of CTP trigger words.