ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
37TObject*
39{
40 TObject* ref ATLAS_THREAD_SAFE = const_cast<TObject*>(m_ref); // dictated by interface
41 return ref;
42}
43
44void
49
50void
52{
53 m_parameters.insert( std::make_pair(key,value) );
54}
55
56void
58{
59 m_generic_parameters.emplace( key, value );
60}
61
62void
64{
65 m_green_thresholds.insert( std::make_pair(key,value) );
66}
67
68void
70{
71 m_red_thresholds.insert( std::make_pair(key,value) );
72}
73
const boost::regex ref(r_ef)
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
virtual TObject * getReference() const override
Getters, interface defines in AlgorithmConfig.