ATLAS Offline Software
Functions
TgcRdo.cxx File Reference
#include "MuonRDO/TgcRdo.h"
#include "AthenaKernel/errorcheck.h"
#include <bit>
#include <cstring>
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 83 of file TgcRdo.cxx.

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

◆ operator<<()

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

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

Definition at line 108 of file TgcRdo.cxx.

109 {
110  dump(sl, coll) << std::endl;
111  return sl;
112 }
TgcRdo::identify
uint16_t identify() const
Definition: TgcRdo.h:107
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
TgcRdo::bcId
uint16_t bcId() const
Definition: TgcRdo.h:146
dump
stream & dump(stream &sl, const TgcRdo &coll)
Definition: TgcRdo.cxx:83
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