Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:32

0001 #include "CondFormats/RunInfo/interface/RunInfo.h"
0002 RunInfo::RunInfo() {}
0003 
0004 RunInfo* RunInfo::Fake_RunInfo() {
0005   RunInfo* sum = new RunInfo();
0006   sum->m_run = -1;
0007   sum->m_start_time_ll = -1;
0008   sum->m_start_time_str = "null";
0009   sum->m_stop_time_ll = -1;
0010   sum->m_stop_time_str = "null";
0011   sum->m_start_current = -1;
0012   sum->m_stop_current = -1;
0013   sum->m_avg_current = -1;
0014   sum->m_max_current = -1;
0015   sum->m_min_current = -1;
0016   sum->m_run_intervall_micros = 0;
0017   return sum;
0018 }
0019 
0020 void RunInfo::printAllValues() const {
0021   std::cout << "run number: " << m_run << std::endl;
0022   std::cout << "run start time (as timestamp): " << m_start_time_ll << std::endl;
0023   std::cout << "run start time (as date): " << m_start_time_str << std::endl;
0024   std::cout << "run stop time (as timestamp): " << m_stop_time_ll << std::endl;
0025   std::cout << "run stop time (as date): " << m_stop_time_str << std::endl;
0026   std::cout << "initial current " << m_start_current << std::endl;
0027   std::cout << "final current " << m_stop_current << std::endl;
0028   std::cout << "average current " << m_avg_current << std::endl;
0029   std::cout << "minimum current " << m_min_current << std::endl;
0030   std::cout << "maximum current " << m_max_current << std::endl;
0031   std::cout << "run time in microseconds " << m_run_intervall_micros << std::endl;
0032   std::cout << "ids of fed in run: " << std::endl;
0033   for (size_t i = 0; i < m_fed_in.size(); i++) {
0034     std::cout << "---> " << m_fed_in[i] << std::endl;
0035   }
0036   std::cout << "B current in run: " << std::endl;
0037   for (size_t i = 0; i < m_current.size(); i++) {
0038     std::cout << "---> " << m_current[i] << std::endl;
0039   }
0040   std::cout << "correspondent time (from run start) in microseconds for B currents in run: " << std::endl;
0041   for (size_t i = 0; i < m_times_of_currents.size(); i++) {
0042     std::cout << "---> " << m_times_of_currents[i] << std::endl;
0043   }
0044 }