ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7namespace 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}
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
MSG::Level athLevelVector(Acts::Logging::Level lvl)
Acts::Logging::Level actsLevelVector(MSG::Level lvl)