CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
RunInfo Class Reference

#include <RunInfo.h>

Public Member Functions

void printAllValues () const
 
 RunInfo ()
 
virtual ~RunInfo ()
 

Static Public Member Functions

static RunInfoFake_RunInfo ()
 

Public Attributes

 COND_SERIALIZABLE
 
float m_avg_current
 
std::vector< float > m_current
 
std::vector< int > m_fed_in
 
float m_max_current
 
float m_min_current
 
int m_run
 
float m_run_intervall_micros
 
float m_start_current
 
long long m_start_time_ll
 
std::string m_start_time_str
 
float m_stop_current
 
long long m_stop_time_ll
 
std::string m_stop_time_str
 
std::vector< float > m_times_of_currents
 

Detailed Description

Definition at line 18 of file RunInfo.h.

Constructor & Destructor Documentation

RunInfo::RunInfo ( )

Definition at line 2 of file RunInfo.cc.

Referenced by Fake_RunInfo().

2 {}
virtual RunInfo::~RunInfo ( )
inlinevirtual

Definition at line 37 of file RunInfo.h.

37 {};

Member Function Documentation

RunInfo * RunInfo::Fake_RunInfo ( )
static

Definition at line 4 of file RunInfo.cc.

References m_avg_current, m_max_current, m_min_current, m_run, m_run_intervall_micros, m_start_current, m_start_time_ll, m_start_time_str, m_stop_current, m_stop_time_ll, m_stop_time_str, and RunInfo().

Referenced by RunInfoHandler::getNewObjects().

4  {
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 }
RunInfo()
Definition: RunInfo.cc:2
std::string m_start_time_str
Definition: RunInfo.h:23
float m_stop_current
Definition: RunInfo.h:28
long long m_stop_time_ll
Definition: RunInfo.h:24
float m_min_current
Definition: RunInfo.h:31
float m_avg_current
Definition: RunInfo.h:29
float m_run_intervall_micros
Definition: RunInfo.h:32
float m_max_current
Definition: RunInfo.h:30
float m_start_current
Definition: RunInfo.h:27
std::string m_stop_time_str
Definition: RunInfo.h:25
int m_run
Definition: RunInfo.h:21
long long m_start_time_ll
Definition: RunInfo.h:22
void RunInfo::printAllValues ( ) const

Definition at line 22 of file RunInfo.cc.

References gather_cfg::cout, i, m_avg_current, m_current, m_fed_in, m_max_current, m_min_current, m_run, m_run_intervall_micros, m_start_current, m_start_time_ll, m_start_time_str, m_stop_current, m_stop_time_ll, m_stop_time_str, and m_times_of_currents.

22  {
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 }
int i
Definition: DBlmapReader.cc:9
std::vector< int > m_fed_in
Definition: RunInfo.h:26
std::string m_start_time_str
Definition: RunInfo.h:23
std::vector< float > m_current
Definition: RunInfo.h:33
float m_stop_current
Definition: RunInfo.h:28
long long m_stop_time_ll
Definition: RunInfo.h:24
float m_min_current
Definition: RunInfo.h:31
float m_avg_current
Definition: RunInfo.h:29
float m_run_intervall_micros
Definition: RunInfo.h:32
float m_max_current
Definition: RunInfo.h:30
float m_start_current
Definition: RunInfo.h:27
std::string m_stop_time_str
Definition: RunInfo.h:25
tuple cout
Definition: gather_cfg.py:121
int m_run
Definition: RunInfo.h:21
std::vector< float > m_times_of_currents
Definition: RunInfo.h:34
long long m_start_time_ll
Definition: RunInfo.h:22

Member Data Documentation

RunInfo::COND_SERIALIZABLE

Definition at line 44 of file RunInfo.h.

float RunInfo::m_avg_current
std::vector<float> RunInfo::m_current

Definition at line 33 of file RunInfo.h.

Referenced by printAllValues(), and RunInfoRead::readData().

std::vector<int> RunInfo::m_fed_in
float RunInfo::m_max_current
float RunInfo::m_min_current
int RunInfo::m_run

Definition at line 21 of file RunInfo.h.

Referenced by Fake_RunInfo(), printAllValues(), and RunInfoRead::readData().

float RunInfo::m_run_intervall_micros
float RunInfo::m_start_current
long long RunInfo::m_start_time_ll
std::string RunInfo::m_start_time_str

Definition at line 23 of file RunInfo.h.

Referenced by Fake_RunInfo(), printAllValues(), and RunInfoRead::readData().

float RunInfo::m_stop_current
long long RunInfo::m_stop_time_ll
std::string RunInfo::m_stop_time_str

Definition at line 25 of file RunInfo.h.

Referenced by Fake_RunInfo(), printAllValues(), and RunInfoRead::readData().

std::vector<float> RunInfo::m_times_of_currents

Definition at line 34 of file RunInfo.h.

Referenced by printAllValues(), and RunInfoRead::readData().