ATLAS Offline Software
RODHeaderCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 // Gaudi/Athena include(s):
9 #include "GaudiKernel/MsgStream.h"
10 
11 // Local include(s):
13 
14 using namespace LVL1;
15 
16 /*
17 RODHeaderCnv_p1::RODHeaderCnv_p1()
18  : T_AthenaPoolTPCnvBase< RODHeader, RODHeader_p1 >() {
19 
20 }
21 */
22 
23 void RODHeaderCnv_p1::persToTrans( const RODHeader_p1* persObj, RODHeader* transObj, MsgStream &log ) {
24 
25  //log << MSG::INFO << "Converting RODHeader from persistent state..." << endmsg;
26 
27  //transObj->clear(); // see if I actually need one of these
28 
29  //
30  // Translate the RODHeader
31  //
32  *transObj = RODHeader (persObj->m_version,
33  persObj->m_sourceId,
34  persObj->m_run,
35  persObj->m_lvl1Id,
36  persObj->m_bcId,
37  persObj->m_trigType,
38  persObj->m_detType,
39  persObj->m_statusWords,
40  persObj->m_payloadSize);
41 
42  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted RODHeader from persistent state [OK]" << endmsg;
43 
44  return;
45 
46 }
47 
48 void RODHeaderCnv_p1::transToPers( const RODHeader* transObj, RODHeader_p1* persObj, MsgStream &log ) {
49 
50  //log << MSG::INFO << "Creating persistent state of RODHeader..." << endmsg;
51 
52  persObj->m_version = transObj->version();
53  persObj->m_sourceId = transObj->sourceID();
54  persObj->m_run = transObj->run();
55  persObj->m_lvl1Id = transObj->extendedL1ID();
56  persObj->m_bcId = transObj->bunchCrossing();
57  persObj->m_trigType = transObj->l1TriggerType();
58  persObj->m_detType = transObj->detEventType();
59  persObj->m_statusWords = transObj->statusWords();
60  persObj->m_payloadSize = transObj->payloadSize();
61 
62  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of RODHeader [OK]" << endmsg;
63 
64  return;
65 
66 }
RODHeader_p1::m_sourceId
uint32_t m_sourceId
Definition: RODHeader_p1.h:40
RODHeader_p1::m_bcId
uint32_t m_bcId
Definition: RODHeader_p1.h:43
LVL1::RODHeader::statusWords
const std::vector< uint32_t > & statusWords() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:234
LVL1::RODHeader::detEventType
int detEventType() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:169
RODHeader_p1::m_trigType
uint32_t m_trigType
Definition: RODHeader_p1.h:44
LVL1::RODHeader
ROD Header data and status words.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:17
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::RODHeader::l1TriggerType
int l1TriggerType() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:164
RODHeader.h
RODHeader_p1::m_version
uint32_t m_version
Internal data.
Definition: RODHeader_p1.h:39
LVL1::RODHeader::payloadSize
int payloadSize() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:239
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
RODHeader_p1::m_run
uint32_t m_run
Definition: RODHeader_p1.h:41
LVL1::RODHeader::bunchCrossing
int bunchCrossing() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:159
RODHeader_p1::m_detType
uint32_t m_detType
Definition: RODHeader_p1.h:45
RODHeaderCnv_p1::persToTrans
virtual void persToTrans(const RODHeader_p1 *persObj, LVL1::RODHeader *transObj, MsgStream &log)
Definition: RODHeaderCnv_p1.cxx:23
RODHeaderCnv_p1.h
RODHeader_p1::m_payloadSize
uint32_t m_payloadSize
Definition: RODHeader_p1.h:47
RODHeader_p1::m_statusWords
std::vector< uint32_t > m_statusWords
Definition: RODHeader_p1.h:46
RODHeaderCnv_p1::transToPers
virtual void transToPers(const LVL1::RODHeader *transObj, RODHeader_p1 *persObj, MsgStream &log)
Definition: RODHeaderCnv_p1.cxx:48
xAOD::RODHeader
RODHeader_v2 RODHeader
Define the latest version of the RODHeader class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/RODHeader.h:14
LVL1::RODHeader::run
int run() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:129
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LVL1::RODHeader::sourceID
int sourceID() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:99
LVL1::RODHeader::version
int version() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:84
RODHeader_p1
Persistent form of RODHeader using T/P separation.
Definition: RODHeader_p1.h:26
LVL1::RODHeader::extendedL1ID
int extendedL1ID() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:144
RODHeader_p1::m_lvl1Id
uint32_t m_lvl1Id
Definition: RODHeader_p1.h:42