CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Public Attributes

RunInfo Class Reference

#include <RunInfo.h>

List of all members.

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

Detailed Description

Definition at line 16 of file RunInfo.h.


Constructor & Destructor Documentation

RunInfo::RunInfo ( )

Definition at line 2 of file RunInfo.cc.

Referenced by Fake_RunInfo().

{}
virtual RunInfo::~RunInfo ( ) [inline, virtual]

Definition at line 35 of file RunInfo.h.

{};

Member Function Documentation

RunInfo * RunInfo::Fake_RunInfo ( ) [static]
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.

                                   {
  std::cout << "run number: " << m_run << std::endl;
  std::cout << "run start time (as timestamp): " << m_start_time_ll << std::endl;
  std::cout << "run start time (as date): " << m_start_time_str << std::endl;
  std::cout << "run stop time (as timestamp): " << m_stop_time_ll << std::endl;
  std::cout << "run stop time (as date): " << m_stop_time_str << std::endl;
  std::cout << "initial current " << m_start_current << std::endl;
  std::cout << "final current " << m_stop_current << std::endl;
  std::cout << "average current " << m_avg_current << std::endl;
  std::cout << "minimum current " << m_min_current << std::endl;
  std::cout << "maximum current " << m_max_current << std::endl;
  std::cout << "run time in microseconds " << m_run_intervall_micros << std::endl;
  std::cout << "ids of fed in run: " << std::endl;
  for(size_t i = 0; i < m_fed_in.size(); i++) {
    std::cout << "---> " << m_fed_in[i] << std::endl;
  }
  std::cout << "B current in run: " << std::endl;
  for(size_t i = 0; i < m_current.size(); i++) {
    std::cout << "---> " << m_current[i] << std::endl;
  }
  std::cout << "correspondent time (from run start) in microseconds for B currents in run: " << std::endl;
  for(size_t i = 0; i < m_times_of_currents.size(); i++) {
    std::cout << "---> " << m_times_of_currents[i] << std::endl;
  }
}

Member Data Documentation

std::vector<float> RunInfo::m_current

Definition at line 31 of file RunInfo.h.

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

std::vector<int> RunInfo::m_fed_in

Definition at line 19 of file RunInfo.h.

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

Definition at line 21 of file RunInfo.h.

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

Definition at line 23 of file RunInfo.h.

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

std::vector<float> RunInfo::m_times_of_currents

Definition at line 32 of file RunInfo.h.

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