ATLAS Offline Software
Functions
MdtCsm.cxx File Reference
#include "MuonRDO/MdtCsm.h"
#include "GaudiKernel/MsgStream.h"
Include dependency graph for MdtCsm.cxx:

Go to the source code of this file.

Functions

MsgStream & operator<< (MsgStream &sl, const MdtCsm &coll)
 Overload of << operator for MsgStream for debug output. More...
 
std::ostream & operator<< (std::ostream &sl, const MdtCsm &coll)
 Overload of << operator for std::ostream for debug output. More...
 

Function Documentation

◆ operator<<() [1/2]

MsgStream& operator<< ( MsgStream &  sl,
const MdtCsm coll 
)

Overload of << operator for MsgStream for debug output.

Definition at line 49 of file MdtCsm.cxx.

50 {
51  sl << "MdtCsm: "
52  << "identify()="<< coll.identify().getString()
53  << ", SubDetId()="<< coll.SubDetId()
54  << ", MrodId()="<< coll.MrodId()
55  << ", CsmId()="<< coll.CsmId()<<" MdtAmtHit=[";
57  MdtCsm::const_iterator itEnd = coll.end();
58  for (;it!=itEnd;++it) sl<< (**it)<<", ";
59  sl <<" ]"<<std::endl;
60  return sl;
61 }

◆ operator<<() [2/2]

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

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

Definition at line 64 of file MdtCsm.cxx.

65 {
66  sl << "MdtCsm: "
67  << "identify()="<< coll.identify().getString()
68  << ", SubDetId()="<< coll.SubDetId()
69  << ", MrodId()="<< coll.MrodId()
70  << ", CsmId()="<< coll.CsmId()<<" MdtAmtHit=[";
72  MdtCsm::const_iterator itEnd = coll.end();
73  for (;it!=itEnd;++it) sl<< (**it)<<", ";
74  sl <<" ]"<<std::endl;
75  return sl;
76 }
MdtCsm::CsmId
uint16_t CsmId() const
Returns the CSM online id (online identifier inside a MROD)
Definition: MdtCsm.h:61
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
skel.it
it
Definition: skel.GENtoEVGEN.py:396
MdtCsm::identify
Identifier identify() const
Returns the CSM offline identifier (chamber offline id)
Definition: MdtCsm.h:51
MdtCsm::SubDetId
uint16_t SubDetId() const
Returns the sub-detector Id.
Definition: MdtCsm.h:57
MdtCsm::MrodId
uint16_t MrodId() const
Returns the MROD id from the CSM header.
Definition: MdtCsm.h:59
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Identifier::getString
std::string getString() const
Provide a string form of the identifier - hexadecimal.
Definition: Identifier.cxx:25
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.