![]() |
![]() |
#include <CondFormats/RunInfo/interface/RunSummary.h>
Public Types | |
enum | subdet { PIXEL, TRACKER, ECAL, HCAL, DT, CSC, RPC } |
Public Member Functions | |
std::vector< std::string > | getSubdtIn () const |
void | printAllValues () const |
RunSummary () | |
virtual | ~RunSummary () |
Static Public Member Functions | |
static RunSummary * | Fake_RunSummary () |
Public Attributes | |
std::string | m_hltkey |
int | m_lumisections |
std::string | m_name |
long long | m_nevents |
float | m_rate |
int | m_run |
long long | m_start_time_ll |
std::string | m_start_time_str |
long long | m_stop_time_ll |
std::string | m_stop_time_str |
std::vector< int > | m_subdt_in |
Definition at line 16 of file RunSummary.h.
enum RunSummary::subdet |
RunSummary::RunSummary | ( | ) |
Definition at line 2 of file RunSummary.cc.
Referenced by Fake_RunSummary(), and RunSummaryRead::readData().
virtual RunSummary::~RunSummary | ( | ) | [inline, virtual] |
RunSummary * RunSummary::Fake_RunSummary | ( | ) | [static] |
Definition at line 4 of file RunSummary.cc.
References m_hltkey, m_name, m_run, m_start_time_str, m_stop_time_str, RunSummary(), and sum().
Referenced by RunSummaryHandler::getNewObjects().
00004 { 00005 RunSummary * sum = new RunSummary(); 00006 sum->m_run=-1; 00007 sum->m_hltkey="null"; 00008 sum->m_start_time_str="null"; 00009 sum->m_stop_time_str="null"; 00010 sum->m_name="null"; 00011 return sum; 00012 }
std::vector< std::string > RunSummary::getSubdtIn | ( | ) | const |
Definition at line 33 of file RunSummary.cc.
References i, m_subdt_in, and v.
Referenced by edmtest::RunSummaryESAnalyzer::analyze().
00033 { 00034 std::vector<std::string> v; 00035 for (size_t i =0; i<m_subdt_in.size(); i++){ 00036 if (m_subdt_in[i]==0) { 00037 v.push_back("PIXEL"); 00038 } 00039 if (m_subdt_in[i]==1) { 00040 v.push_back("TRACKER"); 00041 } 00042 if (m_subdt_in[i]==2) { 00043 v.push_back("ECAL"); 00044 } 00045 if (m_subdt_in[i]==3) { 00046 v.push_back("HCAL"); 00047 } 00048 00049 if (m_subdt_in[i]==4) { 00050 v.push_back("DT"); 00051 } 00052 if (m_subdt_in[i]==5) { 00053 v.push_back("CSC"); 00054 } 00055 if (m_subdt_in[i]==6) { 00056 v.push_back("RPC"); 00057 } 00058 } 00059 return v; 00060 }
void RunSummary::printAllValues | ( | ) | const |
Definition at line 16 of file RunSummary.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), i, m_hltkey, m_lumisections, m_name, m_nevents, m_rate, m_run, m_start_time_ll, m_start_time_str, m_stop_time_ll, m_stop_time_str, and m_subdt_in.
Referenced by edmtest::RunSummaryESAnalyzer::analyze().
00016 { 00017 std::cout<<"run number: " <<m_run << std::endl; 00018 std::cout<<"run name: " <<m_name << std::endl; 00019 std::cout<<"run start time as timestamp: "<<m_start_time_ll<<std::endl; 00020 std::cout<<"run start time as date: "<<m_start_time_str<<std::endl; 00021 std::cout<<"run stop time as timestamp: "<<m_stop_time_ll<< std::endl; 00022 std::cout<<"run stop time as date: "<<m_stop_time_str<<std::endl; 00023 std::cout<<"lumisection in the run: "<<m_lumisections<<std::endl; 00024 std::cout<<"run hltkey: "<<m_hltkey<<std::endl; 00025 std::cout<<"run number of events according hlt: "<<m_nevents<<std::endl; 00026 std::cout<<"hlt rate: "<<m_rate<<std::endl; 00027 std::cout<<"ids of subdetectors in run: "<<std::endl; 00028 for (size_t i =0; i<m_subdt_in.size(); i++){ 00029 std::cout<<"---> "<<m_subdt_in[i]<<std::endl; 00030 } 00031 }
std::string RunSummary::m_hltkey |
std::string RunSummary::m_name |
long long RunSummary::m_nevents |
float RunSummary::m_rate |
long long RunSummary::m_start_time_ll |
std::string RunSummary::m_start_time_str |
long long RunSummary::m_stop_time_ll |
std::string RunSummary::m_stop_time_str |
std::vector<int> RunSummary::m_subdt_in |