ATLAS Offline Software
Classes | Functions
Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h File Reference
#include "AthenaKernel/CLASS_DEF.h"
#include "GaudiKernel/MsgStream.h"
#include <vector>
Include dependency graph for Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h:

Go to the source code of this file.

Classes

class  TrigT2MbtsBits
 

Functions

std::string str (const TrigT2MbtsBits &trigT2MbtsBits)
 Helper function for printing the object. More...
 
MsgStream & operator<< (MsgStream &m, const TrigT2MbtsBits &trigT2MbtsBits)
 Helper operator for printing the object. More...
 

Function Documentation

◆ operator<<()

MsgStream& operator<< ( MsgStream &  m,
const TrigT2MbtsBits trigT2MbtsBits 
)

Helper operator for printing the object.

Definition at line 96 of file TrigT2MbtsBits.cxx.

96  {
97  return (m << str(trigT2MbtsBits));
98 }

◆ str()

std::string str ( const TrigT2MbtsBits trigT2MbtsBits)

Helper function for printing the object.

Definition at line 69 of file TrigT2MbtsBits.cxx.

69  {
70  std::stringstream sstream;
71  std::vector<float> counterValues;
72  std::vector<float>::const_iterator itr;
73  std::vector<float>::const_iterator itr_end;
74 
75  counterValues = trigT2MbtsBits.triggerEnergies();
76  itr = counterValues.begin();
77  itr_end = counterValues.end();
78  sstream << "m_triggerEnergies = {";
79  for(;itr != itr_end; ++itr) {
80  sstream << (*itr) << ",";
81  }
82  sstream << "}" << std::endl;
83 
84  counterValues = trigT2MbtsBits.triggerTimes();
85  itr = counterValues.begin();
86  itr_end = counterValues.end();
87  sstream << "m_triggerTimes = {";
88  for(;itr != itr_end; ++itr) {
89  sstream << (*itr) << ", ";
90  }
91  sstream << "}";
92 
93  return sstream.str();
94 }
str
std::string str(const TrigT2MbtsBits &trigT2MbtsBits)
Helper function for printing the object.
Definition: TrigT2MbtsBits.cxx:69
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigT2MbtsBits::triggerEnergies
const std::vector< float > & triggerEnergies(void) const
Return the trigger energies of each counter.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h:28
TrigT2MbtsBits::triggerTimes
const std::vector< float > & triggerTimes(void) const
Return the relative times of the triggers.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2MbtsBits.h:31