Project
Loading...
Searching...
No Matches
ROBoardConfig.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
18
19#include <iostream>
20#include "fmt/format.h"
21
22namespace o2
23{
24namespace mid
25{
26std::ostream& operator<<(std::ostream& os, const ROBoardConfig& cfg)
27{
29 os << fmt::format("{:02x} {:08x}", cfg.boardId, cfg.configWord);
30 for (int ich = 0; ich < 4; ++ich) {
31 os << fmt::format(" {:04x}{:04x}", cfg.masksBP[ich], cfg.masksNBP[ich]);
32 }
33 return os;
34}
35
36} // namespace mid
37} // namespace o2
Configuration for the readout local board.
std::ostream & operator<<(std::ostream &os, const Cluster &data)
Definition Cluster.cxx:27
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::array< uint16_t, 4 > masksNBP
std::array< uint16_t, 4 > masksBP