ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
LoggerUtils.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
ActsTrk::athLevelVector
MSG::Level athLevelVector(Acts::Logging::Level lvl)
Definition
LoggerUtils.cxx:29
ActsTrk::actsLevelVector
Acts::Logging::Level actsLevelVector(MSG::Level lvl)
Definition
LoggerUtils.cxx:9
Generated on
for ATLAS Offline Software by
1.17.0