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

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

◆ operator<<()

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

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

Definition at line 98 of file TgcL1Rdo.cxx.

99 {
100  dump(sl, coll) << std::endl;
101  return sl;
102 }
TgcL1Rdo::triggerType
uint16_t triggerType() const
Definition: TgcL1Rdo.h:142
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
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:73
TgcL1Rdo::identify
uint16_t identify() const
Definition: TgcL1Rdo.h:107
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
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