ATLAS Offline Software
Classes | Functions
MdtMezzanineCard.h File Reference
#include <GaudiKernel/MsgStream.h>
#include <CxxUtils/ArrayHelper.h>
#include <array>
#include <iostream>
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 }
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
MdtMezzanineCard::tdcToTubeMap
const Mapping & tdcToTubeMap() const
Returns the underlying TDC -> Tube conversion map.
Definition: MdtMezzanineCard.h:80
MdtMezzanineCard::numTubesPerLayer
uint8_t numTubesPerLayer() const
returns the number of tubes per layer;
Definition: MdtMezzanineCard.h:68
MdtMezzanineCard::numTubeLayers
uint8_t numTubeLayers() const
returns the number of layers
Definition: MdtMezzanineCard.h:66
MdtMezzanineCard::id
uint8_t id() const
returns mezzanine database identifier
Definition: MdtMezzanineCard.h:64
MdtMezzanineCard::tubeNumber
uint8_t tubeNumber(uint8_t tubeLay, uint8_t tube) const
returns the tube number
Definition: MdtMezzanineCard.cxx:122
MdtMezzanineCard::tubeToTdcMap
const Mapping & tubeToTdcMap() const
Returns the underlying Tube -> Tdc conversion map.
Definition: MdtMezzanineCard.h:82
calibdata.tube
tube
Definition: calibdata.py:31