CMS 3D CMS Logo

RunInfo Class Reference

#include <CondFormats/RunInfo/interface/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< intm_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


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(), and RunInfoRead::readData().

00002 {}

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

Definition at line 34 of file RunInfo.h.

00034 {};


Member Function Documentation

RunInfo * RunInfo::Fake_RunInfo (  )  [static]

Definition at line 4 of file RunInfo.cc.

References m_run, m_start_time_str, m_stop_time_str, RunInfo(), and sum().

Referenced by RunInfoHandler::getNewObjects().

00004                                {
00005   RunInfo * sum = new RunInfo();
00006   sum->m_run=-1;
00007   sum->m_start_time_str="null";
00008   sum->m_stop_time_str="null";
00009   return sum; 
00010 }

void RunInfo::printAllValues (  )  const

Definition at line 14 of file RunInfo.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), 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, and m_stop_time_str.

Referenced by edmtest::RunInfoESAnalyzer::analyze().

00014                                   {
00015     std::cout<<"run number: " <<m_run << std::endl;
00016     std::cout<<"run start time as timestamp: "<<m_start_time_ll<<std::endl;
00017     std::cout<<"run start time as date: "<<m_start_time_str<<std::endl;
00018     std::cout<<"run stop time as timestamp: "<<m_stop_time_ll<< std::endl;
00019     std::cout<<"run stop time as date: "<<m_stop_time_str<<std::endl;
00020     std::cout<<"initial current "<<m_start_current<<std::endl;
00021     std::cout<<"final current "<<m_stop_current<<std::endl;
00022     std::cout<<"average current "<<m_avg_current<<std::endl;
00023     std::cout<<"min current "<<m_min_current<<std::endl;
00024     std::cout<<"max current "<<m_max_current<<std::endl;
00025     std::cout<<"run time intervall in microseconds "<<m_run_intervall_micros<<std::endl;
00026     std::cout<<"ids of fed in run: "<<std::endl;
00027 for (size_t i =0; i<m_fed_in.size(); i++){
00028   std::cout<<"---> "<<m_fed_in[i]<<std::endl;
00029   }
00030    std::cout<<"B current in run: "<<std::endl;
00031 for (size_t i =0; i<m_current.size(); i++){
00032   std::cout<<"---> "<<m_current[i]<<std::endl;
00033   }
00034 
00035   }


Member Data Documentation

float RunInfo::m_avg_current

Definition at line 27 of file RunInfo.h.

Referenced by printAllValues().

std::vector<float> RunInfo::m_current

Definition at line 31 of file RunInfo.h.

Referenced by printAllValues().

std::vector<int> RunInfo::m_fed_in

Definition at line 24 of file RunInfo.h.

Referenced by printAllValues().

float RunInfo::m_max_current

Definition at line 28 of file RunInfo.h.

Referenced by printAllValues().

float RunInfo::m_min_current

Definition at line 29 of file RunInfo.h.

Referenced by printAllValues().

int RunInfo::m_run

Definition at line 19 of file RunInfo.h.

Referenced by Fake_RunInfo(), and printAllValues().

float RunInfo::m_run_intervall_micros

Definition at line 30 of file RunInfo.h.

Referenced by printAllValues().

float RunInfo::m_start_current

Definition at line 25 of file RunInfo.h.

Referenced by printAllValues().

long long RunInfo::m_start_time_ll

Definition at line 20 of file RunInfo.h.

Referenced by printAllValues().

std::string RunInfo::m_start_time_str

Definition at line 21 of file RunInfo.h.

Referenced by Fake_RunInfo(), and printAllValues().

float RunInfo::m_stop_current

Definition at line 26 of file RunInfo.h.

Referenced by printAllValues().

long long RunInfo::m_stop_time_ll

Definition at line 22 of file RunInfo.h.

Referenced by printAllValues().

std::string RunInfo::m_stop_time_str

Definition at line 23 of file RunInfo.h.

Referenced by Fake_RunInfo(), and printAllValues().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:13 2009 for CMSSW by  doxygen 1.5.4