ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
dqm_algorithms
dqm_algorithms
tools
DumpConfig.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
8
#ifndef DQM_ALGORITHMS_TEST_DUMPCONFIG_H
9
#define DQM_ALGORITHMS_TEST_DUMPCONFIG_H
10
11
#include <map>
12
#include <iostream>
13
#include <fstream>
14
#include <dqm_core/test/DummyAlgorithmConfig.h>
15
16
namespace
dqm_algorithms
17
{
18
namespace
tools
19
{
20
class
DumpConfig
{
21
public
:
22
DumpConfig
(
const
std::string& ParameterName,
23
dqm_core::test::DummyAlgorithmConfig & config,
24
const
std::string& algorithmname,
25
const
std::string& histogramname,
26
const
std::string& reffilename=
""
,
27
const
std::string& refhistogramname=
""
,
28
float
weight=1.,
29
const
std::string& regionname=
""
);
30
~DumpConfig
();
31
32
void
DumpOnlineConfig
(
const
std::string& filename,
bool
dumpAgent=
true
);
33
void
DumpOfflineConfig
(
const
std::string& filename);
34
35
private
:
36
void
WriteThresholdFromMap
(
const
std::map<std::string,double>&
object
,
37
const
std::string& ParameterName,
38
const
std::string&
Name
);
39
void
DumpThresholds
();
40
void
DumpParams
();
41
void
DumpRegion
();
42
void
DumpAgent
();
43
44
std::ofstream
m_myfile
;
45
std::map<std::string,double>
m_params
;
46
std::map<std::string,std::string>
m_strParams
;
47
std::map<std::string,double>
m_gthresh
;
48
std::map<std::string,double>
m_rthresh
;
49
std::vector<std::string>
m_red_id
;
50
std::vector<std::string>
m_green_id
;
51
std::vector<std::string>
m_param_id
;
52
53
std::string
m_ParameterName
;
54
dqm_core::test::DummyAlgorithmConfig
m_config
;
55
std::string
m_regionname
;
56
std::string
m_algorithmname
;
57
std::string
m_histogramname
;
58
std::string
m_refhistogramname
;
59
std::string
m_reffilename
;
60
float
m_weight
;
61
62
};
63
}
64
}
65
66
#endif
Name
JetDumper::Name Name
Definition
JetDumper.cxx:19
dqm_algorithms::tools::DumpConfig::m_myfile
std::ofstream m_myfile
Definition
DumpConfig.h:44
dqm_algorithms::tools::DumpConfig::~DumpConfig
~DumpConfig()
Definition
DumpConfig.cxx:30
dqm_algorithms::tools::DumpConfig::m_config
dqm_core::test::DummyAlgorithmConfig m_config
Definition
DumpConfig.h:54
dqm_algorithms::tools::DumpConfig::m_weight
float m_weight
Definition
DumpConfig.h:60
dqm_algorithms::tools::DumpConfig::m_params
std::map< std::string, double > m_params
Definition
DumpConfig.h:45
dqm_algorithms::tools::DumpConfig::m_regionname
std::string m_regionname
Definition
DumpConfig.h:55
dqm_algorithms::tools::DumpConfig::DumpRegion
void DumpRegion()
Definition
DumpConfig.cxx:34
dqm_algorithms::tools::DumpConfig::DumpThresholds
void DumpThresholds()
Definition
DumpConfig.cxx:107
dqm_algorithms::tools::DumpConfig::m_strParams
std::map< std::string, std::string > m_strParams
Definition
DumpConfig.h:46
dqm_algorithms::tools::DumpConfig::DumpConfig
DumpConfig(const std::string &ParameterName, dqm_core::test::DummyAlgorithmConfig &config, const std::string &algorithmname, const std::string &histogramname, const std::string &reffilename="", const std::string &refhistogramname="", float weight=1., const std::string ®ionname="")
Definition
DumpConfig.cxx:11
dqm_algorithms::tools::DumpConfig::DumpOfflineConfig
void DumpOfflineConfig(const std::string &filename)
Definition
DumpConfig.cxx:262
dqm_algorithms::tools::DumpConfig::m_reffilename
std::string m_reffilename
Definition
DumpConfig.h:59
dqm_algorithms::tools::DumpConfig::DumpAgent
void DumpAgent()
Definition
DumpConfig.cxx:53
dqm_algorithms::tools::DumpConfig::DumpOnlineConfig
void DumpOnlineConfig(const std::string &filename, bool dumpAgent=true)
Definition
DumpConfig.cxx:162
dqm_algorithms::tools::DumpConfig::m_gthresh
std::map< std::string, double > m_gthresh
Definition
DumpConfig.h:47
dqm_algorithms::tools::DumpConfig::m_algorithmname
std::string m_algorithmname
Definition
DumpConfig.h:56
dqm_algorithms::tools::DumpConfig::m_green_id
std::vector< std::string > m_green_id
Definition
DumpConfig.h:50
dqm_algorithms::tools::DumpConfig::m_param_id
std::vector< std::string > m_param_id
Definition
DumpConfig.h:51
dqm_algorithms::tools::DumpConfig::m_ParameterName
std::string m_ParameterName
Definition
DumpConfig.h:53
dqm_algorithms::tools::DumpConfig::DumpParams
void DumpParams()
Definition
DumpConfig.cxx:136
dqm_algorithms::tools::DumpConfig::m_refhistogramname
std::string m_refhistogramname
Definition
DumpConfig.h:58
dqm_algorithms::tools::DumpConfig::m_red_id
std::vector< std::string > m_red_id
Definition
DumpConfig.h:49
dqm_algorithms::tools::DumpConfig::m_rthresh
std::map< std::string, double > m_rthresh
Definition
DumpConfig.h:48
dqm_algorithms::tools::DumpConfig::WriteThresholdFromMap
void WriteThresholdFromMap(const std::map< std::string, double > &object, const std::string &ParameterName, const std::string &Name)
Definition
DumpConfig.cxx:85
dqm_algorithms::tools::DumpConfig::m_histogramname
std::string m_histogramname
Definition
DumpConfig.h:57
dqm_algorithms::tools
Definition
AlgorithmHelper.h:33
dqm_algorithms
Definition
AddReference.h:17
Generated on
for ATLAS Offline Software by
1.17.0