ATLAS Offline Software
HanRuntimeConfigSingleton.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef dqiHanRuntimeConfigSingleton_h
6 #define dqiHanRuntimeConfigSingleton_h
7 
8 #include <string>
9 #include <cstdint>
10 
12 
13 namespace dqi {
15  {
16  public:
18 
20  void setPath( const std::string& path ) { m_path = path; parsePathRunNumber(); }
21  constexpr const std::string& getPath() const { return m_path; }
22  constexpr bool pathIsRunDirectory() const { return m_runNumber > 0; }
23  constexpr uint32_t getPathRunNumber() const { return m_runNumber; }
24 
25  private:
32 
34  void parsePathRunNumber();
35 
36  std::string m_path;
38  };
39 }
40 
41 #endif //dqiHanRuntimeConfigSingleton_h
dqi::HanRuntimeConfigSingleton::pathIsRunDirectory
constexpr bool pathIsRunDirectory() const
Definition: HanRuntimeConfigSingleton.h:22
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
dqi::HanRuntimeConfigSingleton::~HanRuntimeConfigSingleton
~HanRuntimeConfigSingleton()=default
dqi::HanRuntimeConfigSingleton
Definition: HanRuntimeConfigSingleton.h:15
dqi::HanRuntimeConfigSingleton::operator=
HanRuntimeConfigSingleton & operator=(const HanRuntimeConfigSingleton &)=delete
dqi::HanRuntimeConfigSingleton::setPath
ATLAS_NOT_THREAD_SAFE void setPath(const std::string &path)
Definition: HanRuntimeConfigSingleton.h:20
dqi::HanRuntimeConfigSingleton::HanRuntimeConfigSingleton
HanRuntimeConfigSingleton(const HanRuntimeConfigSingleton &)=delete
dqi::HanRuntimeConfigSingleton::HanRuntimeConfigSingleton
HanRuntimeConfigSingleton()=default
dqi::HanRuntimeConfigSingleton::m_runNumber
uint32_t m_runNumber
Definition: HanRuntimeConfigSingleton.h:37
dqi::HanRuntimeConfigSingleton::getPath
constexpr const std::string & getPath() const
Definition: HanRuntimeConfigSingleton.h:21
dqi::HanRuntimeConfigSingleton::getInstance
static HanRuntimeConfigSingleton & getInstance()
Definition: HanRuntimeConfigSingleton.cxx:15
dqi::HanRuntimeConfigSingleton::operator=
HanRuntimeConfigSingleton & operator=(HanRuntimeConfigSingleton &&)=delete
dqi::HanRuntimeConfigSingleton::m_path
std::string m_path
Definition: HanRuntimeConfigSingleton.h:36
dqi::HanRuntimeConfigSingleton::getPathRunNumber
constexpr uint32_t getPathRunNumber() const
Definition: HanRuntimeConfigSingleton.h:23
dqi::HanRuntimeConfigSingleton::parsePathRunNumber
ATLAS_NOT_THREAD_SAFE void parsePathRunNumber()
Definition: HanRuntimeConfigSingleton.cxx:27
checker_macros.h
Define macros for attributes used to control the static checker.
dqi
Definition: CompositeAlgorithm.h:16
dqi::HanRuntimeConfigSingleton::HanRuntimeConfigSingleton
HanRuntimeConfigSingleton(HanRuntimeConfigSingleton &&)=delete