ATLAS Offline Software
Functions
TgcRdo.cxx File Reference
#include "MuonRDO/TgcRdo.h"
#include "AthenaKernel/errorcheck.h"
Include dependency graph for TgcRdo.cxx:

Go to the source code of this file.

Functions

template<class stream >
stream & dump (stream &sl, const TgcRdo &coll)
 
std::ostream & operator<< (std::ostream &sl, const TgcRdo &coll)
 Overload of << operator for std::ostream for debug output. More...
 

Function Documentation

◆ dump()

template<class stream >
stream& dump ( stream &  sl,
const TgcRdo coll 
)

Definition at line 81 of file TgcRdo.cxx.

82 {
83  sl << "TgcRdo: "
84  << " version=" << coll.version()
85  << ", id=" << std::hex << coll.identify() << std::dec
86  << ", rodId=" << coll.rodId()
87  << ", subDetectorId=" << std::hex << coll.subDetectorId() << std::dec
88  << ", triggerType=" << (int16_t)coll.triggerType()
89  << ", bcId=" << coll.bcId()
90  << ", l1Id=" << coll.l1Id()
91  << ", errors=" << std::hex << *((uint16_t*)&coll.errors())
92  << ", rodStatus=" << *((uint32_t*)&coll.rodStatus())
93  << ", localStatus=" << *((uint32_t*)&coll.localStatus()) << std::dec
94  << ", orbit=" << coll.orbit()
95  << std::endl << "TgcRawData: [" << std::endl;
96  int iRaw = 0;
97  for (const TgcRawData* rd : coll)
98  {
99  sl << ++iRaw
100  << ": " << *rd << std::endl;
101  }
102  sl << "]";
103  return sl;
104 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  sl,
const TgcRdo coll 
)

Overload of << operator for std::ostream for debug output.

Definition at line 106 of file TgcRdo.cxx.

107 {
108  dump(sl, coll) << std::endl;
109  return sl;
110 }
TgcRdo::identify
uint16_t identify() const
Definition: TgcRdo.h:107
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TgcRdo::localStatus
const LocalStatus & localStatus() const
Definition: TgcRdo.h:190
TgcRdo::rodStatus
const RodStatus & rodStatus() const
Definition: TgcRdo.h:174
TgcRdo::triggerType
uint16_t triggerType() const
Definition: TgcRdo.h:142
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
TgcRdo::l1Id
uint16_t l1Id() const
Definition: TgcRdo.h:150
TgcRdo::orbit
uint32_t orbit() const
Definition: TgcRdo.h:206
TgcRdo::subDetectorId
uint16_t subDetectorId() const
Definition: TgcRdo.h:134
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TgcRdo::bcId
uint16_t bcId() const
Definition: TgcRdo.h:146
dump
stream & dump(stream &sl, const TgcRdo &coll)
Definition: TgcRdo.cxx:81
TgcRdo::errors
const Errors & errors() const
Definition: TgcRdo.h:158
TgcRdo::version
uint16_t version() const
Definition: TgcRdo.h:215
TgcRawData
An unit object of TGC ROD output.
Definition: TgcRawData.h:23
TgcRdo::rodId
uint16_t rodId() const
Definition: TgcRdo.h:138