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
56
57
58
|
#include "CondFormats/RunInfo/interface/RunSummary.h"
RunSummary::RunSummary() {}
RunSummary* RunSummary::Fake_RunSummary() {
RunSummary* sum = new RunSummary();
sum->m_run = -1;
sum->m_hltkey = "null";
sum->m_start_time_str = "null";
sum->m_stop_time_str = "null";
sum->m_name = "null";
return sum;
}
void RunSummary::printAllValues() const {
std::cout << "run number: " << m_run << std::endl;
std::cout << "run name: " << m_name << std::endl;
std::cout << "run start time as timestamp: " << m_start_time_ll << std::endl;
std::cout << "run start time as date: " << m_start_time_str << std::endl;
std::cout << "run stop time as timestamp: " << m_stop_time_ll << std::endl;
std::cout << "run stop time as date: " << m_stop_time_str << std::endl;
std::cout << "lumisection in the run: " << m_lumisections << std::endl;
std::cout << "run hltkey: " << m_hltkey << std::endl;
std::cout << "run number of events according hlt: " << m_nevents << std::endl;
std::cout << "hlt rate: " << m_rate << std::endl;
std::cout << "ids of subdetectors in run: " << std::endl;
for (size_t i = 0; i < m_subdt_in.size(); i++) {
std::cout << "---> " << m_subdt_in[i] << std::endl;
}
}
std::vector<std::string> RunSummary::getSubdtIn() const {
std::vector<std::string> v;
for (size_t i = 0; i < m_subdt_in.size(); i++) {
if (m_subdt_in[i] == 0) {
v.push_back("PIXEL");
}
if (m_subdt_in[i] == 1) {
v.push_back("TRACKER");
}
if (m_subdt_in[i] == 2) {
v.push_back("ECAL");
}
if (m_subdt_in[i] == 3) {
v.push_back("HCAL");
}
if (m_subdt_in[i] == 4) {
v.push_back("DT");
}
if (m_subdt_in[i] == 5) {
v.push_back("CSC");
}
if (m_subdt_in[i] == 6) {
v.push_back("RPC");
}
}
return v;
}
|