ATLAS Offline Software
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 
7 namespace ActsTrk {
8 
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
23  Acts::Logging::Level::VERBOSE // MSG::ALWAYS
24  };
25 
26  return actsLevelVector[static_cast<int>(lvl)];
27  }
28 
30  // All Acts log levels are available in Gaudi, no need for protections
31  static const std::array<MSG::Level, 6> athLevelVector{
33  MSG::DEBUG,
34  MSG::INFO,
35  MSG::WARNING,
36  MSG::ERROR,
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:54
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