ATLAS Offline Software
Loading...
Searching...
No Matches
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.
MsgStream & operator<< (MsgStream &m, const TrigT2MbtsBits &trigT2MbtsBits)
 Helper operator for printing the object.

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}
const std::vector< float > & triggerTimes(void) const
Return the relative times of the triggers.
const std::vector< float > & triggerEnergies(void) const
Return the trigger energies of each counter.