CMS 3D CMS Logo

RunInfo.cc
Go to the documentation of this file.
3 
5  RunInfo* sum = new RunInfo();
6  sum->m_run = -1;
7  sum->m_start_time_ll = -1;
8  sum->m_start_time_str = "null";
9  sum->m_stop_time_ll = -1;
10  sum->m_stop_time_str = "null";
11  sum->m_start_current = -1;
12  sum->m_stop_current = -1;
13  sum->m_avg_current = -1;
14  sum->m_max_current = -1;
15  sum->m_min_current = -1;
16  sum->m_run_intervall_micros = 0;
17  return sum;
18 }
19 
21  std::cout << "run number: " << m_run << std::endl;
22  std::cout << "run start time (as timestamp): " << m_start_time_ll << std::endl;
23  std::cout << "run start time (as date): " << m_start_time_str << std::endl;
24  std::cout << "run stop time (as timestamp): " << m_stop_time_ll << std::endl;
25  std::cout << "run stop time (as date): " << m_stop_time_str << std::endl;
26  std::cout << "initial current " << m_start_current << std::endl;
27  std::cout << "final current " << m_stop_current << std::endl;
28  std::cout << "average current " << m_avg_current << std::endl;
29  std::cout << "minimum current " << m_min_current << std::endl;
30  std::cout << "maximum current " << m_max_current << std::endl;
31  std::cout << "run time in microseconds " << m_run_intervall_micros << std::endl;
32  std::cout << "ids of fed in run: " << std::endl;
33  for (size_t i = 0; i < m_fed_in.size(); i++) {
34  std::cout << "---> " << m_fed_in[i] << std::endl;
35  }
36  std::cout << "B current in run: " << std::endl;
37  for (size_t i = 0; i < m_current.size(); i++) {
38  std::cout << "---> " << m_current[i] << std::endl;
39  }
40  std::cout << "correspondent time (from run start) in microseconds for B currents in run: " << std::endl;
41  for (size_t i = 0; i < m_times_of_currents.size(); i++) {
42  std::cout << "---> " << m_times_of_currents[i] << std::endl;
43  }
44 }
RunInfo()
Definition: RunInfo.cc:2
std::vector< int > m_fed_in
Definition: RunInfo.h:25
std::string m_start_time_str
Definition: RunInfo.h:22
std::vector< float > m_current
Definition: RunInfo.h:32
float m_stop_current
Definition: RunInfo.h:27
long long m_stop_time_ll
Definition: RunInfo.h:23
float m_min_current
Definition: RunInfo.h:30
float m_avg_current
Definition: RunInfo.h:28
float m_run_intervall_micros
Definition: RunInfo.h:31
float m_max_current
Definition: RunInfo.h:29
static RunInfo * Fake_RunInfo()
Definition: RunInfo.cc:4
float m_start_current
Definition: RunInfo.h:26
void printAllValues() const
Definition: RunInfo.cc:20
std::string m_stop_time_str
Definition: RunInfo.h:24
int m_run
Definition: RunInfo.h:20
std::vector< float > m_times_of_currents
Definition: RunInfo.h:33
long long m_start_time_ll
Definition: RunInfo.h:21