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 }
mps_fire.i
i
Definition: mps_fire.py:355
RunInfo::m_max_current
float m_max_current
Definition: RunInfo.h:29
gather_cfg.cout
cout
Definition: gather_cfg.py:144
RunInfo::m_fed_in
std::vector< int > m_fed_in
Definition: RunInfo.h:25
RunInfo::m_times_of_currents
std::vector< float > m_times_of_currents
Definition: RunInfo.h:33
RunInfo::Fake_RunInfo
static RunInfo * Fake_RunInfo()
Definition: RunInfo.cc:4
RunInfo::printAllValues
void printAllValues() const
Definition: RunInfo.cc:20
RunInfo::m_stop_current
float m_stop_current
Definition: RunInfo.h:27
RunInfo::RunInfo
RunInfo()
Definition: RunInfo.cc:2
RunInfo
Definition: RunInfo.h:18
RunInfo::m_run_intervall_micros
float m_run_intervall_micros
Definition: RunInfo.h:31
RunInfo::m_stop_time_ll
long long m_stop_time_ll
Definition: RunInfo.h:23
RunInfo::m_start_current
float m_start_current
Definition: RunInfo.h:26
RunInfo::m_current
std::vector< float > m_current
Definition: RunInfo.h:32
RunInfo::m_start_time_str
std::string m_start_time_str
Definition: RunInfo.h:22
RunInfo.h
RunInfo::m_min_current
float m_min_current
Definition: RunInfo.h:30
RunInfo::m_avg_current
float m_avg_current
Definition: RunInfo.h:28
RunInfo::m_run
int m_run
Definition: RunInfo.h:20
RunInfo::m_stop_time_str
std::string m_stop_time_str
Definition: RunInfo.h:24
RunInfo::m_start_time_ll
long long m_start_time_ll
Definition: RunInfo.h:21