5#ifndef MUONCABLINGDATA_MDTMEZZANINECARD_H
6#define MUONCABLINGDATA_MDTMEZZANINECARD_H
8#include <GaudiKernel/MsgStream.h>
37 static constexpr uint8_t
NOTSET = 250;
53 uint8_t
tdcChannel(uint8_t tubeLay, uint8_t tube, MsgStream&
msg)
const;
57 uint8_t
tubeNumber(uint8_t tubeLay, uint8_t tube)
const;
constexpr std::array< T, N > make_array(const T &def_val)
Helper function to initialize in-place arrays with non-zero values.
std::ostream & operator<<(std::ostream &ostr, const MdtMezzanineCard &map)
MdtMezzanineCard - Helper struct to represent the structure of a mezzanine card in a consistent way E...
static constexpr uint8_t NOTSET
bool checkConsistency(MsgStream &msg) const
checks whether the tdc mapping is complete.
OfflineCh offlineTube(uint8_t tdc, MsgStream &msg) const
uint8_t m_mezzId
Mezzanine database identifier.
Mapping m_tubesToTdc
Mapping of the mezzanine tube number to the tdc channel.
uint8_t numTubesPerLayer() const
returns the number of tubes per layer;
const Mapping & tdcToTubeMap() const
Returns the underlying TDC -> Tube conversion map.
uint8_t id() const
returns mezzanine database identifier
Mapping m_tdcToTubes
Mapping of the tdc channels to the mezzanine tube number.
uint8_t m_nlay
Number of tube layers.
uint8_t tdcChannel(uint8_t tubeLay, uint8_t tube, MsgStream &msg) const
returns the tdc channel number
const Mapping & tubeToTdcMap() const
Returns the underlying Tube -> Tdc conversion map.
std::shared_ptr< const MdtMezzanineCard > MezzCardPtr
std::array< uint8_t, 24 > Mapping
uint8_t numTubeLayers() const
returns the number of layers
MdtMezzanineCard(const Mapping &tdcToTubeMap, uint8_t num_layers, uint8_t mezz_id)
Standard constructor of the mezzanine card.
uint8_t tubeNumber(uint8_t tubeLay, uint8_t tube) const
returns the tube number
uint8_t m_nTubes
Number of tubes per layer.
Helper struct to pipe the result from the tdc -> offline channel translation.