ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace 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="" );
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
JetDumper::Name Name
Definition JetDumper.cxx:19
dqm_core::test::DummyAlgorithmConfig m_config
Definition DumpConfig.h:54
std::map< std::string, double > m_params
Definition DumpConfig.h:45
std::map< std::string, std::string > m_strParams
Definition DumpConfig.h:46
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 &regionname="")
void DumpOfflineConfig(const std::string &filename)
void DumpOnlineConfig(const std::string &filename, bool dumpAgent=true)
std::map< std::string, double > m_gthresh
Definition DumpConfig.h:47
std::vector< std::string > m_green_id
Definition DumpConfig.h:50
std::vector< std::string > m_param_id
Definition DumpConfig.h:51
std::vector< std::string > m_red_id
Definition DumpConfig.h:49
std::map< std::string, double > m_rthresh
Definition DumpConfig.h:48
void WriteThresholdFromMap(const std::map< std::string, double > &object, const std::string &ParameterName, const std::string &Name)