ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
DataQualityInterfaces
DataQualityInterfaces
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
12
#include "
CxxUtils/checker_macros.h
"
13
14
class
TMap;
15
16
namespace
dqi
{
17
class
ATLAS_NOT_THREAD_SAFE
ConditionsSingleton
18
{
19
private
:
20
ConditionsSingleton
() =
default
;
21
~ConditionsSingleton
() =
default
;
22
ConditionsSingleton
(
const
ConditionsSingleton
&) =
delete
;
23
ConditionsSingleton
&
operator=
(
const
ConditionsSingleton
&) =
delete
;
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
quiet
bool quiet
Definition
TrigGlobEffCorrValidation.cxx:190
checker_macros.h
Define macros for attributes used to control the static checker.
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
dqi::ConditionsSingleton
Definition
ConditionsSingleton.h:18
dqi::ConditionsSingleton::~ConditionsSingleton
~ConditionsSingleton()=default
dqi::ConditionsSingleton::m_referenceMap
std::map< std::string, std::string > m_referenceMap
Definition
ConditionsSingleton.h:26
dqi::ConditionsSingleton::ConditionsSingleton
ConditionsSingleton(const ConditionsSingleton &)=delete
dqi::ConditionsSingleton::m_refsourcedata
const TMap * m_refsourcedata
Definition
ConditionsSingleton.h:27
dqi::ConditionsSingleton::m_numRefHisto
int m_numRefHisto
Definition
ConditionsSingleton.h:24
dqi::ConditionsSingleton::m_currentConditions
std::string m_currentConditions
Definition
ConditionsSingleton.h:25
dqi::ConditionsSingleton::ConditionsSingleton
ConditionsSingleton()=default
dqi::ConditionsSingleton::operator=
ConditionsSingleton & operator=(const ConditionsSingleton &)=delete
dqi
Definition
CompositeAlgorithm.h:16
Generated on
for ATLAS Offline Software by
1.17.0