ATLAS Offline Software
Loading...
Searching...
No Matches
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
14class TMap;
15
16namespace dqi{
18 {
19 private:
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
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
std::map< std::string, std::string > m_referenceMap
ConditionsSingleton(const ConditionsSingleton &)=delete
ConditionsSingleton & operator=(const ConditionsSingleton &)=delete