ATLAS Offline Software
Functions
TgcL1Rdo.cxx File Reference
#include "MuonRDO/TgcL1Rdo.h"
#include "AthenaKernel/errorcheck.h"
#include <bit>
#include <string.h>
Include dependency graph for TgcL1Rdo.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ dump()

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

Definition at line 75 of file TgcL1Rdo.cxx.

76 {
77  sl << "TgcL1Rdo: "
78  << " version=" << coll.version()
79  << ", id=" << std::hex << coll.identify() << std::dec
80  << ", srodId=" << coll.srodId()
81  << ", subDetectorId=" << std::hex << coll.subDetectorId() << std::dec
82  << ", triggerType=" << (int16_t)coll.triggerType()
83  << ", bcId=" << coll.bcId()
84  << ", l1Id=" << coll.l1Id()
85  << ", errors=" << std::hex << std::bit_cast<unsigned>(coll.errors())
86  << ", srodStatus=" << std::bit_cast<unsigned>(coll.srodStatus())
87  << ", localStatus=" << std::bit_cast<unsigned>(coll.localStatus()) << std::dec
88  << ", orbit=" << coll.orbit()
89  << std::endl << "TgcL1RawData: [" << std::endl;
90  int iRaw = 0;
91  for (const TgcL1RawData* tgc : coll)
92  {
93  sl << ++iRaw
94  << ": " << *tgc << std::endl;
95  }
96  sl << "]";
97  return sl;
98 }

◆ operator<<()

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

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

Definition at line 100 of file TgcL1Rdo.cxx.

101 {
102  dump(sl, coll) << std::endl;
103  return sl;
104 }
TgcL1Rdo::triggerType
uint16_t triggerType() const
Definition: TgcL1Rdo.h:142
TgcL1Rdo::orbit
uint32_t orbit() const
Definition: TgcL1Rdo.h:206
TgcL1Rdo::l1Id
uint16_t l1Id() const
Definition: TgcL1Rdo.h:150
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
dump
stream & dump(stream &sl, const TgcL1Rdo &coll)
Definition: TgcL1Rdo.cxx:75
TgcL1Rdo::identify
uint16_t identify() const
Definition: TgcL1Rdo.h:107
TgcL1RawData
An unit object of TGC SROD output.
Definition: TgcL1RawData.h:21
TgcL1Rdo::version
uint16_t version() const
Definition: TgcL1Rdo.h:215
TgcL1Rdo::localStatus
const LocalStatus & localStatus() const
Definition: TgcL1Rdo.h:190
TgcL1Rdo::bcId
uint16_t bcId() const
Definition: TgcL1Rdo.h:146
TgcL1Rdo::subDetectorId
uint16_t subDetectorId() const
Definition: TgcL1Rdo.h:134
TgcL1Rdo::srodId
uint16_t srodId() const
Definition: TgcL1Rdo.h:138
TgcL1Rdo::srodStatus
const SRodStatus & srodStatus() const
Definition: TgcL1Rdo.h:174
TgcL1Rdo::errors
const Errors & errors() const
Definition: TgcL1Rdo.h:158