CMS 3D CMS Logo

RunSummary.cc
Go to the documentation of this file.
3 
5  RunSummary* sum = new RunSummary();
6  sum->m_run = -1;
7  sum->m_hltkey = "null";
8  sum->m_start_time_str = "null";
9  sum->m_stop_time_str = "null";
10  sum->m_name = "null";
11  return sum;
12 }
13 
15  std::cout << "run number: " << m_run << std::endl;
16  std::cout << "run name: " << m_name << std::endl;
17  std::cout << "run start time as timestamp: " << m_start_time_ll << std::endl;
18  std::cout << "run start time as date: " << m_start_time_str << std::endl;
19  std::cout << "run stop time as timestamp: " << m_stop_time_ll << std::endl;
20  std::cout << "run stop time as date: " << m_stop_time_str << std::endl;
21  std::cout << "lumisection in the run: " << m_lumisections << std::endl;
22  std::cout << "run hltkey: " << m_hltkey << std::endl;
23  std::cout << "run number of events according hlt: " << m_nevents << std::endl;
24  std::cout << "hlt rate: " << m_rate << std::endl;
25  std::cout << "ids of subdetectors in run: " << std::endl;
26  for (size_t i = 0; i < m_subdt_in.size(); i++) {
27  std::cout << "---> " << m_subdt_in[i] << std::endl;
28  }
29 }
30 
31 std::vector<std::string> RunSummary::getSubdtIn() const {
32  std::vector<std::string> v;
33  for (size_t i = 0; i < m_subdt_in.size(); i++) {
34  if (m_subdt_in[i] == 0) {
35  v.push_back("PIXEL");
36  }
37  if (m_subdt_in[i] == 1) {
38  v.push_back("TRACKER");
39  }
40  if (m_subdt_in[i] == 2) {
41  v.push_back("ECAL");
42  }
43  if (m_subdt_in[i] == 3) {
44  v.push_back("HCAL");
45  }
46 
47  if (m_subdt_in[i] == 4) {
48  v.push_back("DT");
49  }
50  if (m_subdt_in[i] == 5) {
51  v.push_back("CSC");
52  }
53  if (m_subdt_in[i] == 6) {
54  v.push_back("RPC");
55  }
56  }
57  return v;
58 }
float m_rate
Definition: RunSummary.h:30
static RunSummary * Fake_RunSummary()
Definition: RunSummary.cc:4
std::vector< int > m_subdt_in
Definition: RunSummary.h:27
std::string m_stop_time_str
Definition: RunSummary.h:25
long long m_stop_time_ll
Definition: RunSummary.h:24
std::string m_hltkey
Definition: RunSummary.h:28
long long m_nevents
Definition: RunSummary.h:29
void printAllValues() const
Definition: RunSummary.cc:14
int m_lumisections
Definition: RunSummary.h:26
std::vector< std::string > getSubdtIn() const
Definition: RunSummary.cc:31
long long m_start_time_ll
Definition: RunSummary.h:22
std::string m_name
Definition: RunSummary.h:21
std::string m_start_time_str
Definition: RunSummary.h:23