ATLAS Offline Software
Functions
TriggerInfo.cxx File Reference
#include <iomanip>
#include "EventInfo/TriggerInfo.h"
Include dependency graph for TriggerInfo.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const std::vector< TriggerInfo::number_type > &rhs)
 
std::ostream & operator<< (std::ostream &os, const std::vector< TriggerInfo::StreamTag > &rhs)
 
std::ostream & operator<< (std::ostream &os, const TriggerInfo &rhs)
 

Detailed Description

Author
RD Schaffer R.D.S.nosp@m.chaf.nosp@m.fer@c.nosp@m.ern..nosp@m.ch
Id
TriggerInfo.cxx,v 1.8 2007-12-03 15:23:56 efeld Exp

Definition in file TriggerInfo.cxx.

Function Documentation

◆ operator<<() [1/3]

std::ostream& operator<< ( std::ostream &  os,
const std::vector< TriggerInfo::number_type > &  rhs 
)

Definition at line 217 of file TriggerInfo.cxx.

218  {
219  // switch to hex format
220  os << std::hex << std::setfill('0');
221 
222  if (rhs.size() > 0) os << " 0x" << std::setw(8) << rhs[0];
223  for (size_t i(1); i < rhs.size(); ++i)
224  os << ", 0x" << std::setw(8) << rhs[i];
225 
226  // switch back to normal format
227  os << std::dec << std::setfill(' ');
228 
229  return os;
230 }

◆ operator<<() [2/3]

std::ostream& operator<< ( std::ostream &  os,
const std::vector< TriggerInfo::StreamTag > &  rhs 
)

Definition at line 232 of file TriggerInfo.cxx.

233  {
234  if (rhs.size() > 0) os << "(" << rhs[0].name() << "," << rhs[0].type() << "," << rhs[0].obeysLumiblock() << ")";
235  for (size_t i(1); i < rhs.size(); ++i)
236  os << ",(" << rhs[i].name() << "," << rhs[i].type() << "," << rhs[i].obeysLumiblock() << ")";
237 
238  return os;
239 }

◆ operator<<() [3/3]

std::ostream& operator<< ( std::ostream &  os,
const TriggerInfo rhs 
)

Definition at line 241 of file TriggerInfo.cxx.

242  {
243  os << "\n [S,L1ID,L1TT] = ["
244  << rhs.m_statusElement
245  << "," << rhs.m_extendedLevel1ID
246  << "," << rhs.m_level1TriggerType
247  << "]"
248  << "\n L1: [" << rhs.m_level1TriggerInfo << "]"
249  << "\n L2: [" << rhs.m_level2TriggerInfo << "]"
250  << "\n EF: [" << rhs.m_eventFilterInfo << "]"
251  << "\n ST: [" << rhs.m_streamTags << "]";
252 
253  return os;
254 }
TriggerInfo::m_level1TriggerType
number_type m_level1TriggerType
Definition: TriggerInfo.h:193
TriggerInfo::m_eventFilterInfo
std::vector< number_type > m_eventFilterInfo
Definition: TriggerInfo.h:196
TriggerInfo::m_extendedLevel1ID
number_type m_extendedLevel1ID
Definition: TriggerInfo.h:192
lumiFormat.i
int i
Definition: lumiFormat.py:85
TriggerInfo::m_statusElement
number_type m_statusElement
Definition: TriggerInfo.h:191
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TriggerInfo::m_level1TriggerInfo
std::vector< number_type > m_level1TriggerInfo
Definition: TriggerInfo.h:194
TriggerInfo::m_level2TriggerInfo
std::vector< number_type > m_level2TriggerInfo
Definition: TriggerInfo.h:195
TriggerInfo::m_streamTags
std::vector< StreamTag > m_streamTags
Definition: TriggerInfo.h:197