ATLAS Offline Software
SimpleAlgorithmConfig.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
11 
13  dqm_core::AlgorithmConfig() , m_ref(0)
14 {
15  //Empty
16 }
17 
19  dqm_core::AlgorithmConfig() , m_ref(ref)
20 {
21  //Empty
22 }
23 
24 #ifndef __MAKECINT__
25 
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*
39 {
40  TObject* ref ATLAS_THREAD_SAFE = const_cast<TObject*>(m_ref); // dictated by interface
41  return ref;
42 }
43 
44 void
46 {
47  m_ref = o;
48 }
49 
50 void
52 {
53  m_parameters.insert( std::make_pair(key,value) );
54 }
55 
56 void
58 {
59  m_generic_parameters.emplace( key, value );
60 }
61 
62 void
64 {
65  m_green_thresholds.insert( std::make_pair(key,value) );
66 }
67 
68 void
70 {
71  m_red_thresholds.insert( std::make_pair(key,value) );
72 }
73 
dqm_algorithms::tools::SimpleAlgorithmConfig::addGenericParameter
void addGenericParameter(std::string, std::string)
Definition: SimpleAlgorithmConfig.cxx:57
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::addRedThreshold
void addRedThreshold(std::string, double)
Definition: SimpleAlgorithmConfig.cxx:69
athena.value
value
Definition: athena.py:124
dqm_core
Definition: HanConfig.h:34
dqm_algorithms::tools::SimpleAlgorithmConfig::addParameter
void addParameter(std::string, double)
Definition: SimpleAlgorithmConfig.cxx:51
python.ConfigurableDb.conf
def conf
Definition: ConfigurableDb.py:282
dqm_algorithms::tools::SimpleAlgorithmConfig::addGreenThreshold
void addGreenThreshold(std::string, double)
Definition: SimpleAlgorithmConfig.cxx:63
ref
const boost::regex ref(r_ef)
SimpleAlgorithmConfig.h
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
dqm_algorithms::tools::SimpleAlgorithmConfig::getReference
virtual TObject * getReference() const override
Getters, interface defines in AlgorithmConfig.
Definition: SimpleAlgorithmConfig.cxx:38
checker_macros.h
Define macros for attributes used to control the static checker.
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37