ATLAS Offline Software
Loading...
Searching...
No Matches
MuonQualityWord.cxx File Reference
#include "muonEvent/MuonQualityWord.h"
#include "GaudiKernel/MsgStream.h"
Include dependency graph for MuonQualityWord.cxx:

Go to the source code of this file.

Functions

MsgStream & operator<< (MsgStream &sl, const MuonQualityWord &qword)
 MsgStream output.
std::ostream & operator<< (std::ostream &sl, const MuonQualityWord &qword)
 MsgStream output.

Function Documentation

◆ operator<<() [1/2]

MsgStream & operator<< ( MsgStream & sl,
const MuonQualityWord & qword )

MsgStream output.

Overload of << operator for MsgStream for debug output.

Definition at line 39 of file MuonQualityWord.cxx.

41{
42 sl <<"Muon quality word: "<<qword.qualityWord()<< " [";
43 for( int index =15 ; index >= 0 ; index--){
44 if (index==12 || index==8 || index==4) {
45 if( qword.qualityWord() & (1<<index) ) sl << " 1 ][" ;
46 else sl << " 0 ][" ;
47 } else if (index==0) {
48 if( qword.qualityWord() & (1<<index) ) sl << " 1 ]" ;
49 else sl << " 0 ]" ;
50 } else {
51 if( qword.qualityWord() & (1<<index) ) sl << " 1" ;
52 else sl << " 0" ;
53 }
54 }
55 sl << endmsg;
56 return sl;
57}
#define endmsg
uint16_t qualityWord() const
get back the quality word
Definition index.py:1

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & sl,
const MuonQualityWord & qword )

MsgStream output.

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

Definition at line 60 of file MuonQualityWord.cxx.

62{
63 sl <<"Muon quality word: "<<qword.qualityWord()<< " [";
64 for( int index =15 ; index >= 0 ; index--){
65 if (index==12 || index==8 || index==4) {
66 if( qword.qualityWord() & (1<<index) ) sl << " 1 ][" ;
67 else sl << " 0 ][" ;
68 } else if (index==0) {
69 if( qword.qualityWord() & (1<<index) ) sl << " 1 ]" ;
70 else sl << " 0 ]" ;
71 } else {
72 if( qword.qualityWord() & (1<<index) ) sl << " 1" ;
73 else sl << " 0" ;
74 }
75 }
76 sl << std::endl;
77 return sl;
78}