ATLAS Offline Software
TrigConfChainCnv_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  TrigConfChain* transObj,
13  MsgStream &log) const
14 {
15  if(log.level() <= MSG::DEBUG) {
16  log << MSG::DEBUG << "TrigConfChainCnv_p1::persToTrans called " << endmsg;
17  }
18 
19  *transObj = TrigConfChain (persObj->m_chain_name,
20  persObj->m_chain_counter,
21  persObj->m_chain_id,
22  persObj->m_level == 1 ? "L1" : "HLT",
23  persObj->m_lower_name,
24  persObj->m_lower_counter,
25  persObj->m_lower_id,
26  persObj->m_prescale,
27  persObj->m_pass_through);
28  for (uint32_t id : persObj->m_lower_ids) {
29  transObj->addLowerChainId (id);
30  }
31 
32  transObj->getStreamPS() = persObj->m_stream_prescale;
33  transObj->getStream() = persObj->m_stream_name;
34  transObj->getGroup() = persObj->m_group;
35 
36  std::vector<TrigConfSig> tmp;
37  m_sigCnv.persToTrans(&(persObj->m_signature), &tmp, log);
38  for (const TrigConfSig& sig : tmp) {
39  transObj->addSignature (sig);
40  }
41 }
42 
43 
45  TrigConfChain_p1* persObj,
46  MsgStream &log) const
47 {
48  if(log.level() <= MSG::DEBUG) {
49  log << MSG::DEBUG << "TrigConfChainCnv_p1::transToPers called " << endmsg;
50  }
51 
52  persObj->m_chain_name = transObj->getChainName();
53  persObj->m_lower_name = transObj->getLowerName();
54  persObj->m_chain_id = transObj->getId();
55  persObj->m_lower_id = transObj->getLowerId();
56  persObj->m_chain_counter = transObj->getCounter();
57  persObj->m_lower_counter = transObj->getLowerCounter();
58  persObj->m_level = transObj->getLevelId();
59  persObj->m_prescale = transObj->getPrescale();
60  persObj->m_pass_through = transObj->getPassThrough();
61  persObj->m_lower_ids = transObj->getLowerIds();
62  persObj->m_stream_prescale = transObj->getStreamPS();
63  persObj->m_stream_name = transObj->getStream();
64  persObj->m_group = transObj->getGroup();
65 
66  m_sigCnv.transToPers(&(transObj->getSignature()), &(persObj->m_signature), log);
67 }
TrigConfChain::getGroup
const std::vector< std::string > & getGroup() const
Definition: TrigConfChain.h:95
TrigConfChain::addSignature
void addSignature(const TrigConfSig &obj)
Definition: TrigConfChain.h:58
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigConfChain_p1::m_lower_ids
std::vector< uint32_t > m_lower_ids
Definition: TrigConfChain_p1.h:56
TrigConfChain::getPassThrough
float getPassThrough() const
Definition: TrigConfChain.h:89
TrigConfChain_p1::m_group
std::vector< std::string > m_group
Definition: TrigConfChain_p1.h:60
TrigConfChain_p1::m_stream_name
std::vector< std::string > m_stream_name
Definition: TrigConfChain_p1.h:59
TrigConfChain_p1::m_chain_name
std::string m_chain_name
Definition: TrigConfChain_p1.h:46
TrigConfChain::getChainName
const std::string & getChainName() const
Definition: TrigConfChain.h:73
TrigConfChain::getSignature
const std::vector< TrigConfSig > & getSignature() const
Definition: TrigConfChain.h:93
TrigConfChain_p1::m_lower_id
uint32_t m_lower_id
Definition: TrigConfChain_p1.h:49
TrigConfChain_p1::m_chain_counter
uint16_t m_chain_counter
Definition: TrigConfChain_p1.h:50
TrigConfChain_p1
Definition: TrigConfChain_p1.h:22
TrigConfChain_p1::m_pass_through
float m_pass_through
Definition: TrigConfChain_p1.h:54
TrigConfChain::addLowerChainId
void addLowerChainId(uint32_t lower_id)
Definition: TrigConfChain.h:67
TrigConfChain
Definition: TrigConfChain.h:32
TrigConfChain.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigConfChainCnv_p1::m_sigCnv
T_AthenaPoolTPCnvStdVectorConst< std::vector< TrigConfSig >, std::vector< TrigConfSig_p1 >, TrigConfSigCnv_p1 > m_sigCnv
Definition: TrigConfChainCnv_p1.h:43
TrigConfChain_p1::m_chain_id
uint32_t m_chain_id
Definition: TrigConfChain_p1.h:48
python.BuildSignatureFlags.sig
sig
Definition: BuildSignatureFlags.py:215
TrigConfChain_p1::m_lower_name
std::string m_lower_name
Definition: TrigConfChain_p1.h:47
TrigConfSig
Definition: TrigConfSig.h:27
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
TrigConfChain_p1::m_signature
std::vector< TrigConfSig_p1 > m_signature
Definition: TrigConfChain_p1.h:58
TrigConfChainCnv_p1::transToPers
virtual void transToPers(const TrigConfChain *transObj, TrigConfChain_p1 *persObj, MsgStream &log) const override
Definition: TrigConfChainCnv_p1.cxx:44
TrigConfChain::getPrescale
float getPrescale() const
Definition: TrigConfChain.h:87
TrigConfChain::getCounter
uint16_t getCounter() const
Definition: TrigConfChain.h:77
TrigConfChainCnv_p1.h
TrigConfChain::getStream
const std::vector< std::string > & getStream() const
Definition: TrigConfChain.h:94
TrigConfChain::getLowerName
const std::string & getLowerName() const
Definition: TrigConfChain.h:74
TrigConfChain::getId
uint32_t getId() const
Definition: TrigConfChain.h:76
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigConfChain_p1::m_stream_prescale
std::vector< float > m_stream_prescale
Definition: TrigConfChain_p1.h:57
TrigConfChain::getStreamPS
const std::vector< float > & getStreamPS() const
Definition: TrigConfChain.h:92
TrigConfChain::getLowerIds
const std::vector< uint32_t > & getLowerIds() const
Definition: TrigConfChain.h:104
TrigConfChain_p1::m_prescale
float m_prescale
Definition: TrigConfChain_p1.h:53
TrigConfChain_p1::m_lower_counter
uint16_t m_lower_counter
Definition: TrigConfChain_p1.h:51
TrigConfChain_p1::m_level
uint8_t m_level
Definition: TrigConfChain_p1.h:52
TrigConfChainCnv_p1::persToTrans
virtual void persToTrans(const TrigConfChain_p1 *persObj, TrigConfChain *transObj, MsgStream &log) const override
Definition: TrigConfChainCnv_p1.cxx:11
TrigConfChain::getLowerCounter
uint16_t getLowerCounter() const
Definition: TrigConfChain.h:80
TrigConfChain::getLowerId
uint32_t getLowerId() const
Definition: TrigConfChain.h:81
TrigConfChain::getLevelId
unsigned int getLevelId() const
Definition: TrigConfChain.h:84
TrigConfChain_p1.h