ATLAS Offline Software
Loading...
Searching...
No Matches
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.

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}
An unit object of TGC ROD output.
Definition TgcRawData.h:23
const RodStatus & rodStatus() const
Definition TgcRdo.h:174
uint16_t version() const
Definition TgcRdo.h:215
uint16_t triggerType() const
Definition TgcRdo.h:142
uint16_t rodId() const
Definition TgcRdo.h:138
uint16_t l1Id() const
Definition TgcRdo.h:150
uint32_t orbit() const
Definition TgcRdo.h:206
uint16_t subDetectorId() const
Definition TgcRdo.h:134
const Errors & errors() const
Definition TgcRdo.h:158
const LocalStatus & localStatus() const
Definition TgcRdo.h:190
uint16_t identify() const
Definition TgcRdo.h:107
uint16_t bcId() const
Definition TgcRdo.h:146
setScaleOne setStatusOne setSaturated int16_t

◆ 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}
-event-from-file