Skip to content
Snippets Groups Projects
Commit 4b293915 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'clang.TrigOutputHandling-20190316' into 'master'

TrigOutputHandling: Fix compilation to clang.

See merge request atlas/athena!21972
parents ea1b2c49 6bf50f31
No related branches found
No related tags found
Loading
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "TrigOutputHandling/HLTResultMTMaker.h" #include "TrigOutputHandling/HLTResultMTMaker.h"
#include "AthenaMonitoring/Monitored.h" #include "AthenaMonitoring/Monitored.h"
#include "GaudiKernel/IJobOptionsSvc.h" #include "GaudiKernel/IJobOptionsSvc.h"
#include <sstream>
// Local helpers // Local helpers
namespace { namespace {
...@@ -32,15 +33,17 @@ namespace { ...@@ -32,15 +33,17 @@ namespace {
return removedIds; return removedIds;
} }
/// Print helper for set<uint32_t> /// Print helper for set<uint32_t>
std::ostream& operator<<(std::ostream& str, const std::set<uint32_t>& set) { std::string format(const std::set<uint32_t>& set) {
std::ostringstream ss;
for (const uint32_t id : set) for (const uint32_t id : set)
str << "0x" << std::hex << std::setfill('0') << std::setw(8) << id << std::dec << " "; ss << "0x" << std::hex << std::setfill('0') << std::setw(8) << id << std::dec << " ";
return str; return ss.str();
} }
/// Print helper for set<eformat::SubDetector> /// Print helper for set<eformat::SubDetector>
std::ostream& operator<<(std::ostream& str, const std::set<eformat::SubDetector>& set) { std::string format(const std::set<eformat::SubDetector>& set) {
for (const eformat::SubDetector id : set) str << eformat::helper::SubDetectorDictionary.string(id) << " "; std::ostringstream ss;
return str; for (const eformat::SubDetector id : set) ss << eformat::helper::SubDetectorDictionary.string(id) << " ";
return ss.str();
} }
} }
...@@ -161,14 +164,14 @@ void HLTResultMTMaker::validatePEBInfo(HLT::HLTResultMT& hltResult) const { ...@@ -161,14 +164,14 @@ void HLTResultMTMaker::validatePEBInfo(HLT::HLTResultMT& hltResult) const {
for (eformat::helper::StreamTag& st : hltResult.getStreamTagsNonConst()) { for (eformat::helper::StreamTag& st : hltResult.getStreamTagsNonConst()) {
std::set<uint32_t> removedROBs = removeDisabled(st.robs,m_enabledROBs); std::set<uint32_t> removedROBs = removeDisabled(st.robs,m_enabledROBs);
if (!removedROBs.empty()) if (!removedROBs.empty())
ATH_MSG_WARNING("StreamTag " << st.type << "_" << st.name << " requested disabled ROBs: " << removedROBs ATH_MSG_WARNING("StreamTag " << st.type << "_" << st.name << " requested disabled ROBs: " << format(removedROBs)
<< " - these ROBs were removed from the StreamTag by " << name()); << " - these ROBs were removed from the StreamTag by " << name());
else else
ATH_MSG_VERBOSE("No disabled ROBs were requested by StreamTag " << st.type << "_" << st.name); ATH_MSG_VERBOSE("No disabled ROBs were requested by StreamTag " << st.type << "_" << st.name);
std::set<eformat::SubDetector> removedSubDets = removeDisabled(st.dets,m_enabledSubDets); std::set<eformat::SubDetector> removedSubDets = removeDisabled(st.dets,m_enabledSubDets);
if (!removedSubDets.empty()) if (!removedSubDets.empty())
ATH_MSG_WARNING("StreamTag " << st.type << "_" << st.name << " requested disabled SubDets: " << removedSubDets ATH_MSG_WARNING("StreamTag " << st.type << "_" << st.name << " requested disabled SubDets: " << format(removedSubDets)
<< " - these SubDets were removed from the StreamTag by " << name()); << " - these SubDets were removed from the StreamTag by " << name());
else else
ATH_MSG_VERBOSE("No disabled SubDets were requested by StreamTag " << st.type << "_" << st.name); ATH_MSG_VERBOSE("No disabled SubDets were requested by StreamTag " << st.type << "_" << st.name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment