ATLAS Offline Software
TrigConfSeqCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 // This class data and converter
10 
12  TrigConfSeq* transObj,
13  MsgStream &log) const
14 {
15  if(log.level() <= MSG::DEBUG) {
16  log << MSG::DEBUG << "TrigConfSeqCnv_p1::persToTrans called " << endmsg;
17  }
18 
19  *transObj = TrigConfSeq (persObj->m_output_te_id,
20  persObj->m_output_te_index,
21  persObj->m_output_te_name);
22  transObj->setTopoTE (persObj->m_topo_te);
23  for (uint32_t te : persObj->m_input_te) {
24  transObj->addInputTE (te);
25  }
26 
27  std::vector<TrigConfAlg> tmp;
28  m_algCnv.persToTrans(&(persObj->m_alg), &tmp, log);
29  for (const TrigConfAlg& alg : tmp) {
30  transObj->addAlg (alg);
31  }
32 }
33 
34 
36  TrigConfSeq_p1* persObj,
37  MsgStream &log) const
38 {
39  if(log.level() <= MSG::DEBUG) {
40  log << MSG::DEBUG << "TrigConfSeqCnv_p1::transToPers called " << endmsg;
41  }
42 
43  persObj->m_output_te_name = transObj->getName();
44  persObj->m_output_te_index = transObj->getIndex();
45  persObj->m_output_te_id = transObj->getId();
46  persObj->m_topo_te = transObj->getTopoTE();
47  persObj->m_input_te = transObj->getInputTEs();
48 
49  m_algCnv.transToPers(&(transObj->getAlg()), &(persObj->m_alg), log);
50 }
TrigConfSeqCnv_p1::persToTrans
virtual void persToTrans(const TrigConfSeq_p1 *persObj, TrigConfSeq *transObj, MsgStream &log) const override
Definition: TrigConfSeqCnv_p1.cxx:11
TrigConfSeqCnv_p1.h
SGout2dot.alg
alg
Definition: SGout2dot.py:243
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigConfSeq::getInputTEs
const std::vector< uint32_t > & getInputTEs() const
Definition: TrigConfSeq.h:47
TrigConfSeq_p1.h
TrigConfSeq_p1::m_topo_te
uint32_t m_topo_te
Definition: TrigConfSeq_p1.h:41
TrigConfSeq::getId
uint32_t getId() const
Definition: TrigConfSeq.h:43
TrigConfSeq_p1::m_alg
std::vector< TrigConfAlg_p1 > m_alg
Definition: TrigConfSeq_p1.h:42
TrigConfSeq_p1
Definition: TrigConfSeq_p1.h:22
TrigConfSeq::getTopoTE
uint32_t getTopoTE() const
Definition: TrigConfSeq.h:45
TrigConfSeq::addAlg
void addAlg(const TrigConfAlg &alg)
Definition: TrigConfSeq.h:38
TrigConfSeq::setTopoTE
void setTopoTE(uint32_t te_id)
Definition: TrigConfSeq.h:40
TrigConfSeq.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigConfSeq
Definition: TrigConfSeq.h:29
TrigConfAlg
Definition: TrigConfAlg.h:25
TrigConfSeq_p1::m_output_te_id
uint32_t m_output_te_id
Definition: TrigConfSeq_p1.h:40
TrigConfSeqCnv_p1::transToPers
virtual void transToPers(const TrigConfSeq *transObj, TrigConfSeq_p1 *persObj, MsgStream &log) const override
Definition: TrigConfSeqCnv_p1.cxx:35
TrigConfSeq::getIndex
uint16_t getIndex() const
Definition: TrigConfSeq.h:42
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
TrigConfSeq::addInputTE
void addInputTE(uint32_t te_id)
Definition: TrigConfSeq.h:39
TrigConfSeqCnv_p1::m_algCnv
T_AthenaPoolTPCnvStdVectorConst< std::vector< TrigConfAlg >, std::vector< TrigConfAlg_p1 >, TrigConfAlgCnv_p1 > m_algCnv
Definition: TrigConfSeqCnv_p1.h:43
TrigConfSeq_p1::m_output_te_name
std::string m_output_te_name
Definition: TrigConfSeq_p1.h:38
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigConfSeq::getName
const std::string & getName() const
Definition: TrigConfSeq.h:44
TrigConfSeq_p1::m_input_te
std::vector< uint32_t > m_input_te
Definition: TrigConfSeq_p1.h:43
TrigConfSeq::getAlg
const TrigConfAlg & getAlg(unsigned int pos) const
Definition: TrigConfSeq.cxx:44
TrigConfSeq_p1::m_output_te_index
uint16_t m_output_te_index
Definition: TrigConfSeq_p1.h:39