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
15
#include "
ITSMFTReconstruction/RUInfo.h
"
16
#include "
Framework/Logger.h
"
17
18
using namespace
o2::itsmft
;
19
20
std::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
26
void
ChipOnRUInfo::print
()
const
27
{
28
LOG
(info) <<
asString
();
29
}
30
31
std::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
36
void
ChipInfo::print
()
const
37
{
38
LOGP(info, fmt::runtime(
asString
()));
39
}
Logger.h
RUInfo.h
o2::itsmft
Definition
SimTraits.h:123
o2::itsmft::ChipInfo::print
void print() const
Definition
RUInfo.cxx:36
o2::itsmft::ChipInfo::chOnRU
const ChipOnRUInfo * chOnRU
Definition
RUInfo.h:59
o2::itsmft::ChipInfo::ru
std::uint16_t ru
Definition
RUInfo.h:63
o2::itsmft::ChipInfo::asString
std::string asString() const
Definition
RUInfo.cxx:31
o2::itsmft::ChipInfo::ruType
std::uint16_t ruType
Definition
RUInfo.h:64
o2::itsmft::ChipOnRUInfo::moduleSW
std::uint8_t moduleSW
Definition
RUInfo.h:43
o2::itsmft::ChipOnRUInfo::cableHW
std::uint8_t cableHW
Definition
RUInfo.h:48
o2::itsmft::ChipOnRUInfo::chipOnCable
std::uint8_t chipOnCable
Definition
RUInfo.h:50
o2::itsmft::ChipOnRUInfo::chipOnModuleHW
std::uint8_t chipOnModuleHW
Definition
RUInfo.h:46
o2::itsmft::ChipOnRUInfo::cableSW
std::uint8_t cableSW
Definition
RUInfo.h:47
o2::itsmft::ChipOnRUInfo::chipOnModuleSW
std::uint8_t chipOnModuleSW
Definition
RUInfo.h:45
o2::itsmft::ChipOnRUInfo::asString
std::string asString() const
Definition
RUInfo.cxx:20
o2::itsmft::ChipOnRUInfo::print
void print() const
Definition
RUInfo.cxx:26
o2::itsmft::ChipOnRUInfo::moduleHW
std::uint8_t moduleHW
Definition
RUInfo.h:44
o2::itsmft::ChipOnRUInfo::cableHWPos
std::uint8_t cableHWPos
Definition
RUInfo.h:49
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
Detectors
ITSMFT
common
reconstruction
src
RUInfo.cxx
Generated on Tue Feb 25 2025 23:16:19 for Project by
1.9.8