1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#ifndef CondFormats_DQMObjects_DQMSummary_h
#define CondFormats_DQMObjects_DQMSummary_h
#include "CondFormats/Serialization/interface/Serializable.h"
#include <iostream>
#include <string>
#include <vector>
/*
* \class DQMSummary
*
* hosting DQM information
*
* \author Salvatore Di Guida (diguida) - CERN (Mar-27-2009)
*
*/
class DQMSummary {
public:
long long m_run;
struct RunItem {
long long m_lumisec;
struct LumiItem {
std::string m_subsystem;
std::string m_reportcontent;
std::string m_type;
double m_status;
COND_SERIALIZABLE;
};
std::vector<LumiItem> m_lumisummary;
COND_SERIALIZABLE;
};
DQMSummary() {}
virtual ~DQMSummary() {}
std::vector<RunItem> m_summary;
void printAllValues() const {
std::cout << "run number = " << m_run << std::endl;
std::vector<RunItem>::const_iterator runIt;
for (runIt = m_summary.begin(); runIt != m_summary.end(); ++runIt) {
std::cout << "--- lumisection = " << runIt->m_lumisec << std::endl;
std::vector<RunItem::LumiItem>::const_iterator lumiIt;
for (lumiIt = runIt->m_lumisummary.begin(); lumiIt != runIt->m_lumisummary.end(); ++lumiIt) {
std::cout << "------ subsystem: " << lumiIt->m_subsystem << ", report content: " << lumiIt->m_reportcontent
<< ", type: " << lumiIt->m_type << ", status = " << lumiIt->m_status << std::endl;
}
}
}
COND_SERIALIZABLE;
};
#endif
|