ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
dqm_algorithms::tools::SimpleAlgorithmConfig Class Reference

This class provides a simple implementation of the DQMF abstract AlgorithmConfig interface which can be used in dqm_algorithms (see AddReference algorithms). More...

#include <SimpleAlgorithmConfig.h>

Inheritance diagram for dqm_algorithms::tools::SimpleAlgorithmConfig:
Collaboration diagram for dqm_algorithms::tools::SimpleAlgorithmConfig:

Public Member Functions

 SimpleAlgorithmConfig ()
 Default constructor. More...
 
 SimpleAlgorithmConfig (TObject *ref)
 
 SimpleAlgorithmConfig (const AlgorithmConfig &conf)
 Copy constructor. More...
 
virtual TObject * getReference () const override
 Getters, interface defines in AlgorithmConfig. More...
 
void setReference (TObject *ref)
 Setters. More...
 
void addParameter (std::string, double)
 
void addGenericParameter (std::string, std::string)
 
void addGreenThreshold (std::string, double)
 
void addRedThreshold (std::string, double)
 

Private Attributes

TObject * m_ref
 

Detailed Description

This class provides a simple implementation of the DQMF abstract AlgorithmConfig interface which can be used in dqm_algorithms (see AddReference algorithms).

Definition at line 21 of file SimpleAlgorithmConfig.h.

Constructor & Destructor Documentation

◆ SimpleAlgorithmConfig() [1/3]

dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig ( )

Default constructor.

Definition at line 12 of file SimpleAlgorithmConfig.cxx.

12  :
13  dqm_core::AlgorithmConfig() , m_ref(0)
14 {
15  //Empty
16 }

◆ SimpleAlgorithmConfig() [2/3]

dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig ( TObject *  ref)

Definition at line 18 of file SimpleAlgorithmConfig.cxx.

18  :
19  dqm_core::AlgorithmConfig() , m_ref(ref)
20 {
21  //Empty
22 }

◆ SimpleAlgorithmConfig() [3/3]

dqm_algorithms::tools::SimpleAlgorithmConfig::SimpleAlgorithmConfig ( const AlgorithmConfig &  conf)

Copy constructor.

Definition at line 26 of file SimpleAlgorithmConfig.cxx.

26  :
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 }

Member Function Documentation

◆ addGenericParameter()

void dqm_algorithms::tools::SimpleAlgorithmConfig::addGenericParameter ( std::string  key,
std::string  value 
)

Definition at line 57 of file SimpleAlgorithmConfig.cxx.

58 {
59  m_generic_parameters.emplace( key, value );
60 }

◆ addGreenThreshold()

void dqm_algorithms::tools::SimpleAlgorithmConfig::addGreenThreshold ( std::string  key,
double  value 
)

Definition at line 63 of file SimpleAlgorithmConfig.cxx.

64 {
65  m_green_thresholds.insert( std::make_pair(key,value) );
66 }

◆ addParameter()

void dqm_algorithms::tools::SimpleAlgorithmConfig::addParameter ( std::string  key,
double  value 
)

Definition at line 51 of file SimpleAlgorithmConfig.cxx.

52 {
53  m_parameters.insert( std::make_pair(key,value) );
54 }

◆ addRedThreshold()

void dqm_algorithms::tools::SimpleAlgorithmConfig::addRedThreshold ( std::string  key,
double  value 
)

Definition at line 69 of file SimpleAlgorithmConfig.cxx.

70 {
71  m_red_thresholds.insert( std::make_pair(key,value) );
72 }

◆ getReference()

TObject * dqm_algorithms::tools::SimpleAlgorithmConfig::getReference ( ) const
overridevirtual

Getters, interface defines in AlgorithmConfig.

Definition at line 38 of file SimpleAlgorithmConfig.cxx.

39 {
40  TObject* ref ATLAS_THREAD_SAFE = const_cast<TObject*>(m_ref); // dictated by interface
41  return ref;
42 }

◆ setReference()

void dqm_algorithms::tools::SimpleAlgorithmConfig::setReference ( TObject *  ref)

Setters.

Definition at line 45 of file SimpleAlgorithmConfig.cxx.

46 {
47  m_ref = o;
48 }

Member Data Documentation

◆ m_ref

TObject* dqm_algorithms::tools::SimpleAlgorithmConfig::m_ref
private

Definition at line 41 of file SimpleAlgorithmConfig.h.


The documentation for this class was generated from the following files:
athena.value
value
Definition: athena.py:122
python.ConfigurableDb.conf
def conf
Definition: ConfigurableDb.py:282
ref
const boost::regex ref(r_ef)
dqm_algorithms::tools::SimpleAlgorithmConfig::m_ref
TObject * m_ref
Definition: SimpleAlgorithmConfig.h:41
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37