ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT2MbtsBits.h File Reference
#include "AthenaKernel/CLASS_DEF.h"
#include <vector>
#include <string>
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 77 of file TrigT2MbtsBits.cxx.

77 {
78 return (m << str(trigT2MbtsBits));
79}

◆ str()

std::string str ( const TrigT2MbtsBits & trigT2MbtsBits)

Helper function for printing the object.

Definition at line 50 of file TrigT2MbtsBits.cxx.

50 {
51 std::stringstream sstream;
52 std::vector<float> counterValues;
53 std::vector<float>::const_iterator itr;
54 std::vector<float>::const_iterator itr_end;
55
56 counterValues = trigT2MbtsBits.triggerEnergies();
57 itr = counterValues.begin();
58 itr_end = counterValues.end();
59 sstream << "m_triggerEnergies = {";
60 for(;itr != itr_end; ++itr) {
61 sstream << (*itr) << ",";
62 }
63 sstream << "}\n";
64
65 counterValues = trigT2MbtsBits.triggerTimes();
66 itr = counterValues.begin();
67 itr_end = counterValues.end();
68 sstream << "m_triggerTimes = {";
69 for(;itr != itr_end; ++itr) {
70 sstream << (*itr) << ", ";
71 }
72 sstream << "}";
73
74 return sstream.str();
75}
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.