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 }
mps_fire.i
i
Definition: mps_fire.py:428
RunSummary
Definition: RunSummary.h:18
RunSummary::Fake_RunSummary
static RunSummary * Fake_RunSummary()
Definition: RunSummary.cc:4
gather_cfg.cout
cout
Definition: gather_cfg.py:144
findQualityFiles.v
v
Definition: findQualityFiles.py:179
RunSummary::m_hltkey
std::string m_hltkey
Definition: RunSummary.h:28
RunSummary::printAllValues
void printAllValues() const
Definition: RunSummary.cc:14
RunSummary::m_stop_time_str
std::string m_stop_time_str
Definition: RunSummary.h:25
RunSummary::m_stop_time_ll
long long m_stop_time_ll
Definition: RunSummary.h:24
RunSummary::getSubdtIn
std::vector< std::string > getSubdtIn() const
Definition: RunSummary.cc:31
RunSummary::m_run
int m_run
Definition: RunSummary.h:20
RunSummary.h
RunSummary::m_name
std::string m_name
Definition: RunSummary.h:21
RunSummary::m_lumisections
int m_lumisections
Definition: RunSummary.h:26
RunSummary::m_nevents
long long m_nevents
Definition: RunSummary.h:29
RunSummary::m_subdt_in
std::vector< int > m_subdt_in
Definition: RunSummary.h:27
RunSummary::m_start_time_str
std::string m_start_time_str
Definition: RunSummary.h:23
RunSummary::m_rate
float m_rate
Definition: RunSummary.h:30
RunSummary::RunSummary
RunSummary()
Definition: RunSummary.cc:2
RunSummary::m_start_time_ll
long long m_start_time_ll
Definition: RunSummary.h:22