ATLAS Offline Software
Functions
TrigT2ZdcSignals.cxx File Reference
#include "TrigCaloEvent/TrigT2ZdcSignals.h"
#include <iostream>
Include dependency graph for TrigT2ZdcSignals.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

MsgStream& operator<< ( MsgStream &  m,
const TrigT2ZdcSignals trigT2ZdcSignals 
)

Helper operator for printing the object.

Definition at line 105 of file TrigT2ZdcSignals.cxx.

105  {
106  return (m << str(trigT2ZdcSignals));
107 }

◆ str()

std::string str ( const TrigT2ZdcSignals trigT2ZdcSignals)

Helper function for printing the object.

Definition at line 78 of file TrigT2ZdcSignals.cxx.

78  {
79  std::stringstream sstream;
80  std::vector<float> counterValues;
81  std::vector<float>::const_iterator itr;
82  std::vector<float>::const_iterator itr_end;
83 
84  counterValues = trigT2ZdcSignals.triggerEnergies();
85  itr = counterValues.begin();
86  itr_end = counterValues.end();
87  sstream << "m_triggerEnergies = {";
88  for(;itr != itr_end; ++itr) {
89  sstream << (*itr) << ",";
90  }
91  sstream << "}" << std::endl;
92 
93  counterValues = trigT2ZdcSignals.triggerTimes();
94  itr = counterValues.begin();
95  itr_end = counterValues.end();
96  sstream << "m_triggerTimes = {";
97  for(;itr != itr_end; ++itr) {
98  sstream << (*itr) << ", ";
99  }
100  sstream << "}";
101 
102  return sstream.str();
103 }
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
str
std::string str(const TrigT2ZdcSignals &trigT2ZdcSignals)
Helper function for printing the object.
Definition: TrigT2ZdcSignals.cxx:78
TrigT2ZdcSignals::triggerTimes
const std::vector< float > & triggerTimes(void) const
Return the relative times of the triggers.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:34
TrigT2ZdcSignals::triggerEnergies
const std::vector< float > & triggerEnergies(void) const
Return the trigger energies of each counter.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:31