ATLAS Offline Software
TrigMonTECnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <iostream>
10 
12  TrigMonTE* transObj,
13  MsgStream &log) const
14 {
15  if(log.level() <= MSG::DEBUG) {
16  log << MSG::DEBUG << "TrigMonTECnv_p1::persToTrans called " << endmsg;
17  }
18 
19  *transObj = TrigMonTE (persObj->m_id,
20  persObj->m_encoded);
21  transObj->addState (static_cast<TrigMonTE::State> (persObj->m_encoded));
22 
23  for (uint16_t index : persObj->m_child) {
24  transObj->addChildIndex (index);
25  }
26 
27  for (uint16_t index : persObj->m_parent) {
28  transObj->addParentIndex (index);
29  }
30 
31  for (uint8_t index : persObj->m_roi) {
32  transObj->addRoiId (index);
33  }
34 
35  for (uint32_t clid : persObj->m_clid) {
36  transObj->addClid (clid);
37  }
38 
39  transObj->m_var_key = persObj->m_var_key;
40  transObj->m_var_val = persObj->m_var_val;
41 }
42 
43 
45  TrigMonTE_p1* persObj,
46  MsgStream &log) const
47 {
48  if(log.level() <= MSG::DEBUG) {
49  log << MSG::DEBUG << "TrigMonTECnv_p1::transToPers called " << endmsg;
50  }
51 
52  persObj->m_id = transObj->getId();
53  persObj->m_child = transObj->getChildIndex();
54  persObj->m_parent = transObj->getParentIndex();
55  persObj->m_roi = transObj->getRoiId();
56  persObj->m_clid = transObj->getClid();
57  persObj->m_var_key = transObj->getVarKey();
58  persObj->m_var_val = transObj->getVarVal();
59 
60  persObj->m_encoded = transObj->m_encoded;
61 }
TrigMonTE::addChildIndex
void addChildIndex(uint16_t index)
Definition: TrigMonTE.h:50
TrigMonTE_p1::m_var_key
std::vector< uint16_t > m_var_key
Definition: TrigMonTE_p1.h:46
TrigMonTE::addRoiId
void addRoiId(uint8_t roiid)
Definition: TrigMonTE.h:53
TrigMonTE::getParentIndex
const std::vector< uint16_t > & getParentIndex() const
Definition: TrigMonTE.h:76
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
index
Definition: index.py:1
TrigMonTE::getClid
const std::vector< uint32_t > & getClid() const
Definition: TrigMonTE.h:79
TrigMonTE::addState
void addState(State state)
Definition: TrigMonTE.cxx:58
TrigMonTECnv_p1::persToTrans
virtual void persToTrans(const TrigMonTE_p1 *persObj, TrigMonTE *transObj, MsgStream &log) const override
Definition: TrigMonTECnv_p1.cxx:11
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
TrigMonTE_p1::m_child
std::vector< uint16_t > m_child
Definition: TrigMonTE_p1.h:41
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMonTE_p1.h
TrigMonTE::getChildIndex
const std::vector< uint16_t > & getChildIndex() const
Definition: TrigMonTE.h:75
TrigMonTE_p1
Persistent copy of TrigMonTE.
Definition: TrigMonTE_p1.h:20
TrigMonTECnv_p1.h
TrigMonTE::m_encoded
uint32_t m_encoded
Definition: TrigMonTE.h:91
TrigMonTE_p1::m_parent
std::vector< uint16_t > m_parent
Definition: TrigMonTE_p1.h:42
TrigMonTE
Summary of one trigger element from navigation tree.
Definition: TrigMonTE.h:28
TrigMonTE::State
State
Definition: TrigMonTE.h:37
TrigMonTE::getId
uint32_t getId() const
Definition: TrigMonTE.h:64
TrigMonTE_p1::m_var_val
std::vector< float > m_var_val
Definition: TrigMonTE_p1.h:47
TrigMonTE::m_var_key
std::vector< uint16_t > m_var_key
Definition: TrigMonTE.h:98
TrigMonTE::getVarKey
const std::vector< uint16_t > & getVarKey() const
Definition: TrigMonTE.h:82
TrigMonTE::getRoiId
const std::vector< uint8_t > & getRoiId() const
Definition: TrigMonTE.h:78
TrigMonTE::getVarVal
const std::vector< float > & getVarVal() const
Definition: TrigMonTE.h:83
TrigMonTE_p1::m_clid
std::vector< uint32_t > m_clid
Definition: TrigMonTE_p1.h:44
TrigMonTE::addClid
void addClid(uint32_t clid)
Definition: TrigMonTE.h:54
TrigMonTE::addParentIndex
void addParentIndex(uint16_t index)
Definition: TrigMonTE.h:51
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigMonTE_p1::m_encoded
uint32_t m_encoded
Definition: TrigMonTE_p1.h:39
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMonTECnv_p1::transToPers
virtual void transToPers(const TrigMonTE *transObj, TrigMonTE_p1 *persObj, MsgStream &log) const override
Definition: TrigMonTECnv_p1.cxx:44
TrigMonTE::m_var_val
std::vector< float > m_var_val
Definition: TrigMonTE.h:99
TrigMonTE.h
TrigMonTE_p1::m_id
uint32_t m_id
Definition: TrigMonTE_p1.h:38
TrigMonTE_p1::m_roi
std::vector< uint8_t > m_roi
Definition: TrigMonTE_p1.h:43