ATLAS Offline Software
Loading...
Searching...
No Matches
MdtMezzanineCard.h File Reference
#include <GaudiKernel/MsgStream.h>
#include <CxxUtils/ArrayHelper.h>
#include <array>
#include <iostream>
#include <memory>
Include dependency graph for MdtMezzanineCard.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MdtMezzanineCard
 MdtMezzanineCard - Helper struct to represent the structure of a mezzanine card in a consistent way Each mezzanine card reads out in total 24 tubes of a chamber covering all tube layers of a chamber. More...
struct  MdtMezzanineCard::OfflineCh
 Helper struct to pipe the result from the tdc -> offline channel translation. More...

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.