ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
dqm_algorithms
tools
SimpleAlgorithmConfig.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
8
#include <
dqm_algorithms/tools/SimpleAlgorithmConfig.h
>
9
10
#include "
CxxUtils/checker_macros.h
"
11
12
dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig
() :
13
dqm_core
::AlgorithmConfig() ,
m_ref
(0)
14
{
15
//Empty
16
}
17
18
dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig
( TObject *
ref
) :
19
dqm_core
::AlgorithmConfig() ,
m_ref
(
ref
)
20
{
21
//Empty
22
}
23
24
#ifndef __MAKECINT__
25
26
dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig
(
const
AlgorithmConfig& conf):
27
dqm_core
::AlgorithmConfig(),
m_ref
(conf.
getReference
())
28
{
29
//Copy configuration in this
30
m_parameters = conf.getParameters();
31
m_generic_parameters = conf.getGenericParameters();
32
m_green_thresholds = conf.getGreenThresholds();
33
m_red_thresholds = conf.getRedThresholds();
34
}
35
#endif
36
37
TObject*
38
dqm_algorithms::tools::SimpleAlgorithmConfig::getReference
()
const
39
{
40
TObject*
ref
ATLAS_THREAD_SAFE
=
const_cast<
TObject*
>
(
m_ref
);
// dictated by interface
41
return
ref
;
42
}
43
44
void
45
dqm_algorithms::tools::SimpleAlgorithmConfig::setReference
(TObject* o)
46
{
47
m_ref
= o;
48
}
49
50
void
51
dqm_algorithms::tools::SimpleAlgorithmConfig::addParameter
(
const
std::string & key,
double
value)
52
{
53
m_parameters.insert( std::make_pair(key,value) );
54
}
55
56
void
57
dqm_algorithms::tools::SimpleAlgorithmConfig::addGenericParameter
(
const
std::string & key,
const
std::string & value)
58
{
59
m_generic_parameters.emplace( key, value );
60
}
61
62
void
63
dqm_algorithms::tools::SimpleAlgorithmConfig::addGreenThreshold
(
const
std::string & key,
double
value)
64
{
65
m_green_thresholds.insert( std::make_pair(key,value) );
66
}
67
68
void
69
dqm_algorithms::tools::SimpleAlgorithmConfig::addRedThreshold
(
const
std::string & key,
double
value)
70
{
71
m_red_thresholds.insert( std::make_pair(key,value) );
72
}
73
ref
const std::regex ref(r_ef)
SimpleAlgorithmConfig.h
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
dqm_algorithms::tools::SimpleAlgorithmConfig::addGenericParameter
void addGenericParameter(const std::string &, const std::string &)
Definition
SimpleAlgorithmConfig.cxx:57
dqm_algorithms::tools::SimpleAlgorithmConfig::addRedThreshold
void addRedThreshold(const std::string &, double)
Definition
SimpleAlgorithmConfig.cxx:69
dqm_algorithms::tools::SimpleAlgorithmConfig::addParameter
void addParameter(const std::string &, double)
Definition
SimpleAlgorithmConfig.cxx:51
dqm_algorithms::tools::SimpleAlgorithmConfig::setReference
void setReference(TObject *ref)
Setters.
Definition
SimpleAlgorithmConfig.cxx:45
dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig
SimpleAlgorithmConfig()
Default constructor.
Definition
SimpleAlgorithmConfig.cxx:12
dqm_algorithms::tools::SimpleAlgorithmConfig::m_ref
TObject * m_ref
Definition
SimpleAlgorithmConfig.h:41
dqm_algorithms::tools::SimpleAlgorithmConfig::getReference
virtual TObject * getReference() const override
Getters, interface defines in AlgorithmConfig.
Definition
SimpleAlgorithmConfig.cxx:38
dqm_algorithms::tools::SimpleAlgorithmConfig::addGreenThreshold
void addGreenThreshold(const std::string &, double)
Definition
SimpleAlgorithmConfig.cxx:63
dqm_core
Definition
HanConfig.h:34
Generated on
for ATLAS Offline Software by
1.17.0