CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Friends
RunInfo Class Reference

#include <RunInfo.h>

Public Member Functions

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

Static Public Member Functions

static RunInfoFake_RunInfo ()
 

Public Attributes

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
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 18 of file RunInfo.h.

Constructor & Destructor Documentation

◆ RunInfo()

RunInfo::RunInfo ( )

Definition at line 2 of file RunInfo.cc.

2 {}

Referenced by Fake_RunInfo().

◆ ~RunInfo()

virtual RunInfo::~RunInfo ( )
inlinevirtual

Definition at line 36 of file RunInfo.h.

36 {};

Member Function Documentation

◆ Fake_RunInfo()

RunInfo * RunInfo::Fake_RunInfo ( )
static

Definition at line 4 of file RunInfo.cc.

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;
16  sum->m_run_intervall_micros = 0;
17  return sum;
18 }

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().

◆ printAllValues()

void RunInfo::printAllValues ( ) const

Definition at line 20 of file RunInfo.cc.

20  {
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 }

References gather_cfg::cout, mps_fire::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.

◆ serialize()

template<class Archive >
void RunInfo::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 41 of file RunInfo.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 41 of file RunInfo.h.

Member Data Documentation

◆ m_avg_current

float RunInfo::m_avg_current

◆ m_current

std::vector<float> RunInfo::m_current

◆ m_fed_in

std::vector<int> RunInfo::m_fed_in

◆ m_max_current

float RunInfo::m_max_current

◆ m_min_current

float RunInfo::m_min_current

◆ m_run

int RunInfo::m_run

◆ m_run_intervall_micros

float RunInfo::m_run_intervall_micros

◆ m_start_current

float RunInfo::m_start_current

◆ m_start_time_ll

long long RunInfo::m_start_time_ll

◆ m_start_time_str

std::string RunInfo::m_start_time_str

◆ m_stop_current

float RunInfo::m_stop_current

◆ m_stop_time_ll

long long RunInfo::m_stop_time_ll

◆ m_stop_time_str

std::string RunInfo::m_stop_time_str

◆ m_times_of_currents

std::vector<float> RunInfo::m_times_of_currents
mps_fire.i
i
Definition: mps_fire.py:428
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::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::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