#include <TrigHolderStructure.h>
Definition at line 21 of file TrigHolderStructure.h.
◆ IndexToHolderMap
◆ LabelToSubIndexMap
◆ SubIndexToLabelMap
◆ TrigHolderStructure()
| HLT::TrigHolderStructure::TrigHolderStructure |
( |
| ) |
|
◆ getAllHolders()
template<typename HolderType = BaseHolder>
| std::vector< HolderType * > HLT::TrigHolderStructure::getAllHolders |
( |
| ) |
const |
|
inline |
Definition at line 40 of file TrigHolderStructure.h.
40 {
41 std::vector<HolderType*>
result;
43 for(auto& index_holder : clid_indexmap.second){
45 }
46 }
48 }
T * getCastHolder(BaseHolder *holder) const
std::map< class_id_type, IndexToHolderMap > m_holderByClidAndIndex
◆ getBaseHolder()
Definition at line 16 of file TrigHolderStructure.cxx.
16 {
18 ATH_MSG_DEBUG(
"requested holder with invalid sub_type_index");
19 return 0;
20 }
23 return 0;
24 }
25 auto sti_holder_map = allsti_it->second;
26 auto holder_it = sti_holder_map.find(sti);
27 if(holder_it == sti_holder_map.end()){
28 return 0;
29 }
30 return holder_it->second.get();
31}
static const index_type invalid_sub_index
◆ getCastHolder()
template<typename T>
| T * HLT::TrigHolderStructure::getCastHolder |
( |
BaseHolder * | holder | ) |
const |
|
inlineprivate |
Definition at line 101 of file TrigHolderStructure.h.
101 {
102 if(!holder){
103 return 0;
104 }
105 auto cast_holder =
dynamic_cast<T*
>(holder);
106 if(!cast_holder){
108 }
109 return cast_holder;
110 }
◆ getHolder()
template<typename HolderType = BaseHolder>
| HolderType * HLT::TrigHolderStructure::getHolder |
( |
class_id_type | clid, |
|
|
const std::variant< sub_index_type, std::string > & | stiOrLabel ) const |
|
inline |
Definition at line 30 of file TrigHolderStructure.h.
30 {
32 }
BaseHolder * getBaseHolder(class_id_type clid, sub_index_type sti) const
sub_index_type getSubTypeIndex(class_id_type clid, const index_or_label_type &stiOrLabel) const
◆ getHolderForFeature()
template<typename HolderType = BaseHolder>
◆ getHoldersOfClid()
template<typename HolderType = BaseHolder>
| std::vector< HolderType * > HLT::TrigHolderStructure::getHoldersOfClid |
( |
class_id_type | clid | ) |
const |
|
inline |
Definition at line 51 of file TrigHolderStructure.h.
51 {
52 std::vector<HolderType*>
result;
55
56 for(auto& index_holder : lookup_it->second){
58 }
60 }
◆ getLabel()
Definition at line 78 of file TrigHolderStructure.h.
78 {
79
80 if (stiOrLabel.index() == 1){
81 return std::get<std::string>(stiOrLabel);
82 }
83
84 std::string invalid_label = "inavalid_label";
85
88
89 auto it = lookup_it->second.find(std::get<sub_index_type>(stiOrLabel));
90 if(it==lookup_it->second.end()) return invalid_label;
91
93 }
std::map< class_id_type, SubIndexToLabelMap > m_lookupLabels
◆ getSubTypeIndex()
Definition at line 63 of file TrigHolderStructure.h.
63 {
64
65 if (stiOrLabel.index() == 0){
66 return std::get<sub_index_type>(stiOrLabel);
67 }
68
71
72 auto it = lookup_it->second.find(std::get<std::string>(stiOrLabel));
74
76 }
std::map< class_id_type, LabelToSubIndexMap > m_lookupSubIndex
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ msg() [1/2]
| MsgStream & asg::AsgMessaging::msg |
( |
| ) |
const |
|
inherited |
The standard message stream.
- Returns
- A reference to the default message stream of this object.
Definition at line 49 of file AsgMessaging.cxx.
49 {
50#ifndef XAOD_STANDALONE
51 return ::AthMessaging::msg();
52#else
53 return m_msg;
54#endif
55 }
◆ msg() [2/2]
| MsgStream & asg::AsgMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inherited |
The standard message stream.
- Parameters
-
| lvl | The message level to set the stream to |
- Returns
- A reference to the default message stream, set to level "lvl"
Definition at line 57 of file AsgMessaging.cxx.
57 {
58#ifndef XAOD_STANDALONE
59 return ::AthMessaging::msg( lvl );
60#else
61 m_msg << lvl;
62 return m_msg;
63#endif
64 }
◆ msgLvl()
| bool asg::AsgMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inherited |
Test the output level of the object.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
-
true If messages at level "lvl" will be printed
Definition at line 41 of file AsgMessaging.cxx.
41 {
42#ifndef XAOD_STANDALONE
43 return ::AthMessaging::msgLvl( lvl );
44#else
45 return m_msg.msgLevel( lvl );
46#endif
47 }
◆ registerHolder()
| bool HLT::TrigHolderStructure::registerHolder |
( |
const std::shared_ptr< BaseHolder > & | holder | ) |
|
Definition at line 34 of file TrigHolderStructure.cxx.
34 {
35 auto clid = holder->typeClid();
36 auto subtypeindex = holder->subTypeIndex();
37 const auto &
label = holder->label();
38
40 ATH_MSG_WARNING(
"we already have a holder like this! clid:" << clid <<
" subtypeIndex: " << subtypeindex <<
" label: " <<
label);
41 return false;
42 }
43
47
48 return true;
49}
#define ATH_MSG_WARNING(x)
HolderType * getHolder(class_id_type clid, const std::variant< sub_index_type, std::string > &stiOrLabel) const
std::string label(const std::string &format, int i)
◆ reset()
| void HLT::TrigHolderStructure::reset |
( |
| ) |
|
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_holderByClidAndIndex
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lookupLabels
◆ m_lookupSubIndex
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
The documentation for this class was generated from the following files: