CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondFormats/RunInfo/src/RunInfo.cc

Go to the documentation of this file.
00001 #include "CondFormats/RunInfo/interface/RunInfo.h"
00002 RunInfo::RunInfo(){}
00003 
00004 RunInfo * RunInfo::Fake_RunInfo(){
00005   RunInfo * sum = new RunInfo();
00006   sum->m_run=-1;
00007   sum->m_start_time_ll=-1;
00008   sum->m_start_time_str="null";
00009   sum->m_stop_time_ll=-1;
00010   sum->m_stop_time_str="null";
00011   sum->m_start_current=-1; 
00012   sum->m_stop_current=-1;
00013   sum->m_avg_current=-1;
00014   sum->m_max_current=-1;
00015   sum->m_min_current=-1;
00016   sum->m_run_intervall_micros=0;
00017   return sum; 
00018 }
00019 
00020 
00021 
00022 void RunInfo::printAllValues() const {
00023   std::cout << "run number: " << m_run << std::endl;
00024   std::cout << "run start time (as timestamp): " << m_start_time_ll << std::endl;
00025   std::cout << "run start time (as date): " << m_start_time_str << std::endl;
00026   std::cout << "run stop time (as timestamp): " << m_stop_time_ll << std::endl;
00027   std::cout << "run stop time (as date): " << m_stop_time_str << std::endl;
00028   std::cout << "initial current " << m_start_current << std::endl;
00029   std::cout << "final current " << m_stop_current << std::endl;
00030   std::cout << "average current " << m_avg_current << std::endl;
00031   std::cout << "minimum current " << m_min_current << std::endl;
00032   std::cout << "maximum current " << m_max_current << std::endl;
00033   std::cout << "run time in microseconds " << m_run_intervall_micros << std::endl;
00034   std::cout << "ids of fed in run: " << std::endl;
00035   for(size_t i = 0; i < m_fed_in.size(); i++) {
00036     std::cout << "---> " << m_fed_in[i] << std::endl;
00037   }
00038   std::cout << "B current in run: " << std::endl;
00039   for(size_t i = 0; i < m_current.size(); i++) {
00040     std::cout << "---> " << m_current[i] << std::endl;
00041   }
00042   std::cout << "correspondent time (from run start) in microseconds for B currents in run: " << std::endl;
00043   for(size_t i = 0; i < m_times_of_currents.size(); i++) {
00044     std::cout << "---> " << m_times_of_currents[i] << std::endl;
00045   }
00046 }
00047 
00048