ATLAS Offline Software
TrigMonConfigCnv_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  TrigMonConfig* transObj,
13  MsgStream &log) const
14 {
15  if(log.level() <= MSG::DEBUG) {
16  log << MSG::DEBUG << "TrigMonConfigCnv_p1::persToTrans called " << endmsg;
17  }
18 
19  transObj->setEventID (persObj->m_event,
20  persObj->m_lumi,
21  persObj->m_run,
22  persObj->m_sec,
23  persObj->m_nsec);
24  transObj->setTriggerKeys (persObj->m_master_key,
25  persObj->m_lv1_ps_key,
26  persObj->m_hlt_ps_key);
27 
28  transObj->getVarName() = persObj->m_var_name;
29  transObj->getVarId() = persObj->m_var_id;
30  transObj->getPairKey() = persObj->m_pair_key;
31  transObj->getPairVal() = persObj->m_pair_val;
32 
33  m_chainCnv.persToTrans(&(persObj->m_chain),
34  &transObj->getVec<TrigConfChain>(),
35  log);
36  m_seqCnv .persToTrans(&(persObj->m_seq),
37  &transObj->getVec<TrigConfSeq>(),
38  log);
39 }
40 
41 
43  TrigMonConfig_p1* persObj,
44  MsgStream &log) const
45 {
46  if(log.level() <= MSG::DEBUG) {
47  log << MSG::DEBUG << "TrigMonConfigCnv_p1::transToPers called " << endmsg;
48  }
49 
50  persObj->m_event = transObj->getEvent();
51  persObj->m_lumi = transObj->getLumi();
52  persObj->m_run = transObj->getRun();
53  persObj->m_sec = transObj->getSec();
54  persObj->m_nsec = transObj->getNanoSec();
55  persObj->m_master_key = transObj->getMasterKey();
56  persObj->m_hlt_ps_key = transObj->getHLTPrescaleKey();
57  persObj->m_lv1_ps_key = transObj->getLV1PrescaleKey();
58  persObj->m_var_name = transObj->getVarName();
59  persObj->m_var_id = transObj->getVarId();
60  persObj->m_pair_key = transObj->getPairKey();
61  persObj->m_pair_val = transObj->getPairVal();
62 
63  m_chainCnv.transToPers(&transObj->getVec<TrigConfChain>(),
64  &(persObj->m_chain), log);
65  m_seqCnv .transToPers(&transObj->getVec<TrigConfSeq>(),
66  &(persObj->m_seq), log);
67 }
TrigMonConfig::getPairKey
std::vector< std::string > & getPairKey()
Definition: TrigMonConfig.h:73
TrigMonConfig::getVarName
std::vector< std::string > & getVarName()
Definition: TrigMonConfig.h:71
TrigMonConfigCnv_p1.h
TrigMonConfig_p1::m_pair_key
std::vector< std::string > m_pair_key
Definition: TrigMonConfig_p1.h:63
TrigMonConfig_p1::m_event
uint32_t m_event
Definition: TrigMonConfig_p1.h:47
TrigMonConfig::getLV1PrescaleKey
uint32_t getLV1PrescaleKey() const
Definition: TrigMonConfig.h:84
TrigMonConfig_p1.h
TrigMonConfigCnv_p1::m_seqCnv
T_AthenaPoolTPCnvStdVectorConst< std::vector< TrigConfSeq >, std::vector< TrigConfSeq_p1 >, TrigConfSeqCnv_p1 > m_seqCnv
Definition: TrigMonConfigCnv_p1.h:47
TrigMonConfig_p1::m_chain
std::vector< TrigConfChain_p1 > m_chain
Definition: TrigMonConfig_p1.h:57
TrigMonConfig::getSec
uint32_t getSec() const
Definition: TrigMonConfig.h:79
TrigMonConfig_p1::m_seq
std::vector< TrigConfSeq_p1 > m_seq
Definition: TrigMonConfig_p1.h:58
TrigMonConfig_p1::m_sec
uint32_t m_sec
Definition: TrigMonConfig_p1.h:50
TrigMonConfig::setTriggerKeys
void setTriggerKeys(uint32_t master_key, uint32_t lv1_ps_key, uint32_t hlt_ps_key)
Definition: TrigMonConfig.cxx:102
TrigMonConfig_p1::m_var_name
std::vector< std::string > m_var_name
Definition: TrigMonConfig_p1.h:60
TrigMonConfig_p1::m_hlt_ps_key
uint32_t m_hlt_ps_key
Definition: TrigMonConfig_p1.h:54
TrigMonConfig::setEventID
void setEventID(uint32_t event, uint32_t lumi, uint32_t run, uint32_t sec, uint32_t nsec)
Definition: TrigMonConfig.cxx:85
TrigConfChain
Definition: TrigConfChain.h:32
TrigMonConfig::getLumi
uint32_t getLumi() const
Definition: TrigMonConfig.h:77
TrigMonConfigCnv_p1::m_chainCnv
T_AthenaPoolTPCnvStdVectorConst< std::vector< TrigConfChain >, std::vector< TrigConfChain_p1 >, TrigConfChainCnv_p1 > m_chainCnv
Definition: TrigMonConfigCnv_p1.h:44
TrigMonConfig::getRun
uint32_t getRun() const
Definition: TrigMonConfig.h:78
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMonConfig::getPairVal
std::vector< std::string > & getPairVal()
Definition: TrigMonConfig.h:74
TrigConfSeq
Definition: TrigConfSeq.h:29
TrigMonConfig_p1::m_nsec
uint32_t m_nsec
Definition: TrigMonConfig_p1.h:51
TrigMonConfigCnv_p1::persToTrans
virtual void persToTrans(const TrigMonConfig_p1 *persObj, TrigMonConfig *transObj, MsgStream &log) const override
Definition: TrigMonConfigCnv_p1.cxx:11
TrigMonConfig_p1::m_pair_val
std::vector< std::string > m_pair_val
Definition: TrigMonConfig_p1.h:64
TrigMonConfig_p1::m_lv1_ps_key
uint32_t m_lv1_ps_key
Definition: TrigMonConfig_p1.h:55
TrigMonConfig.h
TrigMonConfig
This class holds encoded ids for monitoring objects and helps to map these objects to trigger configu...
Definition: TrigMonConfig.h:29
TrigMonConfig_p1::m_lumi
uint32_t m_lumi
Definition: TrigMonConfig_p1.h:48
TrigMonConfig_p1::m_run
uint32_t m_run
Definition: TrigMonConfig_p1.h:49
TrigMonConfigCnv_p1::transToPers
virtual void transToPers(const TrigMonConfig *transObj, TrigMonConfig_p1 *persObj, MsgStream &log) const override
Definition: TrigMonConfigCnv_p1.cxx:42
TrigMonConfig::getEvent
uint32_t getEvent() const
Definition: TrigMonConfig.h:76
TrigMonConfig_p1
Definition: TrigMonConfig_p1.h:23
TrigMonConfig::getMasterKey
uint32_t getMasterKey() const
Definition: TrigMonConfig.h:82
TrigMonConfig_p1::m_var_id
std::vector< uint32_t > m_var_id
Definition: TrigMonConfig_p1.h:61
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMonConfig::getHLTPrescaleKey
uint32_t getHLTPrescaleKey() const
Definition: TrigMonConfig.h:83
TrigMonConfig::getVec
std::vector< T > & getVec()
TrigMonConfig::getNanoSec
uint32_t getNanoSec() const
Definition: TrigMonConfig.h:80
TrigMonConfig_p1::m_master_key
uint32_t m_master_key
Definition: TrigMonConfig_p1.h:53
TrigMonConfig::getVarId
std::vector< uint32_t > & getVarId()
Definition: TrigMonConfig.h:72