CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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;
17  return sum;
18 }
19 
20 
21 
23  std::cout << "run number: " << m_run << std::endl;
24  std::cout << "run start time (as timestamp): " << m_start_time_ll << std::endl;
25  std::cout << "run start time (as date): " << m_start_time_str << std::endl;
26  std::cout << "run stop time (as timestamp): " << m_stop_time_ll << std::endl;
27  std::cout << "run stop time (as date): " << m_stop_time_str << std::endl;
28  std::cout << "initial current " << m_start_current << std::endl;
29  std::cout << "final current " << m_stop_current << std::endl;
30  std::cout << "average current " << m_avg_current << std::endl;
31  std::cout << "minimum current " << m_min_current << std::endl;
32  std::cout << "maximum current " << m_max_current << std::endl;
33  std::cout << "run time in microseconds " << m_run_intervall_micros << std::endl;
34  std::cout << "ids of fed in run: " << std::endl;
35  for(size_t i = 0; i < m_fed_in.size(); i++) {
36  std::cout << "---> " << m_fed_in[i] << std::endl;
37  }
38  std::cout << "B current in run: " << std::endl;
39  for(size_t i = 0; i < m_current.size(); i++) {
40  std::cout << "---> " << m_current[i] << std::endl;
41  }
42  std::cout << "correspondent time (from run start) in microseconds for B currents in run: " << std::endl;
43  for(size_t i = 0; i < m_times_of_currents.size(); i++) {
44  std::cout << "---> " << m_times_of_currents[i] << std::endl;
45  }
46 }
47 
48 
int i
Definition: DBlmapReader.cc:9
RunInfo()
Definition: RunInfo.cc:2
std::vector< int > m_fed_in
Definition: RunInfo.h:24
void printAllValues() const
Definition: RunInfo.cc:22
std::string m_start_time_str
Definition: RunInfo.h:21
std::vector< float > m_current
Definition: RunInfo.h:31
float m_stop_current
Definition: RunInfo.h:26
long long m_stop_time_ll
Definition: RunInfo.h:22
float m_min_current
Definition: RunInfo.h:29
float m_avg_current
Definition: RunInfo.h:27
float m_run_intervall_micros
Definition: RunInfo.h:30
float m_max_current
Definition: RunInfo.h:28
static RunInfo * Fake_RunInfo()
Definition: RunInfo.cc:4
float m_start_current
Definition: RunInfo.h:25
std::string m_stop_time_str
Definition: RunInfo.h:23
tuple cout
Definition: gather_cfg.py:121
int m_run
Definition: RunInfo.h:19
std::vector< float > m_times_of_currents
Definition: RunInfo.h:32
long long m_start_time_ll
Definition: RunInfo.h:20