ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigMonitoringEventTPCnv
src
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
5
#include "
TrigMonitoringEvent/TrigConfChain.h
"
6
7
// This class data and converter
8
#include "
TrigMonitoringEventTPCnv/TrigConfChain_p1.h
"
9
#include "
TrigMonitoringEventTPCnv/TrigConfChainCnv_p1.h
"
10
11
void
TrigConfChainCnv_p1::persToTrans
(
const
TrigConfChain_p1
* persObj,
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
44
void
TrigConfChainCnv_p1::transToPers
(
const
TrigConfChain
* transObj,
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigConfChainCnv_p1.h
TrigConfChain.h
TrigConfChain_p1.h
TrigConfChainCnv_p1::m_sigCnv
T_AthenaPoolTPCnvStdVectorConst< std::vector< TrigConfSig >, std::vector< TrigConfSig_p1 >, TrigConfSigCnv_p1 > m_sigCnv
Definition
TrigConfChainCnv_p1.h:43
TrigConfChainCnv_p1::transToPers
virtual void transToPers(const TrigConfChain *transObj, TrigConfChain_p1 *persObj, MsgStream &log) const override
Definition
TrigConfChainCnv_p1.cxx:44
TrigConfChainCnv_p1::persToTrans
virtual void persToTrans(const TrigConfChain_p1 *persObj, TrigConfChain *transObj, MsgStream &log) const override
Definition
TrigConfChainCnv_p1.cxx:11
TrigConfChain_p1
Definition
TrigConfChain_p1.h:22
TrigConfChain_p1::m_chain_name
std::string m_chain_name
Definition
TrigConfChain_p1.h:46
TrigConfChain_p1::m_lower_counter
uint16_t m_lower_counter
Definition
TrigConfChain_p1.h:51
TrigConfChain_p1::m_signature
std::vector< TrigConfSig_p1 > m_signature
Definition
TrigConfChain_p1.h:58
TrigConfChain_p1::m_chain_id
uint32_t m_chain_id
Definition
TrigConfChain_p1.h:48
TrigConfChain_p1::m_stream_name
std::vector< std::string > m_stream_name
Definition
TrigConfChain_p1.h:59
TrigConfChain_p1::m_lower_name
std::string m_lower_name
Definition
TrigConfChain_p1.h:47
TrigConfChain_p1::m_group
std::vector< std::string > m_group
Definition
TrigConfChain_p1.h:60
TrigConfChain_p1::m_chain_counter
uint16_t m_chain_counter
Definition
TrigConfChain_p1.h:50
TrigConfChain_p1::m_prescale
float m_prescale
Definition
TrigConfChain_p1.h:53
TrigConfChain_p1::m_level
uint8_t m_level
Definition
TrigConfChain_p1.h:52
TrigConfChain_p1::m_stream_prescale
std::vector< float > m_stream_prescale
Definition
TrigConfChain_p1.h:57
TrigConfChain_p1::m_lower_ids
std::vector< uint32_t > m_lower_ids
Definition
TrigConfChain_p1.h:56
TrigConfChain_p1::m_lower_id
uint32_t m_lower_id
Definition
TrigConfChain_p1.h:49
TrigConfChain_p1::m_pass_through
float m_pass_through
Definition
TrigConfChain_p1.h:54
TrigConfChain
Definition
TrigConfChain.h:33
TrigConfChain::getPrescale
float getPrescale() const
Definition
TrigConfChain.h:94
TrigConfChain::getLevelId
unsigned int getLevelId() const
Definition
TrigConfChain.h:91
TrigConfChain::getPassThrough
float getPassThrough() const
Definition
TrigConfChain.h:96
TrigConfChain::getStreamPS
const std::vector< float > & getStreamPS() const
Definition
TrigConfChain.h:99
TrigConfChain::getStream
const std::vector< std::string > & getStream() const
Definition
TrigConfChain.h:101
TrigConfChain::getLowerIds
const std::vector< uint32_t > & getLowerIds() const
Definition
TrigConfChain.h:111
TrigConfChain::getLowerName
const std::string & getLowerName() const
Definition
TrigConfChain.h:81
TrigConfChain::getGroup
const std::vector< std::string > & getGroup() const
Definition
TrigConfChain.h:102
TrigConfChain::addSignature
void addSignature(const TrigConfSig &obj)
Definition
TrigConfChain.h:65
TrigConfChain::getLowerCounter
uint16_t getLowerCounter() const
Definition
TrigConfChain.h:87
TrigConfChain::getChainName
const std::string & getChainName() const
Definition
TrigConfChain.h:80
TrigConfChain::addLowerChainId
void addLowerChainId(uint32_t lower_id)
Definition
TrigConfChain.h:74
TrigConfChain::getSignature
const std::vector< TrigConfSig > & getSignature() const
Definition
TrigConfChain.h:100
TrigConfChain::getCounter
uint16_t getCounter() const
Definition
TrigConfChain.h:84
TrigConfChain::getId
uint32_t getId() const
Definition
TrigConfChain.h:83
TrigConfChain::getLowerId
uint32_t getLowerId() const
Definition
TrigConfChain.h:88
TrigConfSig
Definition
TrigConfSig.h:27
Generated on
for ATLAS Offline Software by
1.17.0