ATLAS Offline Software
Loading...
Searching...
No Matches
MdtMezzanineCard.cxx File Reference
#include <MuonCablingData/MdtMezzanineCard.h>
#include <algorithm>
#include <iostream>
#include <set>
Include dependency graph for MdtMezzanineCard.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ostr, const MdtMezzanineCard &map)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & ostr,
const MdtMezzanineCard & map )

Definition at line 22 of file MdtMezzanineCard.cxx.

22 {
23 ostr << "MezzId: " << static_cast<int>(map.id()) << ", ";
24 ostr << "nTubeLayer: " << static_cast<int>(map.numTubeLayers()) << ", ";
25 ostr << "tdcToTubeMap: " << map.tdcToTubeMap() << ", ";
26 ostr << "tubeToTdcMap: " << std::endl;
27 for (uint8_t lay = map.numTubeLayers(); lay > 0; --lay) {
28 if (!(lay % 2))
29 ostr << " ";
30 for (uint8_t tube = 1; tube <= map.numTubesPerLayer(); ++tube) {
31 uint8_t tubeNum = map.tubeNumber(lay, tube);
32 ostr << std::setw(5)
33 << static_cast<int>(map.tubeToTdcMap()[tubeNum]);
34 }
35 ostr << std::endl;
36 }
37 return ostr;
38}
STL class.