ATLAS Offline Software
Tracking
Acts
ActsInterop
src
LoggerUtils.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ActsInterop/LoggerUtils.h
"
6
7
namespace
ActsTrk
{
8
9
Acts::Logging::Level
actsLevelVector
(
MSG::Level
lvl) {
10
// MSG::NIL and MSG::ALWAYS are not available in Acts. Need to protect against these
11
// For MSG::NIL we can return a Acts::Logging::Level::FATAL;
12
// For MSG::ALWAYS we can return a Acts::Logging::Level::VERBOSE
13
14
// Gaudi definitions are +1 w.r.t. Acts definitions
15
static
const
std::array<Acts::Logging::Level, 8>
actsLevelVector
{
16
Acts::Logging::Level::FATAL
,
// MSG::NIL
17
Acts::Logging::Level::VERBOSE
,
18
Acts::Logging::Level::DEBUG
,
19
Acts::Logging::Level::INFO
,
20
Acts::Logging::Level::WARNING
,
21
Acts::Logging::Level::ERROR
,
22
Acts::Logging::Level::FATAL
,
23
Acts::Logging::Level::VERBOSE
// MSG::ALWAYS
24
};
25
26
return
actsLevelVector
[
static_cast<
int
>
(lvl)];
27
}
28
29
MSG::Level
athLevelVector
(
Acts::Logging::Level
lvl) {
30
// All Acts log levels are available in Gaudi, no need for protections
31
static
const
std::array<MSG::Level, 6>
athLevelVector
{
32
MSG::VERBOSE
,
33
MSG::DEBUG
,
34
MSG::INFO,
35
MSG::WARNING,
36
MSG::ERROR,
37
MSG::FATAL
38
};
39
return
athLevelVector
[
static_cast<
int
>
(lvl)];
40
}
41
42
}
python.Constants.FATAL
int FATAL
Definition:
Control/AthenaCommon/python/Constants.py:19
python.Constants.ERROR
int ERROR
Definition:
Control/AthenaCommon/python/Constants.py:18
ActsTrk::actsLevelVector
Acts::Logging::Level actsLevelVector(MSG::Level lvl)
Definition:
LoggerUtils.cxx:9
TrigConf::MSGTC::Level
Level
Definition:
Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
python.Constants.WARNING
int WARNING
Definition:
Control/AthenaCommon/python/Constants.py:17
python.Constants.INFO
int INFO
Definition:
Control/AthenaCommon/python/Constants.py:16
DEBUG
#define DEBUG
Definition:
page_access.h:11
LoggerUtils.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition:
MuonDetectorBuilderTool.cxx:49
python.Constants.VERBOSE
int VERBOSE
Definition:
Control/AthenaCommon/python/Constants.py:14
ActsTrk::athLevelVector
MSG::Level athLevelVector(Acts::Logging::Level lvl)
Definition:
LoggerUtils.cxx:29
Generated on Thu Nov 7 2024 21:20:13 for ATLAS Offline Software by
1.8.18