ATLAS Offline Software
ConditionsSingleton.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef __CONDITIONSSINGLETON_H
6 #define __CONDITIONSSINGLETON_H
7 
8 #include <string>
9 #include <vector>
10 #include <map>
11 
13 
14 class TMap;
15 
16 namespace dqi{
18  {
19  private:
20  ConditionsSingleton() = default;
21  ~ConditionsSingleton() = default;
24  int m_numRefHisto{0};
25  std::string m_currentConditions;
26  std::map<std::string,std::string> m_referenceMap;
27  const TMap* m_refsourcedata{nullptr};
28  public:
29  static ConditionsSingleton &getInstance();
30  void makeConditionMap(std::map<std::string, std::string>& cmap,
31  const std::string& condition);
32  bool conditionsMatch(std::map<std::string, std::string>& refConds,
33  std::map<std::string, std::string>& currentConds) const;
34  std::string conditionalSelect(std::string inp,const std::string& condition);
35  void setCondition(const std::string& c);
36  const std::string& getCondition() const;
37  int getNumReferenceHistos() const;
38  std::string getNewRefHistoName();
39  std::vector<std::string> getAllReferenceNames(std::string inp) const;
40  std::vector<std::pair<std::string,std::string> > getConditionReferencePairs(std::string inp) const;
41  void setNewReferenceName(const std::string&,const std::string&);
42  std::string getNewReferenceName(const std::string&,bool quiet=false) const;
43  void setRefSourceMapping(const TMap* refsourcedata);
44  std::string getRefSourceData(const std::string& rawref) const;
45  };
46 }
47 
48 #endif
dqi::ConditionsSingleton::m_referenceMap
std::map< std::string, std::string > m_referenceMap
Definition: ConditionsSingleton.h:26
dqi::ConditionsSingleton::ConditionsSingleton
ConditionsSingleton(const ConditionsSingleton &)=delete
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
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
LArG4GenerateShowerLib.condition
condition
Definition: LArG4GenerateShowerLib.py:19
dqi::ConditionsSingleton::m_currentConditions
std::string m_currentConditions
Definition: ConditionsSingleton.h:25
dqi::ConditionsSingleton::~ConditionsSingleton
~ConditionsSingleton()=default
dqi::ConditionsSingleton::ConditionsSingleton
ConditionsSingleton()=default
checker_macros.h
Define macros for attributes used to control the static checker.
dqi::ConditionsSingleton::operator=
ConditionsSingleton & operator=(const ConditionsSingleton &)=delete
dqi
Definition: CompositeAlgorithm.h:16
python.compressB64.c
def c
Definition: compressB64.py:93
dqi::ConditionsSingleton
Definition: ConditionsSingleton.h:18