Project
Loading...
Searching...
No Matches
RUInfo.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
12// \file RUInfo.cxx
13// \brief Transient structures for ITS and MFT HW -> SW mapping
14
16#include "Framework/Logger.h"
17
18using namespace o2::itsmft;
19
20std::string ChipOnRUInfo::asString() const
21{
22 return fmt::format("ChonRu:{:3d} ModSW:{:2d} ChOnModSW:{:2d} CabSW:{:3d}| ChOnCab:{:1d} | CabHW:{:2d} | CabPos:{:2d} | ModHW:{:2d} | ChOnModHW:{:2d}",
23 int(id), int(moduleSW), int(chipOnModuleSW), int(cableSW), int(chipOnCable), int(cableHW), int(cableHWPos), int(moduleHW), int(chipOnModuleHW));
24}
25
27{
28 LOG(info) << asString();
29}
30
31std::string ChipInfo::asString() const
32{
33 return fmt::format("CH{:5d} RUTyp:{:d} RU:{:3d} | {}", int(id), int(ruType), int(ru), chOnRU ? chOnRU->asString() : std::string{});
34}
35
36void ChipInfo::print() const
37{
38 LOGP(info, fmt::runtime(asString()));
39}
void print() const
Definition RUInfo.cxx:36
const ChipOnRUInfo * chOnRU
Definition RUInfo.h:59
std::uint16_t ru
Definition RUInfo.h:63
std::string asString() const
Definition RUInfo.cxx:31
std::uint16_t ruType
Definition RUInfo.h:64
std::uint8_t moduleSW
Definition RUInfo.h:43
std::uint8_t cableHW
Definition RUInfo.h:48
std::uint8_t chipOnCable
Definition RUInfo.h:50
std::uint8_t chipOnModuleHW
Definition RUInfo.h:46
std::uint8_t cableSW
Definition RUInfo.h:47
std::uint8_t chipOnModuleSW
Definition RUInfo.h:45
std::string asString() const
Definition RUInfo.cxx:20
std::uint8_t moduleHW
Definition RUInfo.h:44
std::uint8_t cableHWPos
Definition RUInfo.h:49
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"